From b7a6b8137f7da33a99265cddce3846a3eb621dfc Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Fri, 19 Oct 2018 13:37:35 -0700 Subject: [PATCH] Fix undefined variable and code check. --- examples/cluster.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/cluster.py b/examples/cluster.py index d2764e9..aa718da 100755 --- a/examples/cluster.py +++ b/examples/cluster.py @@ -855,10 +855,10 @@ class MininetCluster( Mininet ): remoteIP = serverIPs[ 0 ] # Route should contain 'dev ' route = controller.cmd( 'ip route get', remoteIP, - '| egrep -o "dev\s[^[:space:]]+"' ) + r'| egrep -o "dev\s[^[:space:]]+"' ) if not route: - raise Exception('addController: no route from', c0, 'to', - remoteIP ) + raise Exception('addController: no route from', controller, + 'to', remoteIP ) intf = route.split()[ 1 ].strip() debug( 'adding', intf, 'to', controller ) Intf( intf, node=controller ).updateIP()