Update host's IP address during name-IP substitution

fixes #139
This commit is contained in:
Bob Lantz
2013-05-22 15:06:10 -07:00
parent 76c5b9d021
commit 1ea5c91fcc
+1 -1
View File
@@ -321,7 +321,7 @@ class CLI( Cmd ):
if first in self.nodemap:
node = self.nodemap[ first ]
# Substitute IP addresses for node names in command
rest = [ self.nodemap[ arg ].IP()
rest = [ self.nodemap[ arg ].defaultIntf().updateIP()
if arg in self.nodemap else arg
for arg in rest ]
rest = ' '.join( rest )