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):
gateway = None
gateway6 = None
for _subnet in network.subnets.all():
if _subnet.dhcp and not "nfdhcpd" in tags:
if _subnet.ipversion == 4:
if _subnet.dhcp:
subnet = _subnet.cidr
gateway = _subnet.gateway
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