Use correct extra_config format

Use correct extra_configs format when updating logical port

Change-Id: I27f28b52548f116f3e52dda70f158f5baa27cd88
This commit is contained in:
Xiaopei Liu
2019-04-25 02:47:48 +08:00
parent 1d6b9f27a1
commit 468dfad449
2 changed files with 2 additions and 13 deletions

View File

@@ -307,11 +307,7 @@ class LogicalPortTestCase(BaseTestResource):
return fake_profile_dicts
def _get_extra_config_dicts(self, fake_port):
fake_extra_config_dicts = []
for config in fake_port['extra_configs']:
fake_extra_config_dicts.append(
{'config_value': config['config_pair']['value'],
'config_key': config['config_pair']['key']})
fake_extra_config_dicts = fake_port['extra_configs']
return fake_extra_config_dicts
def _get_pktcls_bindings(self):