Use trp to handle network

Change-Id: I1ff5c2d858d4f68a98867ef845887200b9561af0
This commit is contained in:
Harry Zhang
2017-06-23 17:42:16 +08:00
parent a68cb327eb
commit 76ef989737
52 changed files with 4105 additions and 12 deletions

View 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
}