Skip to content

Commit 0e1558e

Browse files
authored
[mclag]: Added marvell-teralynx to port isolation grp support list (#3946)
What I did Added marvell-teralynx platform to port isolation group supported list in mclaglink.cpp. Why I did it The MCLAG port isolation configuration is guarded by a platform check in mclagsyncd. If the platform name is not in supported list, mclagsyncd tries to create MCLAG ACL table, using the peer link as the source port and the portchannel's in the domain as destination ports, instead of creating a port isolation group. Since marvell-teralynx supports port isolation group objects, it has been added to the list of supported platforms.
1 parent 3ccfa62 commit 0e1558e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mclagsyncd/mclaglink.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ void MclagLink::setPortIsolate(char *msg)
193193
BRCM_PLATFORM_SUBSTRING,
194194
BFN_PLATFORM_SUBSTRING,
195195
CTC_PLATFORM_SUBSTRING,
196-
MRVL_PRST_PLATFORM_SUBSTRING
196+
MRVL_PRST_PLATFORM_SUBSTRING,
197+
MRVL_TL_PLATFORM_SUBSTRING
197198
};
198199

199200
const char *platform = getenv("platform");

mclagsyncd/mclaglink.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define BFN_PLATFORM_SUBSTRING "barefoot"
5656
#define CTC_PLATFORM_SUBSTRING "centec"
5757
#define MRVL_PRST_PLATFORM_SUBSTRING "marvell-prestera"
58+
#define MRVL_TL_PLATFORM_SUBSTRING "marvell-teralynx"
5859

5960
using namespace std;
6061

0 commit comments

Comments
 (0)