Skip to content

Commit

Permalink
Get the host id from the port sent to update_port when a service inst…
Browse files Browse the repository at this point in the history
…ance

is created. This is needed to figure out if the host has DPDK enabled or
not.

Change-Id: Ic8d49323a667d6cbfe5b2c3a43df1a275a6e9226
Closes-Bug: 1547314
  • Loading branch information
srajag committed Feb 20, 2016
1 parent 8538aa3 commit 2f55600
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -444,6 +444,9 @@ def update_port(self, context, port_id, port):
original['fixed_ips'], port['port']['fixed_ips'])
port['port']['fixed_ips'] = prev_ips + added_ips

if 'binding:host_id' in port['port']:
original['binding:host_id'] = port['port']['binding:host_id']

if self._is_dpdk_enabled(context, original):
port['port'][portbindings.VIF_TYPE] = \
portbindings.VIF_TYPE_VHOST_USER
Expand Down

0 comments on commit 2f55600

Please sign in to comment.