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

Ensured related services are only found for interfaces containing '.' e.g. ae2.0

parent d2b58b2b
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ def base_interface_name(interface):
def related_interfaces(hostname, interface):
r = common.get_redis()
prefix = 'netconf-interfaces:%s:' % hostname
for k in r.keys(prefix + base_interface_name(interface) + '*'):
for k in r.keys(prefix + base_interface_name(interface) + '.*'):
k = k.decode('utf-8')
assert k.startswith(prefix) # sanity
assert len(k) > len(prefix) # sanity (contains at least an interface)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment