Commit 12f99067 by Oliver Pinter

correcly set up default router in ipv6 case

parent cccbba82
...@@ -61,6 +61,7 @@ def change_ip_freebsd(interfaces, dns): ...@@ -61,6 +61,7 @@ def change_ip_freebsd(interfaces, dns):
route6_name=device+"R"+str(ipv6_alias_counter)+"v6" route6_name=device+"R"+str(ipv6_alias_counter)+"v6"
route6 += route6_name+":"+device+" " route6 += route6_name+":"+device+" "
f.write("route_"+route6_name+"=\"-net %(netw)s0 -gateway %(gw)s\"\n" % { 'netw' : ip_with_prefix.network, 'gw' : conf['gw6']}) f.write("route_"+route6_name+"=\"-net %(netw)s0 -gateway %(gw)s\"\n" % { 'netw' : ip_with_prefix.network, 'gw' : conf['gw6']})
f.write("ipv6_defaultrouter=\""+str(conf['gw6'])+"\"\n")
else: else:
if ipv4_alias_counter > 0: if ipv4_alias_counter > 0:
# az aliasok szamanak folytonosnak kell lennie # az aliasok szamanak folytonosnak kell lennie
......
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 sign in to comment