@@ -595,6 +595,10 @@ Stores information about mirror sessions and their properties.
595
595
ttl = h8 ; Session TTL
596
596
queue = h8 ; Session output queue
597
597
policer = policer_name ; Session policer name
598
+ dst_port = PORT_TABLE|ifname ; Session destination PORT
599
+ src_port = PORT_TABLE|ifname ; Session source PORT/LAG list
600
+ direction = "RX"/"TX"/"BOTH" ; Session direction
601
+ type = "SPAN"/"ERSPAN" ; Session type. Default is ERSPAN
598
602
599
603
;value annotations
600
604
mirror_session_name = 1*255VCHAR
@@ -623,6 +627,37 @@ Example:
623
627
}
624
628
]
625
629
630
+ [
631
+ {
632
+ "MIRROR_SESSION_TABLE:session_2": {
633
+ "src_ip": "1.1.1.1",
634
+ "dst_ip": "2.2.2.2",
635
+ "gre_type": "0x6558",
636
+ "dscp": "50",
637
+ "ttl": "64",
638
+ "queue": "0"
639
+ "src_port": "Ethernet0,PortChannel001"
640
+ "direction": "BOTH"
641
+ "type": "ERSPAN"
642
+ },
643
+ "OP": "SET"
644
+ }
645
+ ]
646
+
647
+ [
648
+ {
649
+ "MIRROR_SESSION_TABLE:session_3": {
650
+ "type": "SPAN"
651
+ "dst_port": "Ethernet0"
652
+ "src_port": "Ethernet4,PortChannel002"
653
+ "direction": "BOTH"
654
+ },
655
+ "OP": "SET"
656
+ }
657
+ ]
658
+
659
+
660
+
626
661
Equivalent RedisDB entry:
627
662
628
663
127.0.0.1:6379> KEYS *MIRROR*
@@ -631,7 +666,7 @@ Equivalent RedisDB entry:
631
666
1) "src_ip"
632
667
2) "1.1.1.1"
633
668
3) "dst_ip"
634
- 4) "2.2.2.2
669
+ 4) "2.2.2.2"
635
670
5) "gre_type"
636
671
6) "0x6558"
637
672
7) "dscp"
@@ -641,6 +676,39 @@ Equivalent RedisDB entry:
641
676
11) "queue"
642
677
12) "0"
643
678
679
+ 127.0.0.1:6379> KEYS *MIRROR*
680
+ 1) "MIRROR_SESSION_TABLE:session_2"
681
+ 127.0.0.1:6379> HGETALL MIRROR_SESSION_TABLE:session_2
682
+ 1) "src_ip"
683
+ 2) "1.1.1.1"
684
+ 3) "dst_ip"
685
+ 4) "2.2.2.2"
686
+ 5) "gre_type"
687
+ 6) "0x6558"
688
+ 7) "dscp"
689
+ 8) "50"
690
+ 9) "ttl"
691
+ 10) "64"
692
+ 11) "queue"
693
+ 12) "0"
694
+ 13) "src_port"
695
+ 14) "Ethernet0,PortChannel001"
696
+ 15) "direction"
697
+ 16) "BOTH"
698
+ 17) "type"
699
+ 18) "ERSPAN"
700
+
701
+ 127.0.0.1:6379> KEYS *MIRROR*
702
+ 1) "MIRROR_SESSION_TABLE:session_1"
703
+ 127.0.0.1:6379> HGETALL MIRROR_SESSION_TABLE:session_3i
704
+ 1) "type"
705
+ 2) "SPAN"
706
+ 3) "dst_port"
707
+ 4) "Ethernet0"
708
+ 5) "src_port"
709
+ 6) "Ethernet4,PortChannel002"
710
+ 7) "direction"
711
+ 8) "RX"
644
712
---------------------------------------------
645
713
646
714
### POLICER_TABLE
0 commit comments