ietf-bfd-unsolicited@2023-08-16.yang | ietf-bfd-unsolicited@2023-08-16.formatted.yang | |||
---|---|---|---|---|
module ietf-bfd-unsolicited { | module ietf-bfd-unsolicited { | |||
yang-version 1.1; | yang-version 1.1; | |||
namespace "urn:ietf:params:xml:ns:yang:ietf-bfd-unsolicited"; | namespace "urn:ietf:params:xml:ns:yang:ietf-bfd-unsolicited"; | |||
prefix bfd-unsol; | ||||
prefix "bfd-unsol"; | ||||
import ietf-bfd-types { | import ietf-bfd-types { | |||
prefix "bfd-types"; | prefix bfd-types; | |||
reference | reference | |||
"RFC 9314: YANG Data Model for Bidirectional Forwarding | "RFC 9314: YANG Data Model for Bidirectional Forwarding | |||
Detection (BFD)"; | Detection (BFD)"; | |||
} | } | |||
import ietf-bfd { | import ietf-bfd { | |||
prefix "bfd"; | prefix bfd; | |||
reference | reference | |||
"RFC 9314: YANG Data Model for Bidirectional Forwarding | "RFC 9314: YANG Data Model for Bidirectional Forwarding | |||
Detection (BFD)"; | Detection (BFD)"; | |||
} | } | |||
import ietf-bfd-ip-sh { | import ietf-bfd-ip-sh { | |||
prefix "bfd-ip-sh"; | prefix bfd-ip-sh; | |||
reference | reference | |||
"RFC 9314: YANG Data Model for Bidirectional Forwarding | "RFC 9314: YANG Data Model for Bidirectional Forwarding | |||
Detection (BFD)"; | Detection (BFD)"; | |||
} | } | |||
import ietf-routing { | import ietf-routing { | |||
prefix "rt"; | prefix rt; | |||
reference | reference | |||
"RFC 8349: A YANG Data Model for Routing Management | "RFC 8349: A YANG Data Model for Routing Management | |||
(NMDA Version)"; | (NMDA Version)"; | |||
} | } | |||
organization "IETF BFD Working Group"; | organization | |||
"IETF BFD Working Group"; | ||||
contact | contact | |||
"WG Web: <https://datatracker.ietf.org/wg/bfd/> | "WG Web: <https://datatracker.ietf.org/wg/bfd/> | |||
WG List: <rtg-bfd@ietf.org> | WG List: <rtg-bfd@ietf.org> | |||
Editors: Enke Chen (enchen@paloaltonetworks.com), | Editors: Enke Chen (enchen@paloaltonetworks.com), | |||
Naiming Shen (naiming@zededa.com), | Naiming Shen (naiming@zededa.com), | |||
Robert Raszuk (robert@raszuk.net), | Robert Raszuk (robert@raszuk.net), | |||
Reshad Rahman (reshad@yahoo.com)"; | Reshad Rahman (reshad@yahoo.com)"; | |||
description | description | |||
"This module contains the YANG definition for BFD unsolicited, | "This module contains the YANG definition for BFD unsolicited, | |||
as per RFC 9468. | as per RFC 9468. | |||
Copyright (c) 2023 IETF Trust and the persons | Copyright (c) 2023 IETF Trust and the persons | |||
identified as authors of the code. All rights reserved. | identified as authors of the code. All rights reserved. | |||
Redistribution and use in source and binary forms, with or | Redistribution and use in source and binary forms, with or | |||
without modification, is permitted pursuant to, and subject | without modification, is permitted pursuant to, and subject | |||
to the license terms contained in, the Revised BSD License | to the license terms contained in, the Revised BSD License | |||
skipping to change at line 92 ¶ | skipping to change at line 85 ¶ | |||
"This feature indicates that the server supports per-interface | "This feature indicates that the server supports per-interface | |||
parameters for unsolicited sessions."; | parameters for unsolicited sessions."; | |||
reference | reference | |||
"RFC 9468: Unsolicited Bidirectional Forwarding Detection (BFD) | "RFC 9468: Unsolicited Bidirectional Forwarding Detection (BFD) | |||
for Sessionless Applications"; | for Sessionless Applications"; | |||
} | } | |||
/* | /* | |||
* Type Definitions | * Type Definitions | |||
*/ | */ | |||
identity role { | identity role { | |||
description | description | |||
"Base identity from which all roles are derived. | "Base identity from which all roles are derived. | |||
Role of local system during BFD session initialization."; | Role of local system during BFD session initialization."; | |||
} | } | |||
identity active { | identity active { | |||
base "bfd-unsol:role"; | base bfd-unsol:role; | |||
description | description | |||
"Active role."; | "Active role."; | |||
reference | reference | |||
"RFC 5880: Bidirectional Forwarding Detection (BFD), | "RFC 5880: Bidirectional Forwarding Detection (BFD), | |||
Section 6.1"; | Section 6.1"; | |||
} | } | |||
identity passive { | identity passive { | |||
base "bfd-unsol:role"; | base bfd-unsol:role; | |||
description | description | |||
"Passive role."; | "Passive role."; | |||
reference | reference | |||
"RFC 5880: Bidirectional Forwarding Detection (BFD), | "RFC 5880: Bidirectional Forwarding Detection (BFD), | |||
Section 6.1"; | Section 6.1"; | |||
} | } | |||
/* | /* | |||
* Augments | * Augments | |||
*/ | */ | |||
augment "/rt:routing/rt:control-plane-protocols/" | ||||
+ "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh" { | ||||
description | ||||
"Augmentation for BFD unsolicited 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/" | augment "/rt:routing/rt:control-plane-protocols/" | |||
+ "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh/" | + "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh" { | |||
+ "bfd-ip-sh:interfaces" { | description | |||
description | "Augmentation for BFD unsolicited parameters."; | |||
"Augmentation for BFD unsolicited on IP single-hop | container unsolicited { | |||
interface."; | description | |||
container unsolicited { | "BFD IP single-hop unsolicited top-level container."; | |||
description | uses bfd-types:base-cfg-parms; | |||
"BFD IP single-hop interface unsolicited top-level | } | |||
container."; | } | |||
leaf enabled { | ||||
type boolean; | ||||
default false; | ||||
description | ||||
"BFD unsolicited 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 { | augment "/rt:routing/rt:control-plane-protocols/" | |||
if-feature bfd-unsol:unsolicited-params-per-interface; | + "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh/" | |||
description | + "bfd-ip-sh:interfaces" { | |||
"Two interval values or one value used for both transmit | description | |||
and receive. Defaults to | "Augmentation for BFD unsolicited on IP single-hop | |||
../../unsolicited/interval-config-type. An interval | interface."; | |||
configured under an interface takes precedence over any | container unsolicited { | |||
interval configured at the global level."; | description | |||
case tx-rx-intervals { | "BFD IP single-hop interface unsolicited top-level | |||
leaf desired-min-tx-interval { | container."; | |||
type uint32; | leaf enabled { | |||
units "microseconds"; | type boolean; | |||
description | default "false"; | |||
"Desired minimum transmit interval of control | description | |||
packets."; | "BFD unsolicited is enabled on this interface."; | |||
} | } | |||
leaf required-min-rx-interval { | /* | |||
type uint32; | * The following is the same as bfd-types:base-cfg-parms, but | |||
units "microseconds"; | * without default values (for inheritance) | |||
description | */ | |||
"Required minimum receive interval of control | leaf local-multiplier { | |||
packets."; | if-feature "bfd-unsol:unsolicited-params-per-interface"; | |||
} | type bfd-types:multiplier; | |||
} | description | |||
case single-interval { | "Multiplier transmitted by the local system. Defaults to | |||
if-feature "bfd-types:single-minimum-interval"; | ../../unsolicited/local-multiplier. | |||
leaf min-interval { | A multiplier configured under an interface takes | |||
type uint32; | precedence over the multiplier configured at the global | |||
units "microseconds"; | level."; | |||
description | } | |||
"Desired minimum transmit interval and required | choice interval-config-type { | |||
minimum receive interval of control packets."; | 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/" | augment "/rt:routing/rt:control-plane-protocols/" | |||
+ "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh/" | + "rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh/" | |||
+ "bfd-ip-sh:sessions/bfd-ip-sh:session" { | + "bfd-ip-sh:sessions/bfd-ip-sh:session" { | |||
description | description | |||
"Augmentation for BFD unsolicited on IP single-hop session."; | "Augmentation for BFD unsolicited on IP single-hop session."; | |||
leaf role { | leaf role { | |||
type identityref { | type identityref { | |||
base "bfd-unsol:role"; | base bfd-unsol:role; | |||
} | ||||
config false; | ||||
description | ||||
"Role."; | ||||
} | } | |||
config false; | ||||
description | ||||
"Role."; | ||||
} | ||||
} | } | |||
} | } | |||
End of changes. 22 change blocks. | ||||
100 lines changed or deleted | 96 lines changed or added | |||
This html diff was produced by rfcdiff 1.48. |