- # if the ipv6 addr set on the slice is different on the value provided, let's update it
- if (ipv6addr is not None) and (len(value)>0) and (ipv6addr!=value):
- slivertag_id = getSliverTagId(slivertags)
- plc.UpdateSliceTag(slivertag_id,value)
- # ipv6 entry on /etc/hosts of each slice
- result = tools.search_ipv6addr_hosts(slice['name'], value)
- if not result:
- tools.remove_all_ipv6addr_hosts(slice['name'], data['hostname'])
- tools.add_ipv6addr_hosts_line(slice['name'], data['hostname'], value)
- logger.log("update_ipv6addr_slivertag: finishing the update process for " +
+ # if the ipv6 addr set on the slice is different on the value provided, let's update it
+ if (ipv6addr is not None) and (len(value)>0) and (ipv6addr!=value):
+ slivertag_id = getSliverTagId(slivertags)
+ plc.UpdateSliceTag(slivertag_id,value)
+ # ipv6 entry on /etc/hosts of each slice
+ result = tools.search_ipv6addr_hosts(slice['name'], value)
+ if not result:
+ tools.remove_all_ipv6addr_hosts(slice['name'], data['hostname'])
+ tools.add_ipv6addr_hosts_line(slice['name'], data['hostname'], value)
+ logger.log("update_ipv6addr_slivertag: finishing the update process for " +