Merge "System security grp:Add system sg in port sg list"

This commit is contained in:
Zuul
2021-09-16 19:40:07 +00:00
committed by Gerrit Code Review
3 changed files with 15 additions and 1 deletions

View File

@@ -2930,6 +2930,10 @@ class TestGbpDetailsForML2(AIMBaseTestCase,
sg_list.append({'policy-space': 'common',
'name': self.mech_driver.apic_system_id +
'_DefaultSecurityGroup'})
sg_list.append({'policy-space': 'common',
'name': self.mech_driver.apic_system_id +
'_SystemSecurityGroup'})
self.assertEqual(sg_list, mapping['security_group'])
# Set the right MTU through extra_dhcp_opts
data = {'port': {'extra_dhcp_opts': [{'opt_name': 'interface-mtu',
@@ -3468,6 +3472,10 @@ class TestPolicyTarget(AIMBaseTestCase,
sg_list.append({'policy-space': 'common',
'name': self.mech_driver.apic_system_id +
'_DefaultSecurityGroup'})
sg_list.append({'policy-space': 'common',
'name': self.mech_driver.apic_system_id +
'_SystemSecurityGroup'})
self.assertEqual(sg_list, mapping['security_group'])
# Set the right MTU through extra_dhcp_opts
data = {'port': {'extra_dhcp_opts': [{'opt_name': 'interface-mtu',