Skip to content

Commit

Permalink
[aclorch]: Egress mirror action support and action ASIC support check (
Browse files Browse the repository at this point in the history
…#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 <stepanb@mellanox.com>
  • Loading branch information
stepanblyschak authored and stcheng committed Sep 16, 2019
1 parent 313ef5c commit d98d1e9
Show file tree
Hide file tree
Showing 7 changed files with 621 additions and 116 deletions.
12 changes: 11 additions & 1 deletion doc/swss-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,17 @@ Stores rules associated with a specific ACL table on the switch.
: next-hop ip address Example: "10.0.0.1"
: next-hop group set of addresses Example: "10.0.0.1,10.0.0.3"

mirror_action = 1*255VCHAR ; refer to the mirror session
redirect_action = 1*255CHAR ; redirect parameter
; This parameter defines a destination for redirected packets
; it could be:
: name of physical port. Example: "Ethernet10"
: name of LAG port Example: "PortChannel5"
: next-hop ip address Example: "10.0.0.1"
: next-hop group set of addresses Example: "10.0.0.1,10.0.0.3"

mirror_action = 1*255VCHAR ; refer to the mirror session (by default it will be ingress mirror action)
mirror_ingress_action = 1*255VCHAR ; refer to the mirror session
mirror_egress_action = 1*255VCHAR ; refer to the mirror session

ether_type = h16 ; Ethernet type field

Expand Down
2 changes: 1 addition & 1 deletion orchagent/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ orchagent_SOURCES = \

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

routeresync_SOURCES = routeresync.cpp
routeresync_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON)
Expand Down
Loading

0 comments on commit d98d1e9

Please sign in to comment.