diff options
author | Matus Fabian <matfabia@cisco.com> | 2016-03-22 08:49:58 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-03-24 11:23:55 +0000 |
commit | d8a4070100d7df60c0421c91a22b1bbebf6b8736 (patch) | |
tree | a9692ce4ff86038e9a3b443e18aa190481395a8a /resources/libraries/python/InterfaceUtil.py | |
parent | 96b9d2f91da4cf17a84a6fd6c46921681a5775f5 (diff) |
Add node type VM to set_interface_state
Change-Id: Ib70de73eec7c015f328f877fa34ead15e27eb254
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'resources/libraries/python/InterfaceUtil.py')
-rw-r--r-- | resources/libraries/python/InterfaceUtil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py index be126503f7..58af5aad75 100644 --- a/resources/libraries/python/InterfaceUtil.py +++ b/resources/libraries/python/InterfaceUtil.py @@ -53,7 +53,7 @@ class InterfaceUtil(object): VatExecutor.cmd_from_template(node, 'set_if_state.vat', sw_if_index=sw_if_index, state=state) - elif node['type'] == NodeType.TG: + elif node['type'] == NodeType.TG or node['type'] == NodeType.VM: cmd = 'ip link set {} {}'.format(interface, state) exec_cmd_no_error(node, cmd, sudo=True) else: |