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 json
import os import os
import re
import jsonschema import jsonschema
import pytest import pytest
...@@ -246,8 +247,9 @@ def test_get_all_service_users(connection, cached_test_data): ...@@ -246,8 +247,9 @@ def test_get_all_service_users(connection, cached_test_data):
for k in cached_test_data.keys(): for k in cached_test_data.keys():
if not k.startswith('netconf-interfaces:'): if not k.startswith('netconf-interfaces:'):
continue continue
(_, hostname, ifc_name) = k.split(':') m = re.match(r'^netconf-interfaces:([^:]+):(.*)$', k)
yield {'hostname': hostname, 'interface': ifc_name} assert m
yield {'hostname': m.group(1), 'interface': m.group(2)}
def _all_service_ids(interfaces): def _all_service_ids(interfaces):
for ifc in 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