Added code to not query sdn information when node is offline
This commit is contained in:
parent
c4a61b269b
commit
49a2f77f45
1 changed files with 10 additions and 8 deletions
|
@ -311,6 +311,8 @@ class SimpleLxcNode(PyCoreNode):
|
|||
|
||||
veth.name = ifname
|
||||
|
||||
if self.up:
|
||||
# TODO: potentially find better way to query interface ID
|
||||
# retrieve interface information
|
||||
result, output = self.cmdresult(["ip", "link", "show", veth.name])
|
||||
logger.info("interface command output: %s", output)
|
||||
|
|
Loading…
Add table
Reference in a new issue