Skip to content

Commit

Permalink
reverting sai and l2 basic
Browse files Browse the repository at this point in the history
  • Loading branch information
selldinesh committed Oct 3, 2023
1 parent d7e4037 commit 18c36c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 4 additions & 2 deletions common/sai.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ def get_by_type(self, obj, attr, attr_type, do_assert=False):
unsupported_types = [
"sai_port_eye_values_list_t", "sai_prbs_rx_state_t",
"sai_port_err_status_list_t", "sai_fabric_port_reachability_t",
"sai_port_lane_latch_status_list_t", "sai_latch_status_t"
"sai_port_lane_latch_status_list_t", "sai_latch_status_t",
"sai_port_frequency_offset_ppm_list_t", "sai_port_snr_list_t",
"sai_acl_chain_list_t"
]
if attr_type == "sai_object_list_t":
status, data = self.get(obj, [attr, "1:oid:0x0"], do_assert)
Expand Down Expand Up @@ -710,4 +712,4 @@ def __parse_rec(self, fname):
tokens = tokens[1:]
data.append(tokens)
rec[cnt] = data #if len(data) > 1 else data[0]
return rec
return rec
13 changes: 13 additions & 0 deletions tests/api/test_isolation_group_member.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
from pprint import pprint

import pytest

@pytest.fixture(scope="module", autouse=True)
def discovery(npu):
npu.objects_discovery()

@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiIsolationGroupMember:
# object with parent SAI_OBJECT_TYPE_ISOLATION_GROUP SAI_OBJECT_TYPE_PORT SAI_OBJECT_TYPE_BRIDGE_PORT

Expand Down
2 changes: 1 addition & 1 deletion tests/test_l2_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,4 +909,4 @@ def test_l2_mac_move_1(npu, dataplane):
npu.create_vlan_member(npu.default_vlan_oid, npu.dot1q_bp_oids[idx], "SAI_VLAN_TAGGING_MODE_UNTAGGED")
npu.set(npu.port_oids[idx], ["SAI_PORT_ATTR_PORT_VLAN_ID", npu.default_vlan_id])

npu.remove(vlan_oid)
npu.remove(vlan_oid)

0 comments on commit 18c36c4

Please sign in to comment.