Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module draft-relation {
description
"relations external of RFC8345";

revision 2025-03-09 {
revision 2025-08-01 {
description
"Initial revision";
reference
Expand All @@ -51,34 +51,35 @@ module draft-relation {
}
choice network-element-ref {
description
"linking to RFC8345";
"reference to network element";
leaf network-ref {
type leafref {
path "/nw:networks/nw:network/nw:network-id";
}
description
"linking to network";
"reference to network";
}
leaf node-ref {
type leafref {
path "/nw:networks/nw:network/nw:node/nw:node-id";
}
description
"linking to node";
"reference to node";
}
leaf link-ref {
type leafref {
path "/nw:networks/nw:network/nt:link/nt:link-id";
}
description
"linking to link";
"reference to link";
}
leaf tp-ref {
type leafref {
path "/nw:networks/nw:network/nw:node/nt:termination-point/nt:tp-id";
path "/nw:networks/nw:network/nw:node" +
"/nt:termination-point/nt:tp-id";
}
description
"linking to termination point";
"reference to termination point";
}
}
leaf template-ref {
Expand All @@ -93,23 +94,28 @@ module draft-relation {
base dr-tmp:request-type;
}
description
"template is generic and may include requests that are not supported by the network element
here, we specify the types of requests that the network element supports
if network element supports all template ALL-REQUEST may be used";
"template is generic and may include requests
that are not supported by the network element
here, we specify the types of requests
that the network element supports
if network element supports all request types
ALL-REQUEST may be used";
}
leaf path {
type string;
description
"network element can be augmented and may contain containers nested within other containers.
path is used for filtering.";
"network element can be augmented and may contain
containers nested within other containers.
path is used for filtering";
}
list parameter-value {
key "param-ref request-type";
description
"parameter value from network element";
"parameter value for network element";
leaf param-ref {
type leafref {
path "/dr-tmp:template/dr-tmp:template/dr-tmp:parameter/dr-tmp:param-id";
path "/dr-tmp:template/dr-tmp:template" +
"/dr-tmp:parameter/dr-tmp:param-id";
}
description
"reference to template parameter";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module draft-template {
description
"template yang model";

revision 2025-03-09 {
revision 2025-08-01 {
description
"Initial revision";
reference
Expand All @@ -41,36 +41,26 @@ module draft-template {
"template used to retrieve operational state data";
}

identity extra-label {
identity METRIC {
base template-type;
description
"base identity for extra label";
"template used to retrieve metrics";
}

identity request-type {
identity label {
description
"base identity for request type";
"base identity for label";
}

identity ALL_REQUEST {
base request-type;
identity request-type {
description
"all request";
"base identity for request type";
}

identity NETCONF {
identity ALL_REQUESTS {
base request-type;
description
"request that retrieves data using the NETCONF protocol";
}

grouping netconf-request {
description
"netconf request";
leaf xpath {
type string;
description
"netconf xpath for request";
}
"all requests";
}

container template {
Expand All @@ -92,29 +82,28 @@ module draft-template {
}
container template-type {
description
"template type
used for filtering";
"template type;
used for filtering template";
leaf base {
type identityref {
base template-type;
}
description
"template base
used for filtering";
"template base type";
}
leaf is-historical {
type boolean;
description
"check is template is used to get historical data or not
used for filtering";
"check if template is used
to get historical data or not";
}
leaf-list extra-label {
leaf-list label {
type identityref {
base extra-label;
base label;
}
description
"extra label
used for filtering";
"used to defined which data can
be retrieve with the template";
}
}
list parameter {
Expand Down Expand Up @@ -142,24 +131,24 @@ module draft-template {
}
description
"request type";
}
leaf description {
type string;
description
"request description";
}
container request-builder {
description
"request container that allows users to retrieve data
"request container that contains
everything needed to build the request;
parameters must be enclosed in brackets.";
}
}
container extra {
anydata extra {
description
"use for augmentation";
}
}
}

augment "/template/template/request/request-builder" {
when "derived-from-or-self(../request-type, 'NETCONF')";
uses netconf-request;
description
"adding netconf request to possible request";
}
}
Loading
Loading