Configure IPv6 on existing IPv4 interfaces
Andrew Bavier [Thu, 26 Apr 2012 19:14:23 +0000 (15:14 -0400)]
plnet.py

index 8ce9428..ea98925 100755 (executable)
--- a/plnet.py
+++ b/plnet.py
@@ -112,6 +112,10 @@ def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa
                 settingname = setting[name_key].upper()
                 if settingname in ('IFNAME','ALIAS','CFGOPTIONS','DRIVER'):
                     details[settingname]=setting['value']
+                # IPv6 support on IPv4 interface
+                if settingname in ('IPV6ADDR','IPV6_DEFAULTGW','IPV6ADDR_SECONDARIES'):
+                    details[settingname]=setting['value']
+                    details['IPV6INIT']='yes'
                 # wireless settings
                 elif settingname in \
                         [  "MODE", "ESSID", "NW", "FREQ", "CHANNEL", "SENS", "RATE",