Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of BFD sessions subtree under interface in openconfig-bfd.yang #1137

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions release/models/bfd/openconfig-bfd.yang
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,100 @@ module openconfig-bfd {
uses bfd-session-microbfd-common;
}

grouping bfd-interface-session-config {
description
"Configuration parameters for a BFD session on an interface.";

leaf local-address {
type oc-inet:ip-address;
description
"The local IP address used by the system for the single-hope BFD session
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved
specified.";
}

leaf remote-address {
type oc-inet:ip-address;
description
"The remote IP destination that should be used by the system for
the single-hope BFD session specified.";
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved
}

leaf enabled {
type boolean;
description
"When this leaf is set to true then the single-hope BFD session is enabled
- if it is set to false, it is administratively disabled.";
}

leaf demand-mode {
type boolean;
description
"When this leaf is set to true then the single-hope BFD session
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved
is operating in demand-mode.";
}
}

grouping bfd-interface-session-state {
// placeholder
description
"Operational state parameters relating to the single-hope BFD session
running on the interface.";
}

grouping bfd-interface-sessions-structural {
description
"Structural grouping for BFD sessions configuration on interface
and state parameters.";

container sessions {
description
"Parameters relating to BFD sessions associated with the interface.";
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved

list session {
key "local-address";
key "remote-address";
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved

description
"This list contains configuration and state parameters
relating to interface single-hope session.";
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved
reference
"RFC5881 - Bidirectional Forwarding Detection
(BFD) for IPv4 and IPv6 (Single Hop).";

leaf local-address {
type leafref {
path "../config/local-address";
}
description
"A reference to the local-address for the BFD single-hop
session";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
session";
session.";

}
leaf remote-address {
type leafref {
path "../config/remote-address";
}
description
"A reference to the remote-address for the BFD single-hop
session";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
session";
session.";

}

container config {
description
"Configuration parameters for the BFD single-hope session.";
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved
uses bfd-interface-session-config;
}

container state {
config false;
description
"Operational state parameters for the BFD single-hope session.";
Pull-eckermann marked this conversation as resolved.
Show resolved Hide resolved
uses bfd-interface-session-config;
uses bfd-interface-session-state;
}
}
}
}

grouping bfd-interface-microbfd-structural {
description
"Structural grouping for micro-bfd configuration and state
Expand Down Expand Up @@ -650,6 +744,7 @@ module openconfig-bfd {

uses oc-if:interface-ref;

uses bfd-interface-sessions-structural;
uses bfd-interface-microbfd-structural;
uses bfd-interface-peer-structural;
}
Expand Down