Removes get_port_by_vif

VIF is not indexed by the databse, it lives inside the extra attribute
which is a data blob, so the method is not used.

Change-Id: I11ce35bae1aa81c38c8ebc87251148ae65f3a30e
Partial-bug: 1314732
This commit is contained in:
Angus Thomas 2014-08-15 17:33:58 +01:00
parent 868aacdc21
commit 74805aaec0
2 changed files with 0 additions and 12 deletions

View File

@ -213,14 +213,6 @@ class Connection(object):
:returns: A port.
"""
@abc.abstractmethod
def get_port_by_vif(self, vif):
"""Return the port corresponding to this VIF.
:param vif: The uuid of the VIF.
:returns: A port.
"""
@abc.abstractmethod
def get_port_list(self, limit=None, marker=None,
sort_key=None, sort_dir=None):

View File

@ -377,10 +377,6 @@ class Connection(api.Connection):
except NoResultFound:
raise exception.PortNotFound(port=address)
@objects.objectify(objects.Port)
def get_port_by_vif(self, vif):
pass
def get_port_list(self, limit=None, marker=None,
sort_key=None, sort_dir=None):
return _paginate_query(models.Port, limit, marker,