Commit 14ea9302 authored by Guido Trotter's avatar Guido Trotter
Browse files

gnt-instance info: fix nic display

In branch-2.1 the conversion of NICs to Tuples has been unified to the
_NICListToTuple function, which is used by both hook generation and
instance info generation. Unfortunately the ip and mac fields got
swapped from what instance info expected, so the mac is shown as ip, and
vice versa. Fixing this.
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarIustin Pop <>
parent 9b4127eb
......@@ -1137,7 +1137,7 @@ def ShowInstanceConfig(opts, args):
buf.write(" - memory: %dMiB\n" %
buf.write(" - NICs:\n")
for idx, (mac, ip, mode, link) in enumerate(instance["nics"]):
for idx, (ip, mac, mode, link) in enumerate(instance["nics"]):
buf.write(" - nic/%d: MAC: %s, IP: %s, mode: %s, link: %s\n" %
(idx, mac, ip, mode, link))
buf.write(" Disks:\n")
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