summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-16 07:58:35 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-16 15:35:31 -0800
commitc8a3caacf30fd28f4732de91c05e51f61eb15b99 (patch)
tree0181e413b220f6ac7e453f90d6a61cdab20d2b14 /config
parent2648b9bae2d02d268bbda01cf1b13be0d50157c3 (diff)
bmp: support post-policy routing monitoring
"RouteMonitoringPolicy" option added: 0: pre-policy (by default) 1: post-policy 2: both = [BmpServers] [[BmpServers.BmpServerList]] [BmpServers.BmpServerList.BmpServerConfig] Address = "127.0.0.1" Port = 11019 RouteMonitoringPolicy = 2 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 8cf443e8..5611124d 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -112,6 +112,15 @@ const (
BGP_SET_COMMUNITY_OPTION_TYPE_REPLACE
)
+// typedef for typedef gobgp:bmp-route-monitoring-policy-type
+type BmpRouteMonitoringPolicyType int
+
+const (
+ BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY BmpRouteMonitoringPolicyType = 0
+ BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY = 1
+ BMP_ROUTE_MONITORING_POLICY_TYPE_BOTH = 2
+)
+
// typedef for typedef gobgp:rpki-validation-result-type
type RpkiValidationResultType int
@@ -142,6 +151,8 @@ type BmpServerConfig struct {
Address net.IP
// original -> gobgp:port
Port uint32
+ // original -> gobgp:route-monitoring-policy
+ RouteMonitoringPolicy BmpRouteMonitoringPolicyType
}
//struct for container gobgp:bmp-server