Skip to content

[debug dump] Interface Module Add #29

Closed
vivekrnv wants to merge 8 commits intomasterfrom
dump_intf_mod
Closed

[debug dump] Interface Module Add #29
vivekrnv wants to merge 8 commits intomasterfrom
dump_intf_mod

Conversation

@vivekrnv
Copy link
Copy Markdown
Owner

@vivekrnv vivekrnv commented Jan 29, 2022

What I did

HLD for Dump Utility: HLD.

  • Added the Interface Module to the Debug Dump Utility
  • Added the Corresponding UT's
  • Refactored Common methods required into match_helper.py

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

root@mts-sonic-dut/root/# dump state interface Ethernet16 --key-map
{
    "Ethernet16": {
        "CONFIG_DB": {
            "keys": [
                "INTERFACE|Ethernet16",
                "INTERFACE|Ethernet16|10.0.0.8/31"
            ],
            "tables_not_found": []
        },
        "APPL_DB": {
            "keys": [
                "INTF_TABLE:Ethernet16",
                "INTF_TABLE:Ethernet16:10.0.0.8/31"
            ],
            "tables_not_found": []
        },
        "STATE_DB": {
            "keys": [
                "INTERFACE_TABLE|Ethernet16",
                "INTERFACE_TABLE|Ethernet16|10.0.0.8/31"
            ],
            "tables_not_found": []
        },
        "ASIC_DB": {
            "keys": [
                "ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x60000000005d0"
            ],
            "tables_not_found": [],
            "vidtorid": {
                "oid:0x60000000005d0": "oid:0x34100000006"
            }
        }
    }
}


root@mts-sonic-dut/root/# dump state interface PortChannel1234 --key-map
{
    "PortChannel1234": {
        "CONFIG_DB": {
            "keys": [
                "PORTCHANNEL_INTERFACE|PortChannel1234",
                "PORTCHANNEL_INTERFACE|PortChannel1234|7.7.7.1/24"
            ],
            "tables_not_found": []
        },
        "APPL_DB": {
            "keys": [
                "INTF_TABLE:PortChannel1234",
                "INTF_TABLE:PortChannel1234:7.7.7.1/24"
            ],
            "tables_not_found": []
        },
        "STATE_DB": {
            "keys": [
                "INTERFACE_TABLE|PortChannel1234",
                "INTERFACE_TABLE|PortChannel1234|7.7.7.1/24"
            ],
            "tables_not_found": []
        },
        "ASIC_DB": {
            "keys": [
                "ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x60000000005ec"
            ],
            "tables_not_found": [],
            "vidtorid": {
                "oid:0x60000000005ec": "oid:0x4100000006"
            }
        }
    }
}

root@mts-sonic-dut/root/# dump state interface Eth0.1 --key-map
{
    "Eth0.1": {
        "CONFIG_DB": {
            "keys": [
                "VLAN_SUB_INTERFACE|Eth0.1",
                "VLAN_SUB_INTERFACE|Eth0.1|9.9.9.9/24"
            ],
            "tables_not_found": []
        },
        "APPL_DB": {
            "keys": [
                "INTF_TABLE:Eth0.1",
                "INTF_TABLE:Eth0.1:9.9.9.9/24"
            ],
            "tables_not_found": []
        },
        "STATE_DB": {
            "keys": [
                "INTERFACE_TABLE|Eth0.1",
                "INTERFACE_TABLE|Eth0.1|9.9.9.9/24"
            ],
            "tables_not_found": []
        },
        "ASIC_DB": {
            "keys": [
                "ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x60000000005e9"
            ],
            "tables_not_found": [],
            "vidtorid": {
                "oid:0x60000000005e9": "oid:0x90100000006"
            }
        }
    }
}

vkarri added 5 commits January 28, 2022 19:50
Signed-off-by: vkarri <vkarri@nvidia.com>
Signed-off-by: vkarri <vkarri@nvidia.com>
Signed-off-by: vkarri <vkarri@nvidia.com>
Signed-off-by: vkarri <vkarri@contoso.com>
Signed-off-by: vkarri <vkarri@nvidia.com>
@vivekrnv vivekrnv requested a review from dgsudharsan January 30, 2022 09:37
@vivekrnv vivekrnv closed this Jan 30, 2022
@vivekrnv vivekrnv reopened this Jan 30, 2022
Vivek Reddy Karri added 3 commits February 11, 2022 22:54
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
@vivekrnv vivekrnv requested a review from dgsudharsan February 12, 2022 01:24
@vivekrnv vivekrnv closed this Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants