[Urgent] fix tap_enabled for sfc

1. What is the problem
A new change Icd4bf90d54f4edb443467b192e4e639fde749d4e is merged in
networking-sfc, making unit tests fail.

2. What is the solution for the problem
Add an attribute "tap_enabled" for PortPairGroup in the unit tests
for sfc, and set it as False.

3. What features need to be implemented to the Tricircle to
realize the solution
N/A.

Change-Id: I0e92117be9a2beed809538412832c6a884fa1b55
This commit is contained in:
Yipei Niu 2017-10-24 21:41:39 +08:00
parent 6b792d017e
commit ff97169485
1 changed files with 4 additions and 2 deletions

View File

@ -487,7 +487,8 @@ class PluginTest(unittest.TestCase):
"port_pairs": t_pp_ids,
"project_id": project_id,
"id": t_ppg_id,
"name": 'top_ppg_%d' % index}
"name": 'top_ppg_%d' % index,
"tap_enabled": False}
TOP_PORTPAIRGROUPS.append(DotDict(top_ppg))
if create_bottom:
btm_ppg = {
@ -498,7 +499,8 @@ class PluginTest(unittest.TestCase):
"port_pairs": b_pp_ids,
"project_id": project_id,
"id": b_ppg_id,
"name": 'btm_ppg_%d' % index}
"name": 'btm_ppg_%d' % index,
"tap_enabled": False}
if pod_name == 'pod_1':
BOTTOM1_PORTPAIRGROUPS.append(DotDict(btm_ppg))
else: