Skip to content
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

Request to make routing policy BGP action "set-as-path-prepend" YANG model more flexible #162

Closed
abhiramkalluru opened this issue Jul 23, 2018 · 2 comments
Labels

Comments

@abhiramkalluru
Copy link

abhiramkalluru commented Jul 23, 2018

Following is the YANG model for "set-as-path-prepend" BGP action from https://github.com/openconfig/public/blob/master/release/models/bgp/openconfig-bgp-policy.yang:

grouping as-path-prepend-config {
      description
         "Configuration data for the AS path prepend action";

      leaf repeat-n {
        type uint8 {
          range 1..max;
        }
        description
          "Number of times to prepend the value specified in the asn
          leaf to the AS path. If no value is specified by the asn
          leaf, the local AS number of the system is used. The value
          should be between 1 and the maximum supported by the
          implementation.";
      }

      leaf asn {
        type oc-inet:as-number;
          description
             "The AS number to prepend to the AS path. If this leaf is
              not specified and repeat-n is set, then the local AS
              number will be used for prepending.";
      }
}

Above YANG model supports prepending a single AS number "n" number of times, like "10 10 10". It's not possible to represent as-path prepend with different AS number values, for example: "10 20 30". This ability to configure as-path prepend with different AS number values is supported by various networking vendors through their CLI. I would like to request changing above as-path-prepend YANG model more flexible such that it's possible to configure single AS number repeated multiple times and different AS number values (where some of them could be repeated like "10 20 30 10" etc...).

Thanks & Regards,
Abhiram.

Copy link

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 22, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2024
@dplore
Copy link
Member

dplore commented Aug 12, 2024

FYI: on a related topic, see #1148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants