Add optional filtering of get_lcps() based on type of interface

This commit is contained in:
Pim van Pelt
2022-03-22 14:17:36 +00:00
parent 907412f49c
commit 5ebaf5e005
2 changed files with 9 additions and 5 deletions

View File

@ -13,6 +13,9 @@ class TestLCPMethods(unittest.TestCase):
self.assertIn("e1", lcps)
self.assertIn("foo", lcps)
self.assertIn("e2", lcps)
loopback_lcps = lcp.get_lcps(self.cfg, interfaces=False, bridgedomains=False)
self.assertIn("thrice", loopback_lcps)
self.assertNotIn("e1", loopback_lcps)
def test_lcp(self):
self.assertTrue(lcp.is_unique(self.cfg, "e1"))