Skip to content

Commit

Permalink
Merge pull request #1474 from yang-catalog/main
Browse files Browse the repository at this point in the history
Cronjob - daily update of yang files.
  • Loading branch information
SlavomirMazurPantheon authored Sep 4, 2023
2 parents ef9cf5c + cb40b65 commit 2b27b07
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 0 deletions.
1 change: 1 addition & 0 deletions standard/ietf/RFC/ietf-bfd-unsolicited.yang
215 changes: 215 additions & 0 deletions standard/ietf/RFC/ietf-bfd-unsolicited@2023-08-31.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
module ietf-bfd-unsolicited {

yang-version 1.1;

namespace "urn:ietf:params:xml:ns:yang:ietf-bfd-unsolicited";

prefix bfd-unsol;

import ietf-bfd-types {
prefix bfd-types;
reference
"RFC 9314: YANG Data Model for Bidirectional Forwarding
Detection (BFD)";
}

import ietf-bfd {
prefix bfd;
reference
"RFC 9314: YANG Data Model for Bidirectional Forwarding
Detection (BFD)";
}

import ietf-bfd-ip-sh {
prefix bfd-ip-sh;
reference
"RFC 9314: YANG Data Model for Bidirectional Forwarding
Detection (BFD)";
}

import ietf-routing {
prefix rt;
reference
"RFC 8349: A YANG Data Model for Routing Management
(NMDA Version)";
}

organization
"IETF BFD Working Group";

contact
"WG Web: <https://datatracker.ietf.org/wg/bfd/>
WG List: <rtg-bfd@ietf.org>
Editors: Enke Chen (enchen@paloaltonetworks.com),
Naiming Shen (naiming@zededa.com),
Robert Raszuk (robert@raszuk.net),
Reshad Rahman (reshad@yahoo.com)";

description
"This module contains the YANG definition for unsolicited BFD,
as per RFC 9468.
Copyright (c) 2023 IETF Trust and the persons
identified as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Revised BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 9468; see
the RFC itself for full legal notices.";

reference
"RFC 9468: Unsolicited Bidirectional Forwarding Detection
(BFD) for Sessionless Applications";

revision 2023-08-31 {
description
"Initial revision.";
reference
"RFC 9468: Unsolicited Bidirectional Forwarding Detection (BFD)
for Sessionless Applications";
}

/*
* Feature definitions
*/
feature unsolicited-params-per-interface {
description
"This feature indicates that the server supports per-interface
parameters for unsolicited sessions.";
reference
"RFC 9468: Unsolicited Bidirectional Forwarding Detection (BFD)
for Sessionless Applications";
}

/*
* Type Definitions
*/

identity role {
description
"Base identity from which all roles are derived.
Role of local system during BFD session initialization.";
}

identity active {
base bfd-unsol:role;
description
"Active role.";
reference
"RFC 5880: Bidirectional Forwarding Detection (BFD),
Section 6.1";
}

identity passive {
base bfd-unsol:role;
description
"Passive role.";
reference
"RFC 5880: Bidirectional Forwarding Detection (BFD),
Section 6.1";
}

/*
* Augments
*/

augment "/rt:routing/rt:control-plane-protocols/"
+ "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh" {
description
"Augmentation for unsolicited BFD parameters.";
container unsolicited {
description
"BFD IP single-hop unsolicited top-level container.";
uses bfd-types:base-cfg-parms;
}
}

augment "/rt:routing/rt:control-plane-protocols/"
+ "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh/"
+ "bfd-ip-sh:interfaces" {
description
"Augmentation for unsolicited BFD on IP single-hop
interface.";
container unsolicited {
description
"BFD IP single-hop interface unsolicited top-level
container.";
leaf enabled {
type boolean;
default "false";
description
"Unsolicited BFD is enabled on this interface.";
}
/*
* The following is the same as bfd-types:base-cfg-parms, but
* without default values (for inheritance)
*/
leaf local-multiplier {
if-feature "bfd-unsol:unsolicited-params-per-interface";
type bfd-types:multiplier;
description
"Multiplier transmitted by the local system. Defaults to
../../unsolicited/local-multiplier.
A multiplier configured under an interface takes
precedence over the multiplier configured at the global
level.";
}
choice interval-config-type {
if-feature "bfd-unsol:unsolicited-params-per-interface";
description
"Two interval values or one value used for both transmit
and receive. Defaults to
../../unsolicited/interval-config-type. An interval
configured under an interface takes precedence over any
interval configured at the global level.";
case tx-rx-intervals {
leaf desired-min-tx-interval {
type uint32;
units "microseconds";
description
"Desired minimum transmit interval of control
packets.";
}
leaf required-min-rx-interval {
type uint32;
units "microseconds";
description
"Required minimum receive interval of control
packets.";
}
}
case single-interval {
if-feature "bfd-types:single-minimum-interval";
leaf min-interval {
type uint32;
units "microseconds";
description
"Desired minimum transmit interval and required
minimum receive interval of control packets.";
}
}
}
}
}

augment "/rt:routing/rt:control-plane-protocols/"
+ "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh/"
+ "bfd-ip-sh:sessions/bfd-ip-sh:session" {
description
"Augmentation for unsolicited BFD on IP single-hop session.";
leaf role {
type identityref {
base bfd-unsol:role;
}
config false;
description
"Role.";
}
}
}

0 comments on commit 2b27b07

Please sign in to comment.