nvp plugin rxtx_factor readonly update port

The following change done in nova 7de916 started passing in the
rxtx_factor on update port rather than just on create_port which
is what we only originally supported. Therefore currently when
booting a vm and specifying --nic port-id it will fail to boot with:
Cannot update read-only attribute rxtx_factor. This patch is a work
around to allow the rxtx_factor value to be passed in on update port even
though we ignore the value. Later we'll implement updating rxtx_factor on
ports but this is a good work around for now.

Fixes bug: 1202406

Change-Id: Iedd488b7bdc9b1a1317000d249f03b0eafbea419
This commit is contained in:
Aaron Rosen 2013-07-17 14:56:16 -07:00
parent 7efd7957a2
commit 7b69d98e19

View File

@ -127,7 +127,9 @@ RXTX_FACTOR = 'rxtx_factor'
EXTENDED_ATTRIBUTES_2_0 = { EXTENDED_ATTRIBUTES_2_0 = {
'ports': { 'ports': {
RXTX_FACTOR: {'allow_post': True, RXTX_FACTOR: {'allow_post': True,
'allow_put': False, # FIXME(arosen): the nvp plugin currently does not
# implement updating rxtx factor on port.
'allow_put': True,
'is_visible': False, 'is_visible': False,
'default': 1, 'default': 1,
'enforce_policy': True, 'enforce_policy': True,