Skip to content

Commit

Permalink
RD auto-assigment based on roque Suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarguil committed Jul 2, 2020
1 parent 48c15a6 commit 4bf6abc
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions yang/IETF-04/ietf-vpn-common.yang
Original file line number Diff line number Diff line change
Expand Up @@ -1003,20 +1003,32 @@ module ietf-vpn-common {
}

grouping rt-rd {
leaf rd {
type union {
type rt-types:route-distinguisher;
type empty;
}
choice rd-choice {
case directly-assigned {
leaf rd {
type rt-types:route-distinguisher;
}
description
"Route distinguisher assigment";
}
case pool-assigned {
leaf rd-pool-name {
type string;
}
description
"The server will auto-assign a route
distinguisher value and use that value operationally.";
}
case no-rd {
leaf no-rd {
type empty;
}
description
"Use the empty type to indicate RD has no value and
is not to be aouto-assigned.";
}
description
"Route distinguisher value. If this leaf has not been
configured, the server will auto-assign a route
distinguisher value and use that value operationally.
This calculated value is available in the operational
state.
Use the empty type to indicate RD has no value and
is not to be aouto-assigned.";
"Route distinguisher choise value.";
}
container vpn-targets {
description
Expand Down

0 comments on commit 4bf6abc

Please sign in to comment.