-
Notifications
You must be signed in to change notification settings - Fork 4
DAN-49 - Route map add match by local-preference #1
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -972,6 +972,13 @@ module vyatta-policy-route-v1 { | |
| description "IS-IS level"; | ||
| configd:help "IS-IS level"; | ||
| } | ||
| leaf src { | ||
| type union { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an existing type definition for this in vyatta-types-v1-yang. The advantage of the existing type is that it also ensures values are normalized into a canonical form. vyatta-types-v1 is already imported, so you can use the type like so: |
||
| type types:ipv4-address; | ||
| type types:ipv6-address; | ||
| } | ||
| configd:help "Preferred source address"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also add a description statement, you can re-use the text eg. |
||
| } | ||
| } | ||
| leaf continue { | ||
| type uint32 { | ||
|
|
@@ -1049,6 +1056,10 @@ module vyatta-policy-route-v1 { | |
| configd:help "Source protocol to be matched"; | ||
| } | ||
| } | ||
| leaf local-preference { | ||
| type uint32; | ||
| configd:help "Border Gateway Protocol (BGP) local preference attribute"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also add a description statement. |
||
| } | ||
| leaf origin { | ||
| type enumeration { | ||
| enum "egp" { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
sourcewould be better as it is not much longer and is consistent with other nodes in this module (eg. access lists).