Skip to content

Commit

Permalink
[orchagent]: Update MACsec SAI API to 1.8.0 and re-enable MACsec test (
Browse files Browse the repository at this point in the history
…sonic-net#1733)

Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur authored May 7, 2021
1 parent 295061c commit e29d566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions orchagent/macsecorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1848,13 +1848,13 @@ bool MACsecOrch::createMACsecSA(

if (direction == SAI_MACSEC_DIRECTION_EGRESS)
{
attr.id = SAI_MACSEC_SA_ATTR_XPN;
attr.id = SAI_MACSEC_SA_ATTR_CONFIGURED_EGRESS_XPN;
attr.value.u64 = pn;
attrs.push_back(attr);
}
else
{
attr.id = SAI_MACSEC_SA_ATTR_MINIMUM_XPN;
attr.id = SAI_MACSEC_SA_ATTR_MINIMUM_INGRESS_XPN;
attr.value.u64 = pn;
attrs.push_back(attr);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/test_macsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import conftest

import sys
import pytest
import functools
import typing
import re
Expand Down Expand Up @@ -588,7 +587,6 @@ def deinit_macsec(
macsec_port_identifier))
wpa.deinit_macsec_port(port_name)

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

0 comments on commit e29d566

Please sign in to comment.