diff options
-rw-r--r-- | config/bgp_configs.go | 3 | ||||
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index d1d5486f..b70ab5b5 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -858,12 +858,14 @@ const ( BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY BmpRouteMonitoringPolicyType = "pre-policy" BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY BmpRouteMonitoringPolicyType = "post-policy" BMP_ROUTE_MONITORING_POLICY_TYPE_BOTH BmpRouteMonitoringPolicyType = "both" + BMP_ROUTE_MONITORING_POLICY_TYPE_LOCAL_RIB BmpRouteMonitoringPolicyType = "local-rib" ) var BmpRouteMonitoringPolicyTypeToIntMap = map[BmpRouteMonitoringPolicyType]int{ BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY: 0, BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY: 1, BMP_ROUTE_MONITORING_POLICY_TYPE_BOTH: 2, + BMP_ROUTE_MONITORING_POLICY_TYPE_LOCAL_RIB: 3, } func (v BmpRouteMonitoringPolicyType) ToInt() int { @@ -878,6 +880,7 @@ var IntToBmpRouteMonitoringPolicyTypeMap = map[int]BmpRouteMonitoringPolicyType{ 0: BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY, 1: BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY, 2: BMP_ROUTE_MONITORING_POLICY_TYPE_BOTH, + 3: BMP_ROUTE_MONITORING_POLICY_TYPE_LOCAL_RIB, } func (v BmpRouteMonitoringPolicyType) Validate() error { diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 9590b82b..b37c7898 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -48,6 +48,10 @@ module gobgp { value 2; description "send both pre and post-policy routes"; } + enum LOCAL-RIB { + value 3; + description "send local rib routes"; + } } } |