Commit 23762ab2 authored by Martín Ferrari's avatar Martín Ferrari

other cosmetic issue

parent 5c425930
......@@ -323,9 +323,10 @@ class Server(object):
self.reply(200, "Process signalled.")
def do_IF_LIST(self, cmdname, ifnr = None):
if ifnr == None:
ifdata = netns.iproute.get_if_data()[0]
if ifnr != None:
ifdata = ifdata[ifnr]
else:
ifdata = netns.iproute.get_if(ifnr)
self.reply(200, ["# Interface data follows."] +
yaml.dump(ifdata).split("\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