Skip to content

Commit

Permalink
Update openconfig-mpls-static.yang
Browse files Browse the repository at this point in the history
Created a new grouping static-lsp-nexthops-egress to restrict leaf only to egress.
  • Loading branch information
vishnureddybadveli authored Jan 7, 2025
1 parent 5113b46 commit b607bfb
Showing 1 changed file with 67 additions and 1 deletion.
68 changes: 67 additions & 1 deletion release/models/mpls/openconfig-mpls-static.yang
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,72 @@ submodule openconfig-mpls-static {
"Operational state data for egress LSPs";
}

grouping static-lsp-nexthop-network-instance {
description
"Vrf name for egress next-hops";

leaf next-hop-network-instance {
type oc-ni:network-instance-ref;
description
"The network-instance in which to resolve the next-hop.
If not specified, then the next-hop is resolved in the
enclosing network instance.";
}
}

grouping static-lsp-nexthops-egress {
description
"MPLS Static LSP next-hops egress configuration";

container lsp-next-hops {
description
"Configuration and state parameters relating to the
egress next-hops that are to be utilised for the MPLS static
route being specified";

list lsp-next-hop {
key "index";

description
"A list of next-hops to be utilised for the MPLS
static route being specified.";

leaf index {
type leafref {
path "../config/index";
}
description
"A reference to the index of the current next-hop.
The index is intended to be a user-specified value
which can be used to reference the next-hop in
question, without any other semantics being
assigned to it.";
}

container config {
description
"Configuration parameters relating to the next-hop
entry";

uses static-lsp-nexthop-index;
uses static-lsp-nexthop-common-config;
uses static-lsp-nexthop-network-instance;
}

container state {
config false;
description
"Operational state parameters relating to the
next-hop entry";

uses static-lsp-nexthop-index;
uses static-lsp-nexthop-common-config;
uses static-lsp-nexthop-network-instance;
}
}
}
}

grouping static-lsp-egress-top {
description
"Top-level grouping for egress LSP data";
Expand Down Expand Up @@ -429,7 +495,7 @@ submodule openconfig-mpls-static {
uses static-lsp-egress-state;
}

uses static-lsp-nexthops-common;
uses static-lsp-nexthops-egress;
}
}

Expand Down

0 comments on commit b607bfb

Please sign in to comment.