Skip to content

[multi-asic] Port the fix to get the PCI_id from asic.conf from 201911 --> master#7513

Merged
judyjoseph merged 1 commit intosonic-net:masterfrom
judyjoseph:read_asic_ID
May 7, 2021
Merged

[multi-asic] Port the fix to get the PCI_id from asic.conf from 201911 --> master#7513
judyjoseph merged 1 commit intosonic-net:masterfrom
judyjoseph:read_asic_ID

Conversation

@judyjoseph
Copy link
Copy Markdown
Contributor

Why I did it

Port the fix to get the pci_device ID from asic.conf file and update the "asic_id" field in DEVICE_METADATA with the pci_device_Id

How I did it

How to verify it

PR ref: #4705

eg:

admin@str2--acs-1:~$ cat /usr/share/sonic/device/x86-r0/asic.conf 
NUM_ASIC=3
DEV_ID_ASIC_0=03:00.0
DEV_ID_ASIC_1=04:00.0
DEV_ID_ASIC_2=05:00.0

In the config db.json file

    "DEVICE_METADATA": {
        "localhost": {
  ....
            "asic_id": "03:00.0",
            "bgp_asn": "65100",
            "sub_role": "FrontEnd",
            "cloudtype": "None",
            "asic_name": "asic0",
            "type": "LeafRouter",
            "deployment_id": "None"
...
        }
    },

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • [x ] 202012

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@judyjoseph judyjoseph requested a review from lguohan as a code owner May 4, 2021 21:32
@judyjoseph judyjoseph requested a review from arlakshm May 4, 2021 21:32
@judyjoseph judyjoseph merged commit 44f21a1 into sonic-net:master May 7, 2021
@judyjoseph judyjoseph deleted the read_asic_ID branch May 7, 2021 21:28
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
…ster branch (sonic-net#7513)

Port the fix to get the pci_device ID from asic.conf file and update the "asic_id" field in DEVICE_METADATA with the pci_device_Id.

Ref: sonic-net#4705
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…ster branch (sonic-net#7513)

Port the fix to get the pci_device ID from asic.conf file and update the "asic_id" field in DEVICE_METADATA with the pci_device_Id.

Ref: sonic-net#4705
qiluo-msft pushed a commit that referenced this pull request Jan 25, 2022
…ster branch (#7513)

Port the fix to get the pci_device ID from asic.conf file and update the "asic_id" field in DEVICE_METADATA with the pci_device_Id.

Ref: #4705
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants