Feature 10978: Add ipv6_address_mode to ip_profile 54/13054/1
authorGabriel Cuba <gcuba@whitestack.com>
Tue, 14 Mar 2023 05:27:49 +0000 (00:27 -0500)
committerGabriel Cuba <gcuba@whitestack.com>
Tue, 14 Mar 2023 05:27:49 +0000 (00:27 -0500)
Change-Id: Ib9c999abe7a80486a0c8283a6ce622ebde9ca6da
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
osm_lcm/lcm_utils.py
osm_lcm/tests/test_lcm_utils.py

index 579a2a5..d91eaed 100644 (file)
@@ -196,6 +196,9 @@ def vld_to_ro_ip_profile(source_data):
             "dhcp_count": source_data["dhcp-params"].get("count")
             if source_data.get("dhcp-params")
             else None,
+            "ipv6_address_mode": source_data["ipv6-address-mode"]
+            if "ipv6-address-mode" in source_data
+            else None,
         }
 
 
index 20ec63e..bcd242f 100644 (file)
@@ -474,6 +474,7 @@ class TestLcmUtils(TestCase):
             "dhcp_enabled": False,
             "dhcp_start_address": None,
             "dhcp_count": None,
+            "ipv6_address_mode": None,
         }
 
         result = vld_to_ro_ip_profile(
@@ -498,6 +499,7 @@ class TestLcmUtils(TestCase):
             "dhcp_enabled": True,
             "dhcp_start_address": None,
             "dhcp_count": None,
+            "ipv6_address_mode": None,
         }
 
         result = vld_to_ro_ip_profile(
@@ -521,6 +523,7 @@ class TestLcmUtils(TestCase):
             "dhcp_enabled": True,
             "dhcp_start_address": None,
             "dhcp_count": None,
+            "ipv6_address_mode": None,
         }
 
         result = vld_to_ro_ip_profile(