From 57034aefdf3ad728d318e3981c8ec54efbe5a45e Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 8 Oct 2024 00:35:53 +0000 Subject: [PATCH] Applied changed in PR #1817 --- orchagent/mirrororch.cpp | 23 ++-- tests/test_mirror.py | 232 +++++++++++++++++++++++++-------------- 2 files changed, 158 insertions(+), 97 deletions(-) diff --git a/orchagent/mirrororch.cpp b/orchagent/mirrororch.cpp index d2981330e4..0537766879 100644 --- a/orchagent/mirrororch.cpp +++ b/orchagent/mirrororch.cpp @@ -34,7 +34,8 @@ #define MIRROR_SESSION_DEFAULT_VLAN_PRI 0 #define MIRROR_SESSION_DEFAULT_VLAN_CFI 0 -#define MIRROR_SESSION_DEFAULT_IP_HDR_VER 4 +#define MIRROR_SESSION_IP_HDR_VER_4 4 +#define MIRROR_SESSION_IP_HDR_VER_6 6 #define MIRROR_SESSION_DSCP_SHIFT 2 #define MIRROR_SESSION_DSCP_MIN 0 #define MIRROR_SESSION_DSCP_MAX 63 @@ -396,20 +397,10 @@ task_process_status MirrorOrch::createEntry(const string& key, const vector