[minigraph.py] Fix an issue that mirror table might be considered ctrlplane table (#1656)

This commit is contained in:
Taoyu Li 2018-04-30 11:06:47 -07:00 committed by GitHub
parent 8d3c5fbcc2
commit 3ed4513d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,6 +216,8 @@ def parse_dpg(dpg, hname):
acls[aclname] = {'policy_desc': aclname,
'ports': acl_intfs,
'type': 'MIRROR' if is_mirror else 'L3'}
elif is_mirror:
acls[aclname] = {'policy_desc': aclname, 'type': 'MIRROR'}
else:
# This ACL has no interfaces to attach to -- consider this a control plane ACL
try: