Skip to content

Commit

Permalink
Add gre and mpls containers under next-hops aft entry state. Add ttl …
Browse files Browse the repository at this point in the history
…and tos under gre, mpls and ip-in-ip aft entry state. Remove nexthop-group-name and autosiz changes from this PR.
  • Loading branch information
romeyod committed Aug 7, 2023
1 parent 3d0f6b9 commit 727b617
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 30 deletions.
69 changes: 53 additions & 16 deletions release/models/aft/openconfig-aft-common.yang
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ submodule openconfig-aft-common {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state for telemetry";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down Expand Up @@ -211,6 +212,33 @@ submodule openconfig-aft-common {
description
"State parameters relating to IP-in-IP encapsulation.";
uses aft-common-entry-nexthop-ipip-state;
uses aft-common-entry-nexthop-encap-outer-header-state;
}
}

container gre {
description
"When specified, the packet has an GRE header applied to it before
forwarding to the specified next-hop.";

container state {
config false;
description
"State parameters relating to GRE encapsulation.";
uses aft-common-entry-nexthop-encap-outer-header-state;
}
}

container mpls {
description
"When specified, the packet has an MPLS header applied to it before
forwarding to the specified next-hop.";

container state {
config false;
description
"State parameters relating to MPLS encapsulation.";
uses aft-common-entry-nexthop-encap-outer-header-state;
}
}

Expand Down Expand Up @@ -366,20 +394,6 @@ submodule openconfig-aft-common {
specified network-instance.";
}

leaf ttl {
type uint32;
description
"The TTL value used by the hardware pipeline while forwarding
a packet to the specified next-hop.";
}

leaf tos {
type uint16;
description
"The TOS value used by the hardware pipeline while forwarding
a packet to the specified next-hop.";
}

uses aft-common-install-protocol;
}

Expand All @@ -400,6 +414,29 @@ submodule openconfig-aft-common {
}
}

grouping aft-common-entry-nexthop-encap-outer-header-state {
description
"Outer header fields of encapsulation applied on a next-hop";

leaf ttl {
type uint32;
description
"This leaf reflects the configured TTL value that is used in the outer
header during packet encapsulation. When this leaf is not set, the TTL
value of the inner packet is copied over as the outer packet's TTL
value during encapsulation.";
}

leaf tos {
type uint16;
description
"This leaf reflects the configured TOS value that is used in the outer
header during packet encapsulation. When this leaf is not set, the TOS
value of the inner packet is copied over as the outer packet's TOS
value during encapsulation.";
}
}

grouping aft-common-install-protocol {
description
"Grouping for a common reference to the protocol which
Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft-ethernet.yang
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ submodule openconfig-aft-ethernet {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft-ipv4.yang
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ submodule openconfig-aft-ipv4 {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft-ipv6.yang
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ submodule openconfig-aft-ipv6 {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft-mpls.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ submodule openconfig-aft-mpls {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft-pf.yang
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ submodule openconfig-aft-pf {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft-state-synced.yang
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ submodule openconfig-aft-state-synced {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down
5 changes: 3 additions & 2 deletions release/models/aft/openconfig-aft.yang
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ module openconfig-aft {

revision "2023-05-25" {
description
"Add next-hop-group-name and auto-size in NHG AFT entry state
and Add ttl and tos in NH AFT entry state";
"Add gre and mpls containers under next-hops aft entry state.
Add ttl and tos under gre, mpls and ip-in-ip aft entry state
for telemetry.";
reference "2.4.0";
}

Expand Down

0 comments on commit 727b617

Please sign in to comment.