diff options
author | zsdc <taras@vyos.io> | 2021-11-27 01:40:21 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2021-11-27 01:40:21 +0200 |
commit | 76ac6e9885d587921ac6dc54a3bd056c5dc74b4d (patch) | |
tree | 478419b4df4459e2dbec68b58fe79344a66b158c /src/conf_mode/snmp.py | |
parent | 1df8ba611f04c46d49f4cf70d6fa22cfef089392 (diff) | |
download | vyos-1x-76ac6e9885d587921ac6dc54a3bd056c5dc74b4d.tar.gz vyos-1x-76ac6e9885d587921ac6dc54a3bd056c5dc74b4d.zip |
FRR: T4020: Added CLI options for FRR daemons
Added first CLI items for controlling FRR daemons parameters that
cannot be changed via vtysh and are available via arguments only. Now
it is possible to enable/disable modules: SNMP (for each daemon),
BMP (for BGP), IRDP (for Zebra).
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-x | src/conf_mode/snmp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py index e1852f2ce..25dcdf7c6 100755 --- a/src/conf_mode/snmp.py +++ b/src/conf_mode/snmp.py @@ -581,7 +581,11 @@ def apply(snmp): call('systemctl restart snmpd.service') # Enable AgentX in FRR - call('vtysh -c "configure terminal" -c "agentx" >/dev/null') + # This should be done for each daemon individually because common command + # works only if all the daemons started with SNMP support + frr_daemons_list = ['bgpd', 'ospf6d', 'ospfd', 'ripd', 'zebra'] + for frr_daemon in frr_daemons_list: + call(f'vtysh -c "configure terminal" -d {frr_daemon} -c "agentx" >/dev/null') return None |