Skip to content
Snippets Groups Projects
Commit 3a9a2725 authored by Robert Latta's avatar Robert Latta
Browse files

updated regex to cope with qfx netconf data

parent 471e4628
Branches
Tags
No related merge requests found
...@@ -53,4 +53,4 @@ def test_router_hostname_derivation(mocked_redis): ...@@ -53,4 +53,4 @@ def test_router_hostname_derivation(mocked_redis):
hostnames = list(worker._derive_router_hostnames(config)) hostnames = list(worker._derive_router_hostnames(config))
assert hostnames # test data is non-empty assert hostnames # test data is non-empty
for h in hostnames: for h in hostnames:
assert re.match(r'^mx[12].+\.geant\.net$', h) assert re.match(r'^(mx[12]|qfx).+\.geant\.net$', h)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment