Skip to content

Adding vrrp sonic yang#20383

Open
vvbrcm wants to merge 1 commit intosonic-net:masterfrom
vvbrcm:vrrp_sonic_yang
Open

Adding vrrp sonic yang#20383
vvbrcm wants to merge 1 commit intosonic-net:masterfrom
vvbrcm:vrrp_sonic_yang

Conversation

@vvbrcm
Copy link

@vvbrcm vvbrcm commented Sep 30, 2024

Why I did it

Added vrrp sonic yang to help configure vrrp module.

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

How I did it

Create new sonic-vrrp.yang file.

How to verify it

Unit testing.

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)

@vvbrcm vvbrcm requested a review from qiluo-msft as a code owner September 30, 2024 19:43
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 30, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@adyeung
Copy link
Collaborator

adyeung commented Oct 2, 2024

@philo-micas @madhupalu please help review


leaf idkey {
type uint8 {
range "1..255";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add description for these leaf entries?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The terms used are simple and look to be self explanatory, hence did not add any description.

}
}

leaf pre_empt {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason to name like pre_empt instead of preempt?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for better readability.

@@ -0,0 +1,283 @@
module sonic-vrrp {
namespace "http://github.com/Azure/sonic-vrrp";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure

Azure -> sonic-net

@@ -0,0 +1,283 @@
module sonic-vrrp {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add unit test and update doc/Configuration.md?

@vvbrcm
Copy link
Author

vvbrcm commented Oct 29, 2024

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vvbrcm
Copy link
Author

vvbrcm commented Nov 18, 2024

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Praveen-Brcm
Copy link
Contributor

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wen587
Copy link
Contributor

wen587 commented Mar 10, 2025

Hi @vvbrcm , could you help fix build and add test case to this YANG?

@vvbrcm
Copy link
Author

vvbrcm commented May 8, 2025

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

path "/spc:sonic-portchannel/spc:PORTCHANNEL/spc:PORTCHANNEL_LIST/spc:name";
}
type leafref {
path "/svlan:sonic-vlan/svlan:VLAN/svlan:VLAN_LIST/svlan:name";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type leafref {
path "/spc:sonic-portchannel-interface/spc:PORTCHANNEL_INTERFACE/spc:PORTCHANNEL_INTERFACE_LIST/spc:name";
}
type leafref {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same back link issue

path "/spc:sonic-portchannel/spc:PORTCHANNEL/spc:PORTCHANNEL_LIST/spc:name";
}
type leafref {
path "/svlan:sonic-vlan/svlan:VLAN/svlan:VLAN_LIST/svlan:name";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same back link issue

@wen587
Copy link
Contributor

wen587 commented Sep 26, 2025

Hi @vvbrcm , please follow the change in #13078
need unit test and sample_config.json and added to setup.py

type string {
pattern 'True|False';
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use_v2_checksum is defined in yang model but not supported on cli or in frrcfgd.py. Should this be retained?

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.

8 participants