Use trp to handle network
Change-Id: I1ff5c2d858d4f68a98867ef845887200b9561af0
This commit is contained in:
30
pkg/openstack/types/types.go
Normal file
30
pkg/openstack/types/types.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package types
|
||||
|
||||
type Network struct {
|
||||
Name string
|
||||
Uid string
|
||||
TenantID string
|
||||
SegmentID int32
|
||||
Subnets []*Subnet
|
||||
// Status of network
|
||||
// Valid value: Initializing, Active, Pending, Failed, Terminating
|
||||
Status string
|
||||
}
|
||||
|
||||
// Subnet is a representaion of a subnet
|
||||
type Subnet struct {
|
||||
Name string
|
||||
Uid string
|
||||
Cidr string
|
||||
Gateway string
|
||||
Tenantid string
|
||||
Dnsservers []string
|
||||
Routes []*Route
|
||||
}
|
||||
|
||||
// Route is a representation of an advanced routing rule.
|
||||
type Route struct {
|
||||
Name string
|
||||
Nexthop string
|
||||
DestinationCIDR string
|
||||
}
|
||||
Reference in New Issue
Block a user