diff --git a/test/test_parse_router.py b/test/test_parse_router.py index ffe6157f9a4a80bba0cfb5a22b133a62a0d61aa9..dfe39da79fb07431852d95bd9a5f2ab472ae7e28 100644 --- a/test/test_parse_router.py +++ b/test/test_parse_router.py @@ -77,6 +77,27 @@ def test_no_db_load_interfaces(mocked_router): assert aggregates +def test_physical_no_lag(mocked_router): + """ + confirm no ae* interfaces are present in the list + of physical interfaces + """ + + ssh = { + 'username': 'bogus', + 'private-key': 'no file' + } + + with juniper.router( + hostname='blah-bogus', + port=12345, + ssh_config=ssh) as dev: + + physical = juniper.load_installed_ethernet_ports(dev) + assert all(p['name'].startswith('ae') is False for p in physical) + + + def test_load_interfaces( mocked_router, resources_db, config_file, router_name): """