summaryrefslogtreecommitdiff
path: root/proto/bmp/config.Y
diff options
context:
space:
mode:
authorMichal Zagorski <mzagorsk@akamai.com>2023-05-30 17:09:25 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-05-30 17:09:25 +0200
commit62d8fbdc1cb3d358b0d20d7b10bd3f17f357d567 (patch)
tree8191901307820bb9ddebfa7ec4d4c4b5e900b373 /proto/bmp/config.Y
parentae4d934c53cdc4cc5ec3d4535cd5138fdf9b25cb (diff)
BMP: Add local address option
Also remove unused local and ip_post_policy options. Co-authored with Pawel Maslanka <pmaslank@akamai.com>. Minor changes by committer.
Diffstat (limited to 'proto/bmp/config.Y')
-rw-r--r--proto/bmp/config.Y12
1 files changed, 4 insertions, 8 deletions
diff --git a/proto/bmp/config.Y b/proto/bmp/config.Y
index 776d7ecc..2fc87458 100644
--- a/proto/bmp/config.Y
+++ b/proto/bmp/config.Y
@@ -25,13 +25,12 @@ proto: bmp_proto '}' ;
bmp_proto_start: proto_start BMP {
this_proto = proto_config_new(&proto_bmp, $1);
+ BMP_CFG->local_addr = IPA_NONE4;
BMP_CFG->station_ip = IPA_NONE4;
BMP_CFG->station_port = 0;
BMP_CFG->sys_descr = "Not defined";
BMP_CFG->sys_name = "Not defined";
BMP_CFG->monitoring_rib_in_pre_policy = false;
- BMP_CFG->monitoring_rib_in_post_policy = false;
- BMP_CFG->monitoring_rib_local = false;
}
;
@@ -52,6 +51,9 @@ bmp_station_address:
bmp_proto:
bmp_proto_start proto_name '{'
| bmp_proto proto_item ';'
+ | bmp_proto LOCAL ADDRESS ipa ';' {
+ BMP_CFG->local_addr = $4;
+ }
| bmp_proto STATION ADDRESS bmp_station_address ';'
| bmp_proto SYSTEM DESCRIPTION text ';' {
if (!$4 || (strlen($4) == 0))
@@ -70,12 +72,6 @@ bmp_proto:
| bmp_proto MONITORING RIB IN PRE_POLICY bool ';' {
BMP_CFG->monitoring_rib_in_pre_policy = $6;
}
- | bmp_proto MONITORING RIB IN POST_POLICY bool ';' {
- BMP_CFG->monitoring_rib_in_post_policy = $6;
- }
- | bmp_proto MONITORING RIB LOCAL bool ';' {
- BMP_CFG->monitoring_rib_local = $5;
- }
;
CF_CODE