Skip to content

Commit 7ea2f1e

Browse files
committed
Update MACsec SAI API to 1.8.0 and re-enable MACsec test
Signed-off-by: Ze Gan <[email protected]>
1 parent ee7a735 commit 7ea2f1e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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

-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ def deinit_macsec(
588588
macsec_port_identifier))
589589
wpa.deinit_macsec_port(port_name)
590590

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

0 commit comments

Comments
 (0)