Commit c545b67c authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Pass 'nfdhcp' tag to IPv6 networks

Pass 'nfdhcp' tag even if network is IPv6 only.
parent aefe2ed3
...@@ -813,9 +813,9 @@ def _create_network(network, backend): ...@@ -813,9 +813,9 @@ def _create_network(network, backend):
gateway = None gateway = None
gateway6 = None gateway6 = None
for _subnet in network.subnets.all(): for _subnet in network.subnets.all():
if _subnet.dhcp and not "nfdhcpd" in tags:
tags.append("nfdhcpd")
if _subnet.ipversion == 4: if _subnet.ipversion == 4:
if _subnet.dhcp:
tags.append('nfdhcpd')
subnet = _subnet.cidr subnet = _subnet.cidr
gateway = _subnet.gateway gateway = _subnet.gateway
elif _subnet.ipversion == 6: elif _subnet.ipversion == 6:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment