Notification of BFD-notification.
Version: 2019-07-08
module huawei-bfd-notification { yang-version 1; namespace "urn:huawei:yang:huawei-bfd-notification"; prefix bfd-notification; import ietf-inet-types { prefix inet; } import huawei-extension { prefix ext; } import huawei-bfd { prefix bfd; } import huawei-ifm { prefix ifm; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "Notification of BFD-notification."; revision "2019-07-08" { description "Initial revision."; reference "Huawei private."; } ext:task-name "bfd"; typedef diag-state { type enumeration { enum "none" { value 0; description "No diagnosis reason."; } enum "detect-down" { value 1; description "Detection control times out."; } enum "echo-down" { value 2; description "Echo detection is Down."; } enum "neighbor-down" { value 3; description "Neighbor advertisement is Down."; } enum "forwarding-reset" { value 4; description "The forwarding plane is restarted."; } enum "path-down" { value 5; description "The path is Down."; } enum "concat-path-down" { value 6; description "The cascade path is Down."; } enum "admin-down" { value 7; description "The session is in the AdminDown state."; } enum "reverse-concat-path-down" { value 8; description "The reverse cascade path is Down."; } enum "receive-admin-down" { value 9; description "The remote session is in the AdminDown state."; } } description "Bfd diag state."; } typedef pw-role { type enumeration { enum "master" { value 1; description "Master PW."; } enum "secondary" { value 2; description "Secondary PW."; } enum "not-pw" { value 3; description "Not PW."; } } description "Bfd pw role."; } typedef create-type { type enumeration { enum "session-static" { value 0; description "A BFD session is created in static mode."; } enum "session-auto" { value 1; description "A BFD session is created in static auto-negotiation mode."; } enum "session-dynamic" { value 2; description "A BFD session is created in dynamic mode and does not support manual creation."; } enum "passive" { value 3; description "A BFD session is created in entirely dynamic mode and does not support manual creation."; } } description "Bfd session type."; } typedef bind-link-type { type enumeration { enum "interface" { value 1; description "Bind interface."; } enum "peer-ip" { value 2; description "Bind peer-ip."; } enum "source-ip" { value 3; description "Bind source-ip."; } enum "if-and-source-ip" { value 4; description "Bind interface and source ip."; } enum "fec" { value 5; description "Bind FEC."; } enum "tunnel-if" { value 6; description "Bind tunnel interface."; } enum "ospf" { value 7; description "Bind OSPF."; } enum "isis" { value 8; description "Bind ISIS."; } enum "ldp-lsp" { value 9; description "Bind LDP-LSP."; } enum "statis-lsp" { value 10; description "Bind static LSP."; } enum "te-lsp" { value 11; description "Bind TE-LSP."; } enum "te-tunnel" { value 12; description "Bind TE tunnel."; } enum "pw" { value 13; description "Bind PW."; } enum "lsp-passive" { value 14; description "Bind LSP passive."; } enum "vsi-pw" { value 15; description "Bind vsi-pw."; } enum "ldp-tunnel" { value 16; description "Bind ldp-tunnel."; } enum "vxlan" { value 17; description "Bind VXLAN."; } } description "Bfd smp linktype."; } typedef default-ip-use-flag { type enumeration { enum "not-used" { value 1; description "Not use default-ip."; } enum "used" { value 2; description "Use default-ip."; } } description "Default-ip use flag."; } notification bfd-pw-sess-down { description "The BFD for PW session enters the down state and the corresponding link fails."; leaf session-index { type uint32; description "SessionIndex."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "SessionName."; } leaf local-discriminator { type uint32; description "LocalDiscriminator."; } leaf diagnosis { type diag-state; description "Diagnosis."; } leaf bind-type { type bind-link-type; description "BindType."; } leaf pw-secondary { type pw-role; description "PwSecondary."; } leaf pw-id { type uint32; description "PwId."; } leaf vsi-name { type string { length "1..31"; } description "VsiName."; } leaf vsi-peer-address { type inet:ipv4-address-no-zone; description "VsiPeerAddress."; } } // notification bfd-pw-sess-down notification bfd-pw-sess-up { description "The BFD for PW session enters the up state and the detection on the corresponding link is normal."; leaf session-index { type uint32; description "SessionIndex."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "SessionName."; } leaf local-discriminator { type uint32; description "LocalDiscriminator."; } leaf diagnosis { type diag-state; description "Diagnosis."; } leaf bind-type { type bind-link-type; description "BindType."; } leaf pw-secondary { type pw-role; description "PwSecondary."; } leaf pw-id { type uint32; description "PwId."; } leaf vsi-name { type string { length "1..31"; } description "VsiName."; } leaf vsi-peer-address { type inet:ipv4-address-no-zone; description "VsiPeerAddress."; } } // notification bfd-pw-sess-up notification bfd-sess-down-brief { description "The BFD session enters the down state and the corresponding link fails."; leaf session-index { type uint32; description "SessionIndex."; } leaf local-discriminator { type uint32; description "LocalDiscriminator."; } leaf vlan-id { type int32; description "VLANID."; } leaf source-ip-address { type inet:ipv4-address-no-zone; description "SourceIPAddress."; } leaf next-hop-ip-address { type inet:ipv4-address-no-zone; description "NextHopIPAddress."; } leaf peer-ip-address { type inet:ipv4-address-no-zone; description "PeerIPAddress."; } leaf bind-type { type bind-link-type; description "BindType."; } leaf vrf-index { type uint32; description "VRFIndex."; } leaf vpn-name { type string { length "1..31"; } description "Binding VPN name."; } } // notification bfd-sess-down-brief notification bfd-sess-fault-down { description "The BFD session went Down."; leaf session-index { type uint32; description "Session Index."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "Session Name."; } leaf local-discriminator { type uint32; description "Local Discriminator."; } leaf diagnosis { type diag-state; description "Diagnosis."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Interface Name."; } leaf description { type string { length "0..64"; pattern '([^\s?]+[\s]*[^?]*[^\s?]+|[^\s?]*)'; } description "Description about a BFD session."; } leaf node-id { type uint32; description "ID of the board where the session resides."; } leaf peer-ip { type inet:ip-address-no-zone; description "Destination address of the session."; } leaf link-type { type string { length "1..31"; } description "Session type."; } leaf vpn-name { type string { length "1..31"; } description "Name of the bound VPN instance."; } leaf tunnel-name { type string { length "1..64"; } description "Tunnel name."; } leaf down-reason { type string { length "1..63"; } description "Reason why the session goes down."; } } // notification bfd-sess-fault-down notification bfd-sess-resume { description "The BFD session Down alarm was cleared."; leaf session-index { type uint32; description "Session Index."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "Session Name."; } leaf local-discriminator { type uint32; description "Local Discriminator."; } leaf diagnosis { type diag-state; description "Diagnosis."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Interface Name."; } leaf description { type string { length "0..64"; pattern '([^\s?]+[\s]*[^?]*[^\s?]+|[^\s?]*)'; } description "Description about a BFD session."; } leaf node-id { type uint32; description "ID of the board where the session resides."; } leaf peer-ip { type inet:ip-address-no-zone; description "Destination address of the session."; } leaf link-type { type string { length "1..31"; } description "Session type."; } leaf vpn-name { type string { length "1..31"; } description "Name of the bound VPN instance."; } leaf tunnel-name { type string { length "1..64"; } description "Tunnel name."; } leaf down-reason { type string { length "1..63"; } description "Reason why the session goes down."; } } // notification bfd-sess-resume notification bfd-sess-up-brief { description "The BFD session enters the up state and the detection on the corresponding link is normal."; leaf session-index { type uint32; description "SessionIndex."; } leaf local-discriminator { type uint32; description "LocalDiscriminator."; } leaf vlan-id { type int32; description "VLANID."; } leaf source-ip-address { type inet:ipv4-address-no-zone; description "SourceIPAddress."; } leaf next-hop-ip-address { type inet:ipv4-address-no-zone; description "NextHopIPAddress."; } leaf peer-ip-address { type inet:ipv4-address-no-zone; description "PeerIPAddress."; } leaf bind-type { type bind-link-type; description "BindType."; } leaf vrf-index { type uint32; description "VRFIndex."; } leaf vpn-name { type string { length "1..31"; } description "Binding VPN name."; } } // notification bfd-sess-up-brief notification bfd-v6-multi-hop-sess-down { description "The BFD for IPv6 MultiHop session enters the down state and the corresponding link fails."; leaf session-index { type uint32; description "SessionIndex."; } leaf vrf-index { type uint32; description "VRFIndex."; } leaf vpn-name { type string { length "1..31"; } description "Binding VPN name."; } leaf source-ipv6-address { type inet:ipv6-address-no-zone; description "SourceIPv6Address."; } leaf peer-ipv6-address { type inet:ipv6-address-no-zone; description "PeerIPv6Address."; } } // notification bfd-v6-multi-hop-sess-down notification bfd-v6-multi-hop-sess-up { description "The BFD for IPv6 MultiHop session enters the up state and the link detection is normal."; leaf session-index { type uint32; description "SessionIndex."; } leaf vrf-index { type uint32; description "VRFIndex."; } leaf vpn-name { type string { length "1..31"; } description "Binding VPN name."; } leaf source-ipv6-address { type inet:ipv6-address-no-zone; description "SourceIPv6Address."; } leaf peer-ipv6-address { type inet:ipv6-address-no-zone; description "PeerIPv6Address."; } } // notification bfd-v6-multi-hop-sess-up notification bfd-v6-single-hop-sess-down { description "The BFD for IPv6 SingleHop session enters the down state and the corresponding link fails."; leaf session-index { type uint32; description "SessionIndex."; } leaf vlan-id { type int32; description "VLANID."; } leaf source-ipv6-address { type inet:ipv6-address-no-zone; description "SourceIPv6Address."; } leaf peer-ipv6-address { type inet:ipv6-address-no-zone; description "PeerIPv6Address."; } } // notification bfd-v6-single-hop-sess-down notification bfd-v6-single-hop-sess-up { description "The BFD for IPv6 SingleHop session enters the up state and the detection on the corresponding link is normal."; leaf session-index { type uint32; description "SessionIndex."; } leaf vlan-id { type uint32; description "VLANID."; } leaf source-ipv6-address { type inet:ipv6-address-no-zone; description "SourceIPv6Address."; } leaf peer-ipv6-address { type inet:ipv6-address-no-zone; description "PeerIPv6Address."; } } // notification bfd-v6-single-hop-sess-up notification bfd-bit-err-det-sess-reach-limit { description "The number of all the BFD bit-error-detection sessions set up on interface boards reached the PAF upper limit and no more bit-error-detection session can be set up."; leaf total-bit-error-detect-session-limit { type uint32; description "Indicates the upper limit of global BFD bit-error-detection sessions."; } } // notification bfd-bit-err-det-sess-reach-limit notification bfd-sess-reach-limit { description "The number of BFD sessions on all IO boards has reached the upper limit, and new sessions cannot be set up."; leaf total-session-limit { type uint32; description "Indicates the upper limit of global BFD sessions."; } } // notification bfd-sess-reach-limit notification bfd-sess-reach-limit-bind-if { description "The notification was generated when the number of BFD sessions bound to the interface on the interface board reached the PAF upper limit and no more BFD session bound to the interface can be set up."; leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "Indicates the configuration name."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Indicates the interface name."; } leaf session-limit-per-board { type uint32; description "Indicates the allowable maximum number of BFD sessions on each board."; } } // notification bfd-sess-reach-limit-bind-if notification bfd-ipv6-sess-down { description "The BFD IPv6 session state changed to Down."; leaf session-index { type uint32; description "Session Index."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "Session name."; } leaf bind-if-index { type uint32; description "Binding interface index."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Binding interface name."; } leaf diagnosis { type diag-state; description "Indicates information about session diagnostic characters."; } leaf vrf-index { type uint32; description "Binding VPN index."; } leaf vpn-name { type string { length "1..31"; } description "Binding VPN name."; } leaf session-type { type create-type; description "Session type."; } leaf bind-type { type bind-link-type; description "Binding type: - 2 or 3: Peer Ip Address: detects the multi-hop IP link. - 1 or 4: Interface: detects the single-hop IP link. - 9: LDP_LSP: detects the LDP LSP. - 11: TE_LSP: detects the LSP bound to the TE tunnel. - 12: TE_TUNNEL: detects the TE tunnel. - 13: PW: detects the PW. - 15: VSI_PW: detects the VSI PW."; } leaf static-lsp-name { type string { length "1..31"; } description "Static LSP name NOTE: The value is constantly'-'."; } leaf pw-secondary { type pw-role; description "Secondary PW identifier."; } leaf vc-id { type uint32; description "VC ID."; } leaf vsi-name { type string { length "1..31"; } description "VSI name."; } leaf vsi-peer-address { type inet:ipv4-address-no-zone; description "VSI peer address."; } leaf discr-auto { type uint32; description "Static auto-negotiation discriminator."; } leaf peer-ipv6 { type inet:ipv6-address-no-zone; description "Binding peer IPv6 address."; } leaf ipv6-next-hop { type inet:ipv6-address-no-zone; description "Next hop IPv6 address."; } } // notification bfd-ipv6-sess-down notification bfd-ipv6-sess-up { description "The BFD IPv6 session state changed to Up."; leaf session-index { type uint32; description "BFD session ID."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "BFD session name."; } leaf bind-if-index { type uint32; description "Binding interface index."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Binding interface name."; } leaf diagnosis { type diag-state; description "Indicates information about session diagnostic characters."; } leaf vrf-index { type uint32; description "Binding VPN index."; } leaf vpn-name { type string { length "1..31"; } description "Binding VPN name."; } leaf session-type { type create-type; description "Session type."; } leaf bind-type { type bind-link-type; description "Binding type: - 2 or 3: Peer Ip Address: detects the multi-hop IP link. - 1 or 4: Interface: detects the single-hop IP link. - 9: LDP_LSP: detects the LDP LSP. - 11: TE_LSP: detects the LSP bound to the TE tunnel. - 12: TE_TUNNEL: detects the TE tunnel. - 13: PW: detects the PW. - 15: VSI_PW: detects the VSI PW."; } leaf static-lsp-name { type string { length "1..31"; } description "Static LSP name NOTE: The value is constantly'-'."; } leaf pw-secondary { type pw-role; description "Secondary PW identifier NextHop: Next hop address."; } leaf vc-id { type uint32; description "VC ID."; } leaf vsi-name { type string { length "1..31"; } description "VSI name."; } leaf vsi-peer-address { type inet:ipv4-address-no-zone; description "VSI peer address."; } leaf discr-auto { type uint32; description "Static auto-negotiation discriminator."; } leaf peer-ipv6 { type inet:ipv6-address-no-zone; description "Binding peer IPv6 address."; } leaf ipv6-next-hop { type inet:ipv6-address-no-zone; description "Next hop IPv6 address."; } } // notification bfd-ipv6-sess-up notification bfd-sess-down { description "The BFD session changed from another state to the Down state."; leaf session-index { type uint32; description "Indicates the index of the BFD session."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "Indicates the configuration name of the BFD session."; } leaf peer-ip { type inet:ipv4-address-no-zone; description "Indicates the bound destination IP address."; } leaf bind-if-index { type uint32; description "Indicates the index of the bound interface."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Indicates the name of the bound interface."; } leaf diagnosis { type diag-state; description "Indicates information about session diagnostic characters. - 0: No diagnostic word - 1: Detection time Down - 2: Echo detection Down - 3: Neighbor advertisement Down - 4: Forwarding plane reset - 5: Path Down - 6: Cascading path Down - 7: Administratively Down - 8: Reverse cascading path Down - 9: Peer administratively Down - 25: IP error code stop - 26: IP error code start - 27: Section error code stop - 28: Section error code start - 29: LSP error code stop - 30: LSP ingress error code start - 31: LSP transit error code start."; } leaf vrf-index { type uint32; description "Indicates the index of the bound VPN."; } leaf vpn-name { type string { length "1..31"; } description "Indicates the name of the bound VPN."; } leaf session-type { type create-type; description "Session type."; } leaf use-default-ip { type default-ip-use-flag; description "Indicates whether use the default multicast IP address."; } leaf bind-type { type bind-link-type; description "- 2 or 3: Peer Ip Address, detects the multi-hop IP link. - 1 or 4: Interface, detects the single-hop IP link. - 9: LDP_LSP, detects the LDP LSP. - 11: TE_LSP, detects the LSP bound to the TE tunnel. - 12: TE_TUNNEL, detects the TE tunnel. - 13: PW, detects the PW. - 15: VSI_PW, detects the VSI PW."; } leaf static-lsp-name { type string { length "1..31"; } description "Indicates the name of the static LSP. NOTE: This parameter is always displayed as '-'."; } leaf pw-secondary { type pw-role; description "Indicates the ID of the secondary PW."; } leaf next-hop { type inet:ipv4-address-no-zone; description "Indicates the IP address of the next hop."; } leaf vc-id { type uint32; description "Indicates the ID of the VC."; } leaf vsi-name { type string { length "1..31"; } description "Indicates the name of the VSI."; } leaf vsi-peer-address { type inet:ipv4-address-no-zone; description "Indicates the destination address of the VSI."; } leaf discr-auto { type uint32; description "Indicates the static auto-negotiation identifier."; } leaf peer-ipv6 { type inet:ipv6-address-no-zone; description "Indicates the bound destination IPv6 address."; } leaf ipv6-next-hop { type inet:ipv6-address-no-zone; description "Indicates the next-hop IPv6 address."; } } // notification bfd-sess-down notification bfd-sess-up { description "The BFD session changed from another state to the Up state."; leaf session-index { type uint32; description "Indicates the index of the BFD session."; } leaf session-name { type leafref { path "/bfd:bfd/bfd:sessions/bfd:session/bfd:name"; } description "Indicates the configuration name of the BFD session."; } leaf peer-ip { type inet:ipv4-address-no-zone; description "Indicates the bound destination IP address."; } leaf bind-if-index { type uint32; description "Indicates the index of the bound interface."; } leaf bind-if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Indicates the name of the bound interface."; } leaf diagnosis { type diag-state; description "Indicates information about session diagnostic characters. - 0: No diagnostic word - 1: Detection time Down - 2: Echo detection Down - 3: Neighbor advertisement Down - 4: Forwarding plane reset - 5: Path Down - 6: Cascading path Down - 7: Administratively Down - 8: Reverse cascading path Down - 9: Peer administratively Down - 25: IP error code stop - 26: IP error code start - 27: Section error code stop - 28: Section error code start - 29: LSP error code stop - 30: LSP ingress error code start - 31: LSP transit error code start."; } leaf vrf-index { type uint32; description "Indicates the index of the bound VPN."; } leaf vpn-name { type string { length "1..31"; } description "Indicates the name of the bound VPN."; } leaf session-type { type create-type; description "Session type."; } leaf use-default-ip { type default-ip-use-flag; description "Indicates whether use the default multicast IP address."; } leaf bind-type { type bind-link-type; description "- 2 or 3: Peer Ip Address, detects the multi-hop IP link. - 1 or 4: Interface, detects the single-hop IP link. - 9: LDP_LSP, detects the LDP LSP. - 11: TE_LSP, detects the LSP bound to the TE tunnel. - 12: TE_TUNNEL, detects the TE tunnel. - 13: PW, detects the PW. - 15: VSI_PW, detects the VSI PW."; } leaf static-lsp-name { type string { length "1..31"; } description "Indicates the name of the static LSP. NOTE: This parameter is always displayed as '-'."; } leaf pw-secondary { type pw-role; description "Indicates the ID of the secondary PW."; } leaf next-hop { type inet:ipv4-address-no-zone; description "Indicates the IP address of the next hop."; } leaf vc-id { type uint32; description "Indicates the ID of the VC."; } leaf vsi-name { type string { length "1..31"; } description "Indicates the name of the VSI."; } leaf vsi-peer-address { type inet:ipv4-address-no-zone; description "Indicates the destination address of the VSI."; } leaf discr-auto { type uint32; description "Indicates the static auto-negotiation identifier."; } leaf peer-ipv6 { type inet:ipv6-address-no-zone; description "Indicates the bound destination IPv6 address."; } leaf ipv6-next-hop { type inet:ipv6-address-no-zone; description "Indicates the next-hop IPv6 address."; } } // notification bfd-sess-up notification bfd-sess-reach-total-limit { description "The number of BFD sessions on all IO boards has reached the upper limit, and new sessions cannot be set up."; leaf total-session-limit { type uint32; description "Indicates the upper limit of global BFD sessions."; } } // notification bfd-sess-reach-total-limit notification bfd-sess-reach-total-limit-resume { description "The number of BFD sessions falls within the specified range, and new sessions can be set up."; leaf total-session-limit { type uint32; description "Indicates the upper limit of global BFD sessions."; } } // notification bfd-sess-reach-total-limit-resume } // module huawei-bfd-notification
© 2023 YumaWorks, Inc. All rights reserved.