summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-04-04 16:35:22 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-04-17 21:57:11 +0900
commit0f0f13417e4fbfd00ea1a2a75bf5f92fa78454e1 (patch)
treebd40a9a531970c2cabba5137dbda875b9a0f5b4a /config/bgp_configs.go
parent93c955a415f39f7f8d2a97a8298a8985d5dadc2f (diff)
config/bgp_configs: Constant for Local RIB in BMP
This patch adds a constant for Local RIB routes defined in "draft-evens-grow-bmp-local-rib". Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go3
1 files changed, 3 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 {