From: Jiri Pirko jiri@mellanox.com
Signed-off-by: Jiri Pirko jiri@mellanox.com --- lnst/Controller/Machine.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py index a6256e6..dbf71c3 100644 --- a/lnst/Controller/Machine.py +++ b/lnst/Controller/Machine.py @@ -627,7 +627,11 @@ class Interface(object): self._slave_options[slave_id].append((name, value))
def add_address(self, addr): - self._addresses.append(addr) + if (type(addr) == type([])): + for one_addr in addr: + self._addresses.append(one_addr) + else: + self._addresses.append(addr)
def get_address(self, num): return self._addresses[num].split('/')[0]