forked from Mirror/frr
yang: Pyang errors in frr-bfdd.yang
Corrected pyang errors in frr-bfdd.yang Signed-off-by: y-bharath14 <y.bharath@samsung.com>
This commit is contained in:
parent
5e092d0e25
commit
8c2e01e245
|
@ -49,8 +49,8 @@ module frr-bfdd {
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
|
||||||
|
|
||||||
revision 2019-05-09 {
|
revision 2025-03-03 {
|
||||||
description "Initial revision.";
|
description "Add log-session-changes leaf";
|
||||||
reference
|
reference
|
||||||
"RFC 5880: Bidirectional Forwarding Detection (BFD).
|
"RFC 5880: Bidirectional Forwarding Detection (BFD).
|
||||||
RFC 5881: Bidirectional Forwarding Detection (BFD)
|
RFC 5881: Bidirectional Forwarding Detection (BFD)
|
||||||
|
@ -58,8 +58,8 @@ module frr-bfdd {
|
||||||
RFC 5883: Bidirectional Forwarding Detection (BFD) for Multihop Paths.";
|
RFC 5883: Bidirectional Forwarding Detection (BFD) for Multihop Paths.";
|
||||||
}
|
}
|
||||||
|
|
||||||
revision 2025-03-03 {
|
revision 2019-05-09 {
|
||||||
description "Add log-sessio-changes leaf";
|
description "Initial revision.";
|
||||||
reference
|
reference
|
||||||
"RFC 5880: Bidirectional Forwarding Detection (BFD).
|
"RFC 5880: Bidirectional Forwarding Detection (BFD).
|
||||||
RFC 5881: Bidirectional Forwarding Detection (BFD)
|
RFC 5881: Bidirectional Forwarding Detection (BFD)
|
||||||
|
@ -71,21 +71,20 @@ module frr-bfdd {
|
||||||
* BFD types declaration.
|
* BFD types declaration.
|
||||||
*/
|
*/
|
||||||
typedef multiplier {
|
typedef multiplier {
|
||||||
description "Detection multiplier";
|
|
||||||
type uint8 {
|
type uint8 {
|
||||||
range "1..255";
|
range "1..255";
|
||||||
}
|
}
|
||||||
|
description "Detection multiplier";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef discriminator {
|
typedef discriminator {
|
||||||
description "BFD session identification";
|
|
||||||
type uint32 {
|
type uint32 {
|
||||||
range "1..4294967295";
|
range "1..4294967295";
|
||||||
}
|
}
|
||||||
|
description "BFD session identification";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef state {
|
typedef state {
|
||||||
description "BFD session state";
|
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum admin-down {
|
enum admin-down {
|
||||||
value 0;
|
value 0;
|
||||||
|
@ -104,10 +103,10 @@ module frr-bfdd {
|
||||||
description "Up";
|
description "Up";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description "BFD session state";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef diagnostic {
|
typedef diagnostic {
|
||||||
description "BFD session diagnostic";
|
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum ok {
|
enum ok {
|
||||||
value 0;
|
value 0;
|
||||||
|
@ -146,6 +145,7 @@ module frr-bfdd {
|
||||||
description "Reverse concatenated path down";
|
description "Reverse concatenated path down";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description "BFD session diagnostic";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef profile-name {
|
typedef profile-name {
|
||||||
|
@ -272,23 +272,27 @@ module frr-bfdd {
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf multi-hop {
|
leaf multi-hop {
|
||||||
description
|
|
||||||
"Use multi hop session instead of single hop.";
|
|
||||||
type boolean;
|
type boolean;
|
||||||
default false;
|
default false;
|
||||||
|
description
|
||||||
|
"Use multi hop session instead of single hop.";
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf profile {
|
leaf profile {
|
||||||
|
type frr-bfdd:profile-ref;
|
||||||
description
|
description
|
||||||
"BFD pre configured profile.";
|
"BFD pre configured profile.";
|
||||||
type frr-bfdd:profile-ref;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
grouping session-states {
|
grouping session-states {
|
||||||
|
description
|
||||||
|
"This grouping defines the states of a BFD session.";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local settings.
|
* Local settings.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
leaf local-discriminator {
|
leaf local-discriminator {
|
||||||
type discriminator;
|
type discriminator;
|
||||||
description "Local session identifier";
|
description "Local session identifier";
|
||||||
|
@ -336,20 +340,18 @@ module frr-bfdd {
|
||||||
* Negotiated settings.
|
* Negotiated settings.
|
||||||
*/
|
*/
|
||||||
leaf negotiated-transmission-interval {
|
leaf negotiated-transmission-interval {
|
||||||
description "Negotiated transmit interval";
|
|
||||||
type uint32;
|
type uint32;
|
||||||
units microseconds;
|
units microseconds;
|
||||||
|
description "Negotiated transmit interval";
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf negotiated-receive-interval {
|
leaf negotiated-receive-interval {
|
||||||
description "Negotiated receive interval";
|
|
||||||
type uint32;
|
type uint32;
|
||||||
units microseconds;
|
units microseconds;
|
||||||
|
description "Negotiated receive interval";
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf detection-mode {
|
leaf detection-mode {
|
||||||
description "Detection mode";
|
|
||||||
|
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum async-with-echo {
|
enum async-with-echo {
|
||||||
value "1";
|
value "1";
|
||||||
|
@ -368,6 +370,7 @@ module frr-bfdd {
|
||||||
description "Demand without echo";
|
description "Demand without echo";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description "Detection mode";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -430,6 +433,9 @@ module frr-bfdd {
|
||||||
* BFD operational.
|
* BFD operational.
|
||||||
*/
|
*/
|
||||||
container bfdd {
|
container bfdd {
|
||||||
|
description
|
||||||
|
"This container defines BFD daemon configuration.";
|
||||||
|
|
||||||
container bfd {
|
container bfd {
|
||||||
presence "Present if the BFD protocol is enabled";
|
presence "Present if the BFD protocol is enabled";
|
||||||
|
|
||||||
|
@ -448,6 +454,9 @@ module frr-bfdd {
|
||||||
}
|
}
|
||||||
|
|
||||||
container sessions {
|
container sessions {
|
||||||
|
description
|
||||||
|
"This container provides information about sessions.";
|
||||||
|
|
||||||
list single-hop {
|
list single-hop {
|
||||||
key "dest-addr interface vrf";
|
key "dest-addr interface vrf";
|
||||||
description "List of single hop sessions";
|
description "List of single hop sessions";
|
||||||
|
@ -483,6 +492,8 @@ module frr-bfdd {
|
||||||
container stats {
|
container stats {
|
||||||
uses session-states;
|
uses session-states;
|
||||||
config false;
|
config false;
|
||||||
|
description
|
||||||
|
"This container provides statistics for sessions.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,6 +527,8 @@ module frr-bfdd {
|
||||||
container stats {
|
container stats {
|
||||||
uses session-states;
|
uses session-states;
|
||||||
config false;
|
config false;
|
||||||
|
description
|
||||||
|
"This container provides statistics for sessions.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -577,6 +590,8 @@ module frr-bfdd {
|
||||||
container stats {
|
container stats {
|
||||||
uses session-states;
|
uses session-states;
|
||||||
config false;
|
config false;
|
||||||
|
description
|
||||||
|
"This container provides statistics for sessions.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -644,9 +659,13 @@ module frr-bfdd {
|
||||||
container stats {
|
container stats {
|
||||||
uses session-states;
|
uses session-states;
|
||||||
config false;
|
config false;
|
||||||
|
description
|
||||||
|
"This container provides statistics for sessions.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description
|
||||||
|
"This container defines BFD protocol configuration.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue