summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-05-12 13:24:27 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-05-22 12:10:07 +0900
commitea56b24395b29025c0ad4ce2fac10be9b6c8895b (patch)
tree02b31f2ab29e995db2ee0b206b498a8f85557356 /config/bgp_configs.go
parent02b4ee0d904945c6cebb0a2d1c894d29c2a292ab (diff)
bmp: Enable to specify all route monitoring policies
This patch adds the new key "all" for specifying the all BMP route monitoring policies. Configuration Example: [[bmp-servers]] [bmp-servers.config] address = "127.0.0.1" port=11019 route-monitoring-policy = "all" 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 b70ab5b5..848b21b7 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -859,6 +859,7 @@ const (
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"
+ BMP_ROUTE_MONITORING_POLICY_TYPE_ALL BmpRouteMonitoringPolicyType = "all"
)
var BmpRouteMonitoringPolicyTypeToIntMap = map[BmpRouteMonitoringPolicyType]int{
@@ -866,6 +867,7 @@ var BmpRouteMonitoringPolicyTypeToIntMap = map[BmpRouteMonitoringPolicyType]int{
BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY: 1,
BMP_ROUTE_MONITORING_POLICY_TYPE_BOTH: 2,
BMP_ROUTE_MONITORING_POLICY_TYPE_LOCAL_RIB: 3,
+ BMP_ROUTE_MONITORING_POLICY_TYPE_ALL: 4,
}
func (v BmpRouteMonitoringPolicyType) ToInt() int {
@@ -881,6 +883,7 @@ var IntToBmpRouteMonitoringPolicyTypeMap = map[int]BmpRouteMonitoringPolicyType{
1: BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY,
2: BMP_ROUTE_MONITORING_POLICY_TYPE_BOTH,
3: BMP_ROUTE_MONITORING_POLICY_TYPE_LOCAL_RIB,
+ 4: BMP_ROUTE_MONITORING_POLICY_TYPE_ALL,
}
func (v BmpRouteMonitoringPolicyType) Validate() error {