Commit Graph

4 Commits

Author SHA1 Message Date
b43d7903fd Add a few additional useful functions
- is_*() returns True if the interface name is of a certain type
  is_bondethernet() is_loopback() is_bvi() is_bridgedomain()
  is_vxlan_tunnel() is_phy()
- get_phys() by process of elimination, returns all interface names
  that are supposed to be physical network interfaces.

Add unit tests for validator/vxlan_tunnel.py
 => Notable: while here, fix a bug in get_by_name()
Add unit tests for all the is_*() and get_phys() functions.
2022-03-24 10:55:33 +00:00
97fef9bfd2 Assert get_by_name() with non-existent name returns a tuple of None,None 2022-03-22 18:31:03 +00:00
36fbbf9b35 Add a full set of get_*_by_name() tests 2022-03-22 17:53:40 +00:00
1f07f7eadf Add unit tests for bondethernet 2022-03-20 22:17:41 +00:00