Skip to content

Commit d8b25c0

Browse files
committed
Update test cases for new egress mirror tag
1 parent 6342c77 commit d8b25c0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/sonic-config-engine/tests/t0-sample-graph.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,11 @@
303303
<InAcl>everflowV6</InAcl>
304304
<Type>Everflow</Type>
305305
</AclInterface>
306+
<AclInterface>
307+
<AttachTo>EGRESS_ERSPAN</AttachTo>
308+
<OutAcl>everflow_egress</OutAcl>
309+
<Type>Everflow</Type>
310+
</AclInterface>
306311
<AclInterface>
307312
<AttachTo>PortChannel01;PortChannel02;PortChannel03;PortChannel04</AttachTo>
308313
<InAcl>DataAclIngress</InAcl>

src/sonic-config-engine/tests/test_cfggen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def test_minigraph_acl(self):
111111
"Warning: ignore interface 'fortyGigE0/2' in DEVICE_NEIGHBOR as it is not in the port_config.ini\n"
112112
"{'NTP_ACL': {'services': ['NTP'], 'type': 'CTRLPLANE', 'policy_desc': 'NTP_ACL', 'stage': 'ingress'}, "
113113
"'EVERFLOW': {'stage': 'ingress', 'type': 'MIRROR', 'ports': ['PortChannel01', 'PortChannel02', 'PortChannel03', 'PortChannel04', 'Ethernet4'], 'policy_desc': 'EVERFLOW'}, "
114+
"'EVERFLOW_EGRESS': {'stage': 'egress', 'type': 'MIRROR', 'ports': ['PortChannel01', 'PortChannel02', 'PortChannel03', 'PortChannel04', 'Ethernet4'], 'policy_desc': 'EVERFLOW_EGRESS'}, "
114115
"'ROUTER_PROTECT': {'services': ['SSH', 'SNMP'], 'type': 'CTRLPLANE', 'policy_desc': 'ROUTER_PROTECT', 'stage': 'ingress'}, "
115116
"'DATAACLINGRESS': {'stage': 'ingress', 'type': 'L3', 'ports': ['PortChannel01', 'PortChannel02', 'PortChannel03', 'PortChannel04'], 'policy_desc': 'DATAACLINGRESS'}, "
116117
"'SNMP_ACL': {'services': ['SNMP'], 'type': 'CTRLPLANE', 'policy_desc': 'SNMP_ACL', 'stage': 'ingress'}, "

0 commit comments

Comments
 (0)