Skip to content

Commit 82ec8f4

Browse files
authored
fix show cmd for bgp (#3922)
1 parent e0f9da4 commit 82ec8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

show/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
# bash oneliner. To be revisited once routing-stack info is tracked somewhere.
9090
def get_routing_stack():
9191
result = None
92-
command = "sudo docker ps | grep bgp | awk '{print$2}' | cut -d'-' -f3 | cut -d':' -f1 | head -n 1"
92+
command = "sudo docker ps | grep bgp | grep -E 'quagga|frr' | awk '{print$2}' | cut -d'-' -f3 | cut -d':' -f1 | head -n 1"
9393

9494
try:
9595
stdout = subprocess.check_output(command, shell=True, text=True, timeout=COMMAND_TIMEOUT)

0 commit comments

Comments
 (0)