From 2e6e16a96b6bb17e67b22c287c77bad43de203f0 Mon Sep 17 00:00:00 2001 From: AnilKR123 <138503153+AnilKR123@users.noreply.github.com> Date: Wed, 5 Mar 2025 17:14:42 -0500 Subject: [PATCH] Move the up-transitions leaf from the async and echo sub-containers into the state container. (#1252) * Move the up-transitions leaf into the state container. --- release/models/bfd/openconfig-bfd.yang | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/release/models/bfd/openconfig-bfd.yang b/release/models/bfd/openconfig-bfd.yang index 840411d8d..ff85d2d8e 100644 --- a/release/models/bfd/openconfig-bfd.yang +++ b/release/models/bfd/openconfig-bfd.yang @@ -26,7 +26,14 @@ module openconfig-bfd { "An OpenConfig model of Bi-Directional Forwarding Detection (BFD) configuration and operational state."; - oc-ext:openconfig-version "0.3.1"; + oc-ext:openconfig-version "0.4.0"; + + revision "2025-02-05" { + description + "Move the up-transitions leaf from the async and echo + sub-containers into the state container."; + reference "0.4.0"; + } revision "2024-12-16" { description @@ -287,7 +294,6 @@ module openconfig-bfd { } leaf transmitted-packets { - // TODO: looks to be unsupported on JUNOS type uint64; description "The number of packets that have been transmitted @@ -303,11 +309,15 @@ module openconfig-bfd { } leaf up-transitions { - // TODO: looks to only be supported in SROS + status deprecated; type uint64; description "The number of times that the adjacency with the neighbor - has transitioned into the up state."; + has transitioned into the up state. + + This leaf is deprecated and will be replaced by a single + up-transitions leaf in state container. New path: + /bfd/interfaces/interface/peers/peer/state/up-transitions."; } } @@ -345,6 +355,14 @@ module openconfig-bfd { out of the UP state."; } + leaf up-transitions { + // TODO: looks to only be supported in SROS + type uint64; + description + "The number of times that the adjacency with the neighbor + has transitioned into the up state."; + } + leaf local-discriminator { type string; description