Commit Graph

5 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
0ab907f155 Add get_bridgedomains() 2022-03-22 18:57:45 +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
c55fe93e16 Add unit tests for bridgedomain - move is_bridge_interface*() functions to validator/bridgedomain.py 2022-03-20 22:45:07 +00:00