diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-05-25 15:35:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 15:35:29 +0300 |
commit | a943c7f36ffdd1e92070f5fcc94854b6b00f25b3 (patch) | |
tree | 0de9be22f4d671397d6a0db1d6038f0c76671d9b /src/conf_mode/snmp.py | |
parent | 0640a863255ef8f3d5b9d778fa0b6bff9922087e (diff) | |
parent | 373132a899cd53eaebedd23bd44702d245ce8165 (diff) | |
download | vyos-1x-a943c7f36ffdd1e92070f5fcc94854b6b00f25b3.tar.gz vyos-1x-a943c7f36ffdd1e92070f5fcc94854b6b00f25b3.zip |
Merge pull request #1088 from zdc/T4020-sagitta
FRR: T4020: Added CLI options for FRR daemons
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-x | src/conf_mode/snmp.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py index ae060580d..5cd24db32 100755 --- a/src/conf_mode/snmp.py +++ b/src/conf_mode/snmp.py @@ -293,7 +293,15 @@ def apply(snmp): call(f'systemctl restart {systemd_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', 'ripngd', 'isisd', 'ldpd', 'zebra' + ] + for frr_daemon in frr_daemons_list: + call( + f'vtysh -c "configure terminal" -d {frr_daemon} -c "agentx" >/dev/null' + ) return None |