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

other cosmetic issue

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