- cp_list.append({"name": cp,
- "virtual_link_id": vlr.network_id,
- "type_yang": intf.virtual_interface.type_yang,
- "vpci": intf.virtual_interface.vpci})
- else:
- cp_list.append({"name": cp,
- "virtual_link_id": vlr.network_id,
- "type_yang": intf.virtual_interface.type_yang})
+ cp_dict["vpci"] = intf.virtual_interface.vpci
+
+ try:
+ if cp.static_ip_address:
+ cp_dict["static_ip_address"] = cp.static_ip_address
+ except AttributeError as e:
+ pass
+
+ self._log.debug("Internal CP info {}".format(cp_info))
+ cp_list.append(cp_dict)