summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 2ecaae86..c2353c8f 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -584,13 +584,17 @@ func (v AttributeComparison) Validate() error {
type RouteType string
const (
+ ROUTE_TYPE_NONE RouteType = "none"
ROUTE_TYPE_INTERNAL RouteType = "internal"
ROUTE_TYPE_EXTERNAL RouteType = "external"
+ ROUTE_TYPE_LOCAL RouteType = "local"
)
var RouteTypeToIntMap = map[RouteType]int{
- ROUTE_TYPE_INTERNAL: 0,
- ROUTE_TYPE_EXTERNAL: 1,
+ ROUTE_TYPE_NONE: 0,
+ ROUTE_TYPE_INTERNAL: 1,
+ ROUTE_TYPE_EXTERNAL: 2,
+ ROUTE_TYPE_LOCAL: 3,
}
func (v RouteType) ToInt() int {
@@ -602,8 +606,10 @@ func (v RouteType) ToInt() int {
}
var IntToRouteTypeMap = map[int]RouteType{
- 0: ROUTE_TYPE_INTERNAL,
- 1: ROUTE_TYPE_EXTERNAL,
+ 0: ROUTE_TYPE_NONE,
+ 1: ROUTE_TYPE_INTERNAL,
+ 2: ROUTE_TYPE_EXTERNAL,
+ 3: ROUTE_TYPE_LOCAL,
}
func (v RouteType) Validate() error {