From 6b6dda6af61c880ef8ffcd8961da22338574ef8a Mon Sep 17 00:00:00 2001 From: Yoush <63637102+youshcentec@users.noreply.github.com> Date: Tue, 6 Dec 2022 06:15:43 +0800 Subject: [PATCH] [Centec]for support mclag of centec to configure port isolate-group #2529 *Add centec platform to supported platform list for port isolation group --- mclagsyncd/mclaglink.cpp | 3 ++- mclagsyncd/mclaglink.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mclagsyncd/mclaglink.cpp b/mclagsyncd/mclaglink.cpp index ab684c54930d..b8040c164667 100644 --- a/mclagsyncd/mclaglink.cpp +++ b/mclagsyncd/mclaglink.cpp @@ -191,7 +191,8 @@ void MclagLink::setPortIsolate(char *msg) { static const unordered_set supported { BRCM_PLATFORM_SUBSTRING, - BFN_PLATFORM_SUBSTRING + BFN_PLATFORM_SUBSTRING, + CTC_PLATFORM_SUBSTRING }; const char *platform = getenv("platform"); diff --git a/mclagsyncd/mclaglink.h b/mclagsyncd/mclaglink.h index a811f8cb2eb0..09129fd88f9d 100644 --- a/mclagsyncd/mclaglink.h +++ b/mclagsyncd/mclaglink.h @@ -53,6 +53,7 @@ #define BRCM_PLATFORM_SUBSTRING "broadcom" #define BFN_PLATFORM_SUBSTRING "barefoot" +#define CTC_PLATFORM_SUBSTRING "centec" using namespace std;