forked from yunionio/cloudpods
/
routetable.go
33 lines (27 loc) · 1.06 KB
/
routetable.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package aliyun
import (
"time"
)
// {"CreationTime":"2017-03-19T13:37:40Z","RouteEntrys":{"RouteEntry":[{"DestinationCidrBlock":"172.31.32.0/20","InstanceId":"","NextHopType":"local","NextHops":{"NextHop":[]},"RouteTableId":"vtb-j6c60lectdi80rk5xz43g","Status":"Available","Type":"System"},{"DestinationCidrBlock":"100.64.0.0/10","InstanceId":"","NextHopType":"service","NextHops":{"NextHop":[]},"RouteTableId":"vtb-j6c60lectdi80rk5xz43g","Status":"Available","Type":"System"}]},"RouteTableId":"vtb-j6c60lectdi80rk5xz43g","RouteTableType":"System","VRouterId":"vrt-j6c00qrol733dg36iq4qj"}
type SNextHops struct {
NextHop []string
}
type SRouteEntry struct {
DestinationCidrBlock string
InstanceId string
NextHopType string
NextHops SNextHops
RouteTableId string
Status string
Type string
}
type SRouteEntrys struct {
RouteEntry []SRouteEntry
}
type SRouteTable struct {
CreationTime time.Time
RouteEntrys SRouteEntrys
RouteTableId string
RouteTableType string
VRouterId string
}