|
| 1 | +module ietf-bfd-ip-sh { |
| 2 | + yang-version 1.1; |
| 3 | + namespace "urn:ietf:params:xml:ns:yang:ietf-bfd-ip-sh"; |
| 4 | + prefix bfd-ip-sh; |
| 5 | + |
| 6 | + import ietf-bfd-types { |
| 7 | + prefix bfd-types; |
| 8 | + reference |
| 9 | + "RFC 9314: YANG Data Model for Bidirectional Forwarding |
| 10 | + Detection (BFD)"; |
| 11 | + } |
| 12 | + import ietf-bfd { |
| 13 | + prefix bfd; |
| 14 | + reference |
| 15 | + "RFC 9314: YANG Data Model for Bidirectional Forwarding |
| 16 | + Detection (BFD)"; |
| 17 | + } |
| 18 | + import ietf-interfaces { |
| 19 | + prefix if; |
| 20 | + reference |
| 21 | + "RFC 8343: A YANG Data Model for Interface Management"; |
| 22 | + } |
| 23 | + import ietf-inet-types { |
| 24 | + prefix inet; |
| 25 | + reference |
| 26 | + "RFC 6991: Common YANG Data Types"; |
| 27 | + } |
| 28 | + import ietf-routing { |
| 29 | + prefix rt; |
| 30 | + reference |
| 31 | + "RFC 8349: A YANG Data Model for Routing Management |
| 32 | + (NMDA Version)"; |
| 33 | + } |
| 34 | + |
| 35 | + organization |
| 36 | + "IETF BFD Working Group"; |
| 37 | + contact |
| 38 | + "WG Web: <https://datatracker.ietf.org/wg/bfd/> |
| 39 | + WG List: <mailto:[email protected]> |
| 40 | +
|
| 41 | + Editor: Reshad Rahman |
| 42 | + |
| 43 | +
|
| 44 | + Editor: Lianshu Zheng |
| 45 | + |
| 46 | +
|
| 47 | + Editor: Mahesh Jethanandani |
| 48 | + |
| 49 | + description |
| 50 | + "This module contains the YANG definition for BFD IP single-hop |
| 51 | + as per RFC 5881. |
| 52 | +
|
| 53 | + Copyright (c) 2022 IETF Trust and the persons identified as |
| 54 | + authors of the code. All rights reserved. |
| 55 | +
|
| 56 | + Redistribution and use in source and binary forms, with or |
| 57 | + without modification, is permitted pursuant to, and subject |
| 58 | + to the license terms contained in, the Revised BSD License |
| 59 | + set forth in Section 4.c of the IETF Trust's Legal Provisions |
| 60 | + Relating to IETF Documents |
| 61 | + (https://trustee.ietf.org/license-info). |
| 62 | +
|
| 63 | + This version of this YANG module is part of RFC 9314; see the |
| 64 | + RFC itself for full legal notices."; |
| 65 | + reference |
| 66 | + "RFC 5881: Bidirectional Forwarding Detection (BFD) |
| 67 | + for IPv4 and IPv6 (Single Hop) |
| 68 | + RFC 9314: YANG Data Model for Bidirectional Forwarding |
| 69 | + Detection (BFD)"; |
| 70 | + |
| 71 | + revision 2022-09-22 { |
| 72 | + description |
| 73 | + "Updating reference to RFC 9314."; |
| 74 | + reference |
| 75 | + "RFC 9314: YANG Data Model for Bidirectional Forwarding |
| 76 | + Detection (BFD)."; |
| 77 | + } |
| 78 | + revision 2021-10-21 { |
| 79 | + description |
| 80 | + "Initial revision."; |
| 81 | + reference |
| 82 | + "RFC 9127: YANG Data Model for Bidirectional Forwarding |
| 83 | + Detection (BFD)"; |
| 84 | + } |
| 85 | + |
| 86 | + augment "/rt:routing/rt:control-plane-protocols/" |
| 87 | + + "rt:control-plane-protocol/bfd:bfd" { |
| 88 | + description |
| 89 | + "BFD augmentation for IP single-hop."; |
| 90 | + container ip-sh { |
| 91 | + description |
| 92 | + "BFD IP single-hop top-level container."; |
| 93 | + uses bfd-types:session-statistics-summary; |
| 94 | + container sessions { |
| 95 | + description |
| 96 | + "BFD IP single-hop sessions."; |
| 97 | + list session { |
| 98 | + key "interface dest-addr"; |
| 99 | + description |
| 100 | + "List of IP single-hop sessions."; |
| 101 | + leaf interface { |
| 102 | + type if:interface-ref; |
| 103 | + description |
| 104 | + "Interface on which the BFD session is running."; |
| 105 | + } |
| 106 | + leaf dest-addr { |
| 107 | + type inet:ip-address; |
| 108 | + description |
| 109 | + "IP address of the peer."; |
| 110 | + } |
| 111 | + leaf source-addr { |
| 112 | + type inet:ip-address; |
| 113 | + description |
| 114 | + "Local IP address."; |
| 115 | + } |
| 116 | + uses bfd-types:common-cfg-parms; |
| 117 | + uses bfd-types:all-session; |
| 118 | + } |
| 119 | + } |
| 120 | + list interfaces { |
| 121 | + key "interface"; |
| 122 | + description |
| 123 | + "List of interfaces."; |
| 124 | + leaf interface { |
| 125 | + type if:interface-ref; |
| 126 | + description |
| 127 | + "BFD information for this interface."; |
| 128 | + } |
| 129 | + uses bfd-types:auth-parms; |
| 130 | + } |
| 131 | + } |
| 132 | + } |
| 133 | + |
| 134 | + notification singlehop-notification { |
| 135 | + description |
| 136 | + "Notification for BFD single-hop session state change. An |
| 137 | + implementation may rate-limit notifications, e.g., when a |
| 138 | + session is continuously changing state."; |
| 139 | + uses bfd-types:notification-parms; |
| 140 | + leaf interface { |
| 141 | + type if:interface-ref; |
| 142 | + description |
| 143 | + "Interface to which this BFD session belongs."; |
| 144 | + } |
| 145 | + leaf echo-enabled { |
| 146 | + type boolean; |
| 147 | + description |
| 148 | + "Indicates whether Echo was enabled for BFD."; |
| 149 | + } |
| 150 | + } |
| 151 | +} |
0 commit comments