Change-Id: I8d2bd64bc8dd0469fd7a847404e9fca37eaaa3f2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
net_list_vim.append({"port-id": new_port["port"]["id"]})
if metadata_vpci:
metadata = {"pci_assignement": json.dumps(metadata_vpci)}
- if len(metadata["pci_assignement"] >255):
+ if len(metadata["pci_assignement"]) >255:
#limit the metadata size
#metadata["pci_assignement"] = metadata["pci_assignement"][0:255]
self.logger.warn("Metadata deleted since it exceeds the expected length (255) ")