From 5b26cbca409e34db42e6728304de476ff1a61372 Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak Date: Thu, 18 Nov 2021 14:38:20 +0200 Subject: [PATCH] Revert "[aclorch] make AclRule::validateAddAction pure virtual" This reverts commit eacb0c859ed3c917b0d318029e929bb2655f9c69. --- orchagent/aclorch.cpp | 5 +++++ orchagent/aclorch.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index e3b279a482..898edc432c 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -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(); diff --git a/orchagent/aclorch.h b/orchagent/aclorch.h index 9b1df18570..76ef87a8ab 100644 --- a/orchagent/aclorch.h +++ b/orchagent/aclorch.h @@ -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)