Added code to not query sdn information when node is offline

This commit is contained in:
Kevin 2018-02-26 10:52:08 -08:00
parent c4a61b269b
commit 49a2f77f45

View file

@ -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)