Skip to content

Commit e29d566

Browse files
authored
[orchagent]: Update MACsec SAI API to 1.8.0 and re-enable MACsec test (#1733)
Signed-off-by: Ze Gan <[email protected]>
1 parent 295061c commit e29d566

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

orchagent/macsecorch.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1848,13 +1848,13 @@ bool MACsecOrch::createMACsecSA(
18481848

18491849
if (direction == SAI_MACSEC_DIRECTION_EGRESS)
18501850
{
1851-
attr.id = SAI_MACSEC_SA_ATTR_XPN;
1851+
attr.id = SAI_MACSEC_SA_ATTR_CONFIGURED_EGRESS_XPN;
18521852
attr.value.u64 = pn;
18531853
attrs.push_back(attr);
18541854
}
18551855
else
18561856
{
1857-
attr.id = SAI_MACSEC_SA_ATTR_MINIMUM_XPN;
1857+
attr.id = SAI_MACSEC_SA_ATTR_MINIMUM_INGRESS_XPN;
18581858
attr.value.u64 = pn;
18591859
attrs.push_back(attr);
18601860
}

tests/test_macsec.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import conftest
33

44
import sys
5-
import pytest
65
import functools
76
import typing
87
import re
@@ -588,7 +587,6 @@ def deinit_macsec(
588587
macsec_port_identifier))
589588
wpa.deinit_macsec_port(port_name)
590589

591-
@pytest.mark.skip("Skip to be removed after macsec orch is made compatible to SAI v1.8.0")
592590
def test_macsec_term_orch(self, dvs: conftest.DockerVirtualSwitch, testlog):
593591
port_name = "Ethernet0"
594592
local_mac_address = "00-15-5D-78-FF-C1"

0 commit comments

Comments
 (0)