Skip to content

Commit

Permalink
Add IPv6 RA config mode (#900)
Browse files Browse the repository at this point in the history
* add v6 ra config mode, deprecate suppress
* use container level enable, and mode enum
  • Loading branch information
dplore authored Jul 14, 2023
1 parent e2799c0 commit 37557d2
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions release/models/interfaces/openconfig-if-ip.yang
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ module openconfig-if-ip {
Section 4.c of the IETF Trust's Legal Provisions Relating
to IETF Documents (http://trustee.ietf.org/license-info).";

oc-ext:openconfig-version "3.3.0";
oc-ext:openconfig-version "3.4.0";

revision "2023-06-30" {
description
"Deprecate IPv6 router advertisment config suppress leaf and add config
mode leaf.";
reference "3.4.0";
}

revision "2023-04-12" {
description
Expand All @@ -54,7 +61,7 @@ module openconfig-if-ip {

revision "2023-02-06" {
description
"Add ipv6 link-local configuration.";
"Add IPv6 link-local configuration.";
reference "3.2.0";
}

Expand Down Expand Up @@ -939,6 +946,15 @@ module openconfig-if-ip {
description
"Configuration parameters for IPv6 router advertisements.";

leaf enable {
type boolean;
default true;
description
"If set to false, all IPv6 router advertisement functions are
disabled. The local system will not transmit router advertisement
messages and will not respond to router solicitation messages.";
}

leaf interval {
type uint32;
units seconds;
Expand All @@ -957,13 +973,35 @@ module openconfig-if-ip {
}

leaf suppress {
status deprecated;
type boolean;
default false;
description
"When set to true, router advertisement neighbor discovery
messages are not transmitted on this interface.";
}

leaf mode {
type enumeration {
enum ALL {
description
"The system will transmit unsolicited router advertisement
messages and respond to router solicitation requests.";
}
enum DISABLE_UNSOLICITED_RA {
description
"Unsolicted router advertisement messages are not transmitted on
this interface. Responses to router solicitation messages will
be transmitted.";
}
}
default "ALL";
description
"Mode controls which set of behaviors the local system should perform
to support IPv6 router advertisements.";
reference "RFC4861: Neighbor Discovery for IP version 6 (IPv6)";
}

leaf managed {
type boolean;
default false;
Expand Down

0 comments on commit 37557d2

Please sign in to comment.