bundle/systemd-networkd #4

Merged
kunsi merged 5 commits from interface-configuration into main 2020-11-09 14:27:52 +00:00
Showing only changes of commit 44414f2375 - Show all commits

View file

@ -20,9 +20,10 @@ def resolve_identifier(repo, identifier):
found_ips = set() found_ips = set()
for node in nodes: for node in nodes:
for interface, config in node.metadata.get('interfaces', {}).items(): for interface, config in node.metadata.get('interfaces', {}).items():
for ip in config.get('ipv4', set()): for ip in config.get('ips', set()):
found_ips.add(ip_address(ip)) if '/' in ip:
for ip in config.get('ipv4', set()): found_ips.add(ip_address(ip.split('/')[0]))
else:
found_ips.add(ip_address(ip)) found_ips.add(ip_address(ip))
if node.metadata.get('external_ipv4', None): if node.metadata.get('external_ipv4', None):