diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-25 11:23:12 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-01-25 11:23:14 +0100 |
commit | 0bac5f7a7ba924f7ce793298925466c464e24c88 (patch) | |
tree | 4d4ece5073b9433f01b1a837b429648912fb2368 /tests | |
parent | 7dbb6ec597f8ffe747a6630b79a2b9ba2afcc30f (diff) | |
download | vyos-1x-0bac5f7a7ba924f7ce793298925466c464e24c88.tar.gz vyos-1x-0bac5f7a7ba924f7ce793298925466c464e24c88.zip |
list_interfaces: change bonding interface list logic
The previous logic returned:
>>> eth = vyos.interfaces.list_interfaces_of_type("ethernet")
>>> for intf in eth:
... print(intf)
...
eth0
eth1
eth2
eth0.201
eth1.50
>>> for intf in eth:
... if '.' in intf:
... eth.remove(intf)
...
>>> eth
['eth0', 'eth1', 'eth2', 'eth1.50']
This only eth0.201 was removed
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions