Skip to content

Commit d98d1e9

Browse files
stepanblyschakstcheng
authored andcommitted
[aclorch]: Egress mirror action support and action ASIC support check (#963)
* Add support for egress mirror action * Move redirect out from PACKET_ACTION to its own REDIRECT_ACTION key preserving backwards compatibility with old schema to be aligned with SAI data types * Query ACL action list supported by ASIC per stage and put this information in STATE DB SWITCH_CAPABILITY table * perform secondary query for ACL action attributes which parameters are enum values * implement VS test cases Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 313ef5c commit d98d1e9

File tree

7 files changed

+621
-116
lines changed

7 files changed

+621
-116
lines changed

doc/swss-schema.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,17 @@ Stores rules associated with a specific ACL table on the switch.
459459
: next-hop ip address Example: "10.0.0.1"
460460
: next-hop group set of addresses Example: "10.0.0.1,10.0.0.3"
461461

462-
mirror_action = 1*255VCHAR ; refer to the mirror session
462+
redirect_action = 1*255CHAR ; redirect parameter
463+
; This parameter defines a destination for redirected packets
464+
; it could be:
465+
: name of physical port. Example: "Ethernet10"
466+
: name of LAG port Example: "PortChannel5"
467+
: next-hop ip address Example: "10.0.0.1"
468+
: next-hop group set of addresses Example: "10.0.0.1,10.0.0.3"
469+
470+
mirror_action = 1*255VCHAR ; refer to the mirror session (by default it will be ingress mirror action)
471+
mirror_ingress_action = 1*255VCHAR ; refer to the mirror session
472+
mirror_egress_action = 1*255VCHAR ; refer to the mirror session
463473

464474
ether_type = h16 ; Ethernet type field
465475

orchagent/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ orchagent_SOURCES = \
5656

5757
orchagent_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_SAI)
5858
orchagent_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_SAI)
59-
orchagent_LDADD = -lnl-3 -lnl-route-3 -lpthread -lsairedis -lswsscommon -lsaimetadata
59+
orchagent_LDADD = -lnl-3 -lnl-route-3 -lpthread -lsairedis -lswsscommon -lsaimeta -lsaimetadata
6060

6161
routeresync_SOURCES = routeresync.cpp
6262
routeresync_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON)

0 commit comments

Comments
 (0)