File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ acl_rule_attr_lookup_t aclL3ActionLookup =
52
52
53
53
static acl_table_type_lookup_t aclTableTypeLookUp =
54
54
{
55
- { TABLE_TYPE_L3, ACL_TABLE_L3 },
56
- { TABLE_TYPE_MIRROR, ACL_TABLE_MIRROR }
55
+ { TABLE_TYPE_L3, ACL_TABLE_L3 },
56
+ { TABLE_TYPE_MIRROR, ACL_TABLE_MIRROR },
57
+ { TABLE_TYPE_CTRLPLANE, ACL_TABLE_CTRLPLANE }
57
58
};
58
59
59
60
static acl_stage_type_lookup_t aclStageLookUp =
@@ -856,7 +857,8 @@ void AclRuleMirror::update(SubjectType type, void *cntx)
856
857
857
858
bool AclTable::validate ()
858
859
{
859
- if (type == ACL_TABLE_UNKNOWN) return false ;
860
+ // Control plane ACLs are handled by a separate process
861
+ if (type == ACL_TABLE_UNKNOWN || type == ACL_TABLE_CTRLPLANE) return false ;
860
862
if (ports.empty ()) return false ;
861
863
return true ;
862
864
}
Original file line number Diff line number Diff line change 22
22
#define TABLE_TYPE " TYPE"
23
23
#define TABLE_PORTS " PORTS"
24
24
25
- #define TABLE_TYPE_L3 " L3"
26
- #define TABLE_TYPE_MIRROR " MIRROR"
25
+ #define TABLE_TYPE_L3 " L3"
26
+ #define TABLE_TYPE_MIRROR " MIRROR"
27
+ #define TABLE_TYPE_CTRLPLANE " CTRLPLANE"
27
28
28
29
#define RULE_PRIORITY " PRIORITY"
29
30
#define MATCH_SRC_IP " SRC_IP"
@@ -63,7 +64,8 @@ typedef enum
63
64
{
64
65
ACL_TABLE_UNKNOWN,
65
66
ACL_TABLE_L3,
66
- ACL_TABLE_MIRROR
67
+ ACL_TABLE_MIRROR,
68
+ ACL_TABLE_CTRLPLANE
67
69
} acl_table_type_t ;
68
70
69
71
typedef map<string, acl_table_type_t > acl_table_type_lookup_t ;
You can’t perform that action at this time.
0 commit comments