X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Finstance_topics.py;h=4e88de53a098affd208649d217b23eebc729da9d;hp=dc85a50588ac68e277ae3824e3ef8c8be330ea0b;hb=e91ee2a5423cfa77ccda26777bb6f7c0f8cbef98;hpb=c47d0450ecedcf31b0cbe7577823e7e0ac61f95f diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index dc85a50..4e88de5 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -937,9 +937,9 @@ class NsrTopic(BaseTopic): for index in range(0, count): vdur = deepcopy(vdur) for iface in vdur["interfaces"]: - if iface.get("ip-address"): + if iface.get("ip-address") and index != 0: iface["ip-address"] = increment_ip_mac(iface["ip-address"]) - if iface.get("mac-address"): + if iface.get("mac-address") and index != 0: iface["mac-address"] = increment_ip_mac(iface["mac-address"]) vdur["_id"] = str(uuid4())