fea:support nexthop group for routing ha (#57)

This commit is contained in:
Teddy_Zhu
2024-04-16 14:23:08 +08:00
committed by GitHub
parent d5a0ef2904
commit c7a27a46bf
13 changed files with 664 additions and 54 deletions

View File

@@ -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 {