summaryrefslogtreecommitdiff
path: root/src/conf_mode/snmp.py
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2021-11-27 01:40:21 +0200
committerzsdc <taras@vyos.io>2021-11-27 01:40:21 +0200
commit76ac6e9885d587921ac6dc54a3bd056c5dc74b4d (patch)
tree478419b4df4459e2dbec68b58fe79344a66b158c /src/conf_mode/snmp.py
parent1df8ba611f04c46d49f4cf70d6fa22cfef089392 (diff)
downloadvyos-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-xsrc/conf_mode/snmp.py6
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