Remove unused method
This commit removes unused method which was introdused in commit https://review.opendev.org/#/c/596731/ Change-Id: Icb8a9c6dc8ee543a7155ad5548532d7332d1d34f Signed-off-by: d.golov <d.golov@samsung.com>
This commit is contained in:
parent
103f1dab0f
commit
c1884278cd
@ -17,7 +17,6 @@
|
||||
import os.path
|
||||
import stat
|
||||
|
||||
from kuryr.lib._i18n import _
|
||||
from os_vif.objects import fields as osv_fields
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
@ -33,16 +32,6 @@ from kuryr_kubernetes.handlers import health
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
def _get_vhostport_type(vif):
|
||||
if vif.mode == osv_fields.VIFVHostUserMode.SERVER:
|
||||
return 'dpdkvhostuserclient'
|
||||
elif vif.mode == osv_fields.VIFVHostUserMode.CLIENT:
|
||||
return 'dpdkvhostuser'
|
||||
raise k_exc.IntegrityError(
|
||||
_("Unknown vhostuser mode %(mode)s for vif %(vif_id)s")
|
||||
% {'mode': vif.mode, 'vif_id': vif.id})
|
||||
|
||||
|
||||
def _get_vhostuser_port_name(vif):
|
||||
return ovs.OvsPlugin.gen_port_name(constants.OVS_VHOSTUSER_PREFIX, vif.id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user