Skip to content
Snippets Groups Projects
Commit 747533c5 authored by Erik Reid's avatar Erik Reid
Browse files

handle new interface name

parent ff860b19
No related branches found
No related tags found
No related merge requests found
import json
import os
import re
import jsonschema
import pytest
......@@ -246,8 +247,9 @@ def test_get_all_service_users(connection, cached_test_data):
for k in cached_test_data.keys():
if not k.startswith('netconf-interfaces:'):
continue
(_, hostname, ifc_name) = k.split(':')
yield {'hostname': hostname, 'interface': ifc_name}
m = re.match(r'^netconf-interfaces:([^:]+):(.*)$', k)
assert m
yield {'hostname': m.group(1), 'interface': m.group(2)}
def _all_service_ids(interfaces):
for ifc in interfaces:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment