Skip to content

[minigraph] populate bgp_asn in DEVICE_METADATA only if it is valid.#19413

Merged
rlhui merged 6 commits intosonic-net:masterfrom
abdosi:secureboot
Jul 2, 2024
Merged

[minigraph] populate bgp_asn in DEVICE_METADATA only if it is valid.#19413
rlhui merged 6 commits intosonic-net:masterfrom
abdosi:secureboot

Conversation

@abdosi
Copy link
Copy Markdown
Contributor

@abdosi abdosi commented Jun 28, 2024

What I did:-
Populate bgp_asn in DEVICE_METADATA only if is present/valid.

Why I did:
Without this it causes Yang Validation failure for Systems that are Pure
L2/Chassis Supervisor (no BGP) as Yang expects bgp_asn as valid
as_number

How I verify:
UT updated. Reverted this PR: #9640 which updated graph to pass Yang Validation . Now with this change we don't need to make change in graph.

abdosi added 5 commits June 4, 2024 21:34
Signed-off-by: Abhishek Dosi <[email protected]>
Without this it causes Yang Validation failure for Systems that are Pure
L2/Chassis Supervisor (no BGP) as Yang expects bgp_asn as valid
as_number

Signed-off-by: Abhishek Dosi <[email protected]>
arlakshm
arlakshm previously approved these changes Jun 28, 2024
Signed-off-by: Abhishek Dosi <[email protected]>
@arlakshm arlakshm added the Chassis for 202205 branch PRs needed for 202205 branch in msft repo label Jul 1, 2024
@rlhui rlhui merged commit dda96cf into sonic-net:master Jul 2, 2024
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jul 5, 2024
…onic-net#19413)

What I did:-
Populate bgp_asn in DEVICE_METADATA only if is present/valid.

Why I did:
Without this it causes Yang Validation failure for Systems that are Pure
L2/Chassis Supervisor (no BGP) as Yang expects bgp_asn as valid
as_number

---------

Signed-off-by: Abhishek Dosi <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202405: #19493

mssonicbld pushed a commit that referenced this pull request Jul 7, 2024
…19413)

What I did:-
Populate bgp_asn in DEVICE_METADATA only if is present/valid.

Why I did:
Without this it causes Yang Validation failure for Systems that are Pure
L2/Chassis Supervisor (no BGP) as Yang expects bgp_asn as valid
as_number

---------

Signed-off-by: Abhishek Dosi <[email protected]>
@abdosi abdosi removed the Chassis for 202205 branch PRs needed for 202205 branch in msft repo label Jul 12, 2024
@gechiang gechiang added the Chassis for 202205 branch PRs needed for 202205 branch in msft repo label Jul 14, 2024
@gechiang gechiang added the Included in Chassis for 202205 Branch Indicate PR is already in MSFT repo 202205 branch label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants