mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
fea:support nexthop group for routing ha (#57)
This commit is contained in:
@@ -9,11 +9,17 @@ type Lease struct {
|
||||
}
|
||||
|
||||
type PrefixRoute struct {
|
||||
Prefix string `json:"prefix"`
|
||||
Prefix string `json:"prefix"`
|
||||
NextHop string `json:"nexthop"`
|
||||
Metric int `json:"metric"`
|
||||
Mode string `json:"mode"`
|
||||
Origin string `json:"origin"`
|
||||
MultiPath []MultiPath `json:"multipath,omitempty"`
|
||||
}
|
||||
|
||||
type MultiPath struct {
|
||||
NextHop string `json:"nexthop"`
|
||||
Metric int `json:"metric"`
|
||||
Mode string `json:"mode"`
|
||||
Origin string `json:"origin"`
|
||||
Weight int `json:"weight"`
|
||||
}
|
||||
|
||||
type Subnet struct {
|
||||
|
Reference in New Issue
Block a user