File tree 3 files changed +8
-4
lines changed
dockers/docker-fpm-frr/frr
src/sonic-config-engine/tests
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,10 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
88
88
bgp graceful-restart select-defer-time {{ constants.bgp.graceful_restart.select_defer_time | default(45) }}
89
89
{% endif %}
90
90
!
91
- {# set bmp info #}
92
- {% if (FEATURE is defined ) and ('bmp' in FEATURE ) and ('state' in FEATURE ['bmp' ]) and (FEATURE ['bmp' ]['state' ] == 'enabled' ) %}
91
+ {# set frr_bmp info #}
92
+ {% if (FEATURE is defined ) and
93
+ (('frr_bmp' in FEATURE and 'state' in FEATURE ['frr_bmp' ] and FEATURE ['frr_bmp' ]['state' ] == 'enabled' ) or
94
+ ('bmp' in FEATURE and 'state' in FEATURE ['bmp' ] and FEATURE ['bmp' ]['state' ] == 'enabled' )) %}
93
95
!
94
96
bmp mirror buffer-limit 4294967214
95
97
!
Original file line number Diff line number Diff line change @@ -88,7 +88,9 @@ dependent_startup_wait_for=zebra:running
88
88
{% endif %}
89
89
90
90
[program:bgpd]
91
- {% if FEATURE is defined and FEATURE .bmp is defined and FEATURE .bmp .state is defined and FEATURE .bmp .state == "enabled" %}
91
+ {% if FEATURE is defined and
92
+ (FEATURE .frr_bmp is defined and FEATURE .frr_bmp .state is defined and FEATURE .frr_bmp .state == "enabled" ) or
93
+ (FEATURE .bmp is defined and FEATURE .bmp .state is defined and FEATURE .bmp .state == "enabled" ) %}
92
94
command=/usr/lib/frr/bgpd -A 127.0.0.1 -M snmp -M bmp
93
95
{% else %}
94
96
command=/usr/lib/frr/bgpd -A 127.0.0.1 -M snmp
Original file line number Diff line number Diff line change @@ -80,5 +80,5 @@ def test_zebra_frr_dualtor(self):
80
80
self .assertTrue (* self .run_case ('zebra/zebra.conf.j2' , 'zebra_frr_dualtor.conf' , extra_data = extra_data ))
81
81
82
82
def test_bgpd_frr_bmp (self ):
83
- extra_data = {"FEATURE" : {"bmp " : {"state" : "enabled" }}}
83
+ extra_data = {"FEATURE" : {"frr_bmp " : {"state" : "enabled" }}}
84
84
self .assertTrue (* self .run_case ('bgpd/bgpd.conf.j2' , 'bgpd_frr_bmp.conf' , extra_data = extra_data ))
You can’t perform that action at this time.
0 commit comments