[AIM NFV] Limit the number of PPG per PC to 3
PPG: Port Pair Group PC: Port Chain We limit the number of services in a chain to three as suggested by the ACI guidelines Change-Id: Ibf6cc78a1f0363eb45767a594318e28edd0235ab
This commit is contained in:
@@ -1001,6 +1001,27 @@ class TestPortChain(TestAIMServiceFunctionChainingBase):
|
||||
self._verify_pc_mapping(pc)
|
||||
self._verify_pc_delete(pc)
|
||||
|
||||
def test_pc_max_ppg_validation(self):
|
||||
fc = self._create_simple_flowc(src_svi=self.src_svi,
|
||||
dst_svi=self.dst_svi)
|
||||
ppg1 = self._create_simple_ppg(pairs=1)
|
||||
ppg2 = self._create_simple_ppg(pairs=1)
|
||||
ppg3 = self._create_simple_ppg(pairs=1)
|
||||
ppg4 = self._create_simple_ppg(pairs=1)
|
||||
self.create_port_chain(port_pair_groups=[ppg1['id'], ppg2['id'],
|
||||
ppg3['id'], ppg4['id']],
|
||||
flow_classifiers=[fc['id']],
|
||||
expected_res_status=400)
|
||||
pc = self.create_port_chain(port_pair_groups=[ppg1['id'],
|
||||
ppg2['id'],
|
||||
ppg3['id']],
|
||||
flow_classifiers=[fc['id']],
|
||||
expected_res_status=201)['port_chain']
|
||||
self.update_port_chain(pc['id'],
|
||||
port_pair_groups=[ppg1['id'], ppg2['id'],
|
||||
ppg3['id'], ppg4['id']],
|
||||
expected_res_status=500)
|
||||
|
||||
|
||||
class TestPortChainSVI(TestPortChain):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user