Skip to content

[Fixbug 18418] [Yang] MACSEC_PROFILE table does not match yang definition#18419

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
Pterosaur:fix_macsec_yang
Mar 21, 2024
Merged

[Fixbug 18418] [Yang] MACSEC_PROFILE table does not match yang definition#18419
qiluo-msft merged 1 commit intosonic-net:masterfrom
Pterosaur:fix_macsec_yang

Conversation

@Pterosaur
Copy link
Contributor

@Pterosaur Pterosaur commented Mar 21, 2024

Why I did it

Fix the issue 18418, The YANG model to MACsec fallback cak/ckn is wrong. We should allow the fallback option is empty.

Work item tracking
  • Microsoft ADO (number only): 24657445

How I did it

Add a condition to check whether the fallback is providered

How to verify it

Check Azp

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

Signed-off-by: Ze Gan <[email protected]>
@Pterosaur Pterosaur changed the title Fix issue 18418: [Yang] MACSEC_PROFILE table does not match yang definition [Fixbug 18418] [Yang] MACSEC_PROFILE table does not match yang definition Mar 21, 2024
@Pterosaur Pterosaur requested a review from ganglyu March 21, 2024 14:37
@Pterosaur Pterosaur marked this pull request as ready for review March 21, 2024 14:39
@Pterosaur Pterosaur requested a review from qiluo-msft as a code owner March 21, 2024 14:39
@qiluo-msft qiluo-msft merged commit 4ee6b6e into sonic-net:master Mar 21, 2024
@StormLiangMS
Copy link
Contributor

hi @Pterosaur what's the impact to miss this one for 202305? could you update the ADO?

@Pterosaur
Copy link
Contributor Author

hi @Pterosaur what's the impact to miss this one for 202305? could you update the ADO?

@StormLiangMS ADO is: 24657445
The db_migrator will fail without this PR. Because db_migrator needs to leverage the YANG as a validator. But there was a BUG without this PR.

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 9, 2024
…tion (sonic-net#18419)

### Why I did it
Fix the issue [18418](sonic-net#18418), The YANG model to MACsec fallback cak/ckn is wrong. We should allow the fallback option is empty.

### How I did it
Add a condition to check whether the fallback is providered

#### How to verify it
Check Azp
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #18918

mssonicbld pushed a commit that referenced this pull request May 11, 2024
…tion (#18419)

### Why I did it
Fix the issue [18418](#18418), The YANG model to MACsec fallback cak/ckn is wrong. We should allow the fallback option is empty.

### How I did it
Add a condition to check whether the fallback is providered

#### How to verify it
Check Azp
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.

6 participants