components/openstack/nova/files/solariszones/sysconfig.py
branchs11-update
changeset 4569 e6bd6f2f307f
parent 4072 db0cec748ec0
child 4695 0aecdc531b77
--- a/components/openstack/nova/files/solariszones/sysconfig.py	Tue Jun 09 22:31:26 2015 -0700
+++ b/components/openstack/nova/files/solariszones/sysconfig.py	Thu Jun 25 13:27:37 2015 -0700
@@ -1,6 +1,6 @@
 # vim: tabstop=4 shiftwidth=4 softtabstop=4
 
-# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
 #
 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
 #    not use this file except in compliance with the License. You may obtain
@@ -49,6 +49,11 @@
     instance = etree.SubElement(install, "instance", enabled="true",
                                 name="default")
 
+    if not route:
+        # network/install SMF method script checks for ::0 for IPv6
+        # for no-gateway case
+        route = '0.0.0.0' if ip_version == 4 else '::0'
+
     if ip_version == 4:
         pg4 = etree.SubElement(instance, "property_group",
                                type="ipv4_interface",
@@ -89,6 +94,8 @@
                              name="static_address", value=ip)
             etree.SubElement(pg6, "propval", type="astring", name="name",
                              value="%s/v6" % linkname)
+            etree.SubElement(pg6, "propval", type="net_address_v6",
+                             name="default_route", value=route)
         else:
             pg6 = etree.SubElement(instance, "property_group",
                                    type="ipv6_interface",