X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Finstance_topics.py;h=d76b0b146a4cbdcb0ae853634541190716abf49b;hp=ebef36e720b08cb77f664c1b8e2fbf88fb9db5cc;hb=b7cdee12fe9a54f6019c98edd1fe94f10acc5080;hpb=bfebfc02da4ab67880be60ca0d9bf78f5cc5e6ff diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index ebef36e..d76b0b1 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -938,9 +938,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())