Skip to content

yang: Correct pyang errors in frr-bgp-route-map.yang #18781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

y-bharath14
Copy link
Contributor

Correct pyang errors or warnings in frr-bgp-route-map.yang

case distance {
when "derived-from-or-self(../frr-route-map:action, 'frr-bgp-route-map:distance')";
leaf distance {
type uint8 {
range "1..255";
}
description
"Set the OSPF distance for the route";
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just say "the distance" (i.e., leave off OSPF).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe just say "the distance" (i.e., leave off OSPF).

Hello Christian Hopps,

Addressed review comment.

Thanks & Regards,
Bharath

@@ -980,13 +1043,17 @@ identity set-extcommunity-color {
"Set the IPv4 address";
leaf ipv4-address {
type inet:ipv4-address;
description
"Specifies the IPv4 address for BGP routes";
Copy link
Contributor

Choose a reason for hiding this comment

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

I think for each of these cases with a single leaf value, the description on the case is (or should be) "Set the XXX", and the description on the leaf should then be "Specifies the XXX value". So in this case the description should be Specifies the IPv4 address value. Apply this to each of the following case/leafs below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think for each of these cases with a single leaf value, the description on the case is (or should be) "Set the XXX", and the description on the leaf should then be "Specifies the XXX value". So in this case the description should be Specifies the IPv4 address value. Apply this to each of the following case/leafs below.

Hello Christian Hopps,

Addressed review comments.

Thanks & Regards,
Bharath

@y-bharath14
Copy link
Contributor Author

ci:rerun

Correct pyang errors or warnings in frr-bgp-route-map.yang

Signed-off-by: y-bharath14 <[email protected]>
@github-actions github-actions bot added the rebase PR needs rebase label May 14, 2025
@choppsv1
Copy link
Contributor

@ton31337 are you good now?

@ton31337
Copy link
Member

yes, I approved already.

@choppsv1 choppsv1 merged commit e512cf5 into FRRouting:master May 27, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants