From: Gabriel Cuba Date: Tue, 14 Mar 2023 05:27:49 +0000 (-0500) Subject: Feature 10978: Add ipv6_address_mode to ip_profile X-Git-Tag: release-v14.0-start~19 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F13054%2F1;p=osm%2FLCM.git Feature 10978: Add ipv6_address_mode to ip_profile Change-Id: Ib9c999abe7a80486a0c8283a6ce622ebde9ca6da Signed-off-by: Gabriel Cuba --- diff --git a/osm_lcm/lcm_utils.py b/osm_lcm/lcm_utils.py index 579a2a5..d91eaed 100644 --- a/osm_lcm/lcm_utils.py +++ b/osm_lcm/lcm_utils.py @@ -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, } diff --git a/osm_lcm/tests/test_lcm_utils.py b/osm_lcm/tests/test_lcm_utils.py index 20ec63e..bcd242f 100644 --- a/osm_lcm/tests/test_lcm_utils.py +++ b/osm_lcm/tests/test_lcm_utils.py @@ -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(