Commit 6070be5b authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

Fix NIC env in case seq is 0

Commit bd770b4b introduced a bug where the INTERFACE_INDEX was not
exported in scripts' environmenti if NIC's seq was 0. Fix this.
Signed-off-by: default avatarDimitris Aragiorgis <>
parent 0d1b82ce
......@@ -209,7 +209,7 @@ def CreateNICEnv(instance_name, nic, tap, seq=None, instance_tags=None):
if tap:
env["INTERFACE"] = tap
if seq:
if seq is not None:
env["INTERFACE_INDEX"] = str(seq)
if nic.nicparams[constants.NIC_MODE] == constants.NIC_MODE_BRIDGED:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment