Skip to content

Commit 81ac9f9

Browse files
authored
vr: fix python exception when configure VRs (#4489)
before ``` root@r-27-VM:/var/cache/cloud# /opt/cloud/bin/configure.py monitor_service.json ERROR:root:Command 'ip link show eth0 | grep 'state DOWN'' returned non-zero exit status 1 ``` with this change ``` root@r-27-VM:/var/cache/cloud# /opt/cloud/bin/configure.py monitor_service.json root@r-27-VM:/var/cache/cloud# ```
1 parent 75fdb07 commit 81ac9f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsHelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
def reconfigure_interfaces(router_config, interfaces):
3737
for interface in interfaces:
38-
cmd = "ip link show %s | grep 'state DOWN'" % interface.get_device()
38+
cmd = "ip link show %s | grep ' state '" % interface.get_device()
3939
for device in execute(cmd):
4040
if " DOWN " in device:
4141
cmd = "ip link set %s up" % interface.get_device()

0 commit comments

Comments
 (0)