X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Flcm_utils.py;h=5817b16a701d8d8cedbb4dcce69f65d87701bfdb;hb=refs%2Fchanges%2F41%2F13941%2F5;hp=579a2a5b2b7a49a343ba773e8085e86f64135f1e;hpb=c773744f338d3c019b4978b0fc591d14c614b4cf;p=osm%2FLCM.git diff --git a/osm_lcm/lcm_utils.py b/osm_lcm/lcm_utils.py index 579a2a5..5817b16 100644 --- a/osm_lcm/lcm_utils.py +++ b/osm_lcm/lcm_utils.py @@ -40,10 +40,6 @@ class LcmException(Exception): pass -class LcmExceptionNoMgmtIP(LcmException): - pass - - class LcmExceptionExit(LcmException): pass @@ -196,6 +192,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, } @@ -237,7 +236,7 @@ class LcmBase: Returns: hex digest (str): The hash of the charm file """ - filehash = hashlib.md5() + filehash = hashlib.sha256() with open(zipped_file, mode="rb") as file: contents = file.read() filehash.update(contents)