change port id property

Change-Id: I36b6444399e4ed023cbf6c974c1ecd47ffb31ee9
This commit is contained in:
Eyal 2016-04-10 16:22:41 +03:00
parent a2f9fe0987
commit 3c9b1b45aa

View File

@ -45,11 +45,8 @@ class PortTransformer(ResourceTransformerBase):
super(PortTransformer, self).__init__(transformers)
def _create_entity_key(self, entity_event):
port_id = 'port_id' if tbase.is_update_event(entity_event) \
else 'id'
key_fields = self._key_values(NEUTRON_PORT_DATASOURCE,
extract_field_value(entity_event,
port_id))
extract_field_value(entity_event, 'id'))
return tbase.build_key(key_fields)
def _create_snapshot_entity_vertex(self, entity_event):