Skip to content

Commit

Permalink
Revert "[aclorch] make AclRule::validateAddAction pure virtual"
Browse files Browse the repository at this point in the history
This reverts commit eacb0c8.
  • Loading branch information
stepanblyschak committed Nov 18, 2021
1 parent eacb0c8 commit 5b26cbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ bool AclRule::validateAddMatch(string attr_name, string attr_value)
return setMatch(aclMatchLookup[attr_name], matchData);
}

bool AclRule::validateAddAction(string attr_name, string attr_value)
{
return false;
}

bool AclRule::processIpType(string type, sai_uint32_t &ip_type)
{
SWSS_LOG_ENTER();
Expand Down
2 changes: 1 addition & 1 deletion orchagent/aclorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class AclRule
AclRule(AclOrch *pAclOrch, string rule, string table, acl_table_type_t type, bool createCounter = true);
virtual bool validateAddPriority(string attr_name, string attr_value);
virtual bool validateAddMatch(string attr_name, string attr_value);
virtual bool validateAddAction(string attr_name, string attr_value) = 0;
virtual bool validateAddAction(string attr_name, string attr_value);
virtual bool validate() = 0;
bool processIpType(string type, sai_uint32_t &ip_type);
inline static void setRulePriorities(sai_uint32_t min, sai_uint32_t max)
Expand Down

0 comments on commit 5b26cbc

Please sign in to comment.