Skip to content

Remove operation for SAI_OBJECT_TYPE_VLAN_MEMBER not working, getting SAI_STATUS_ITEM_NOT_FOUND error #175

@selldinesh

Description

@selldinesh

I created a vlan member object using the below code block

commands = [
        {
            "name": "vlan_member_2",
            "op": "create",
            "type": "SAI_OBJECT_TYPE_VLAN_MEMBER",
            "attributes": [
                "SAI_VLAN_MEMBER_ATTR_VLAN_ID",
                "$vlan_10",
                "SAI_VLAN_MEMBER_ATTR_BRIDGE_PORT_ID",
                "$BRIDGE_PORT_2",
                "SAI_VLAN_MEMBER_ATTR_VLAN_TAGGING_MODE",
                "SAI_VLAN_TAGGING_MODE_UNTAGGED",
            ],
        },

    ]
    for command in commands:
        print("-" * 80)
        print(command)
        result = npu.command_processor.process_command(command)
        print(result)

output:
-------------------------------------------------------------------------------- {'name': 'vlan_member_2', 'op': 'create', 'type': 'SAI_OBJECT_TYPE_VLAN_MEMBER', 'attributes': ['SAI_VLAN_MEMBER_ATTR_VLAN_ID', '$vlan_10', 'SAI_VLAN_MEMBER_ATTR_BRIDGE_PORT_ID', '$BRIDGE_PORT_2', 'SAI_VLAN_MEMBER_ATTR_VLAN_TAGGING_MODE', 'SAI_VLAN_TAGGING_MODE_UNTAGGED']} oid:0x270000000005ae SAI_STATUS_SUCCESS --------------------------------------------------------------------------------

Once its created when i try tho remove it, i get the following issue

commands = [
    {
        'name': 'vlan_member_2',
        'op': 'remove',
    },

]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values remove =======')
pprint(results)

Output :

>           assert status[2] == 'SAI_STATUS_SUCCESS', f"remove({obj}) --> {status}"
E           AssertionError: remove(SAI_OBJECT_TYPE_VLAN_MEMBER:oid:0x270000000005ae) --> [b'Sgetresponse', b'[]', 'SAI_STATUS_ITEM_NOT_FOUND']

/usr/local/lib/python3.7/dist-packages/saichallenger/common/sai_client/sai_redis_client/sai_redis_client.py:161: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions