We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d92219 commit 26cbb75Copy full SHA for 26cbb75
EXAMPLES.md
@@ -86,9 +86,9 @@ This rule checks the status of BGP neighbors and reports if any neighbor is down
86
@medium(
87
name='rule_bgp_neighbors_up',
88
platform=['cisco_ios'],
89
- commands={'show_bgp_summary': 'show ip bgp summary'},
+ commands=dict('show_bgp_summary'='show ip bgp summary'),
90
)
91
-def rule_bgp_neighbors_up(configuration, commands, device, devices):
+def rule_bgp_neighbors_up(commands):
92
bgp_output = commands.show_bgp_summary
93
neighbors_down = [line for line in bgp_output.splitlines() if 'Idle' in line or 'Active' in line or 'Connect' in line]
94
assert len(neighbors_down) == 0, f"BGP neighbors down: {', '.join([line.split()[0] for line in neighbors_down])}"
0 commit comments