Skip to content

Commit

Permalink
Add policy forwarding for next hop match and GUE encapsulation action
Browse files Browse the repository at this point in the history
  • Loading branch information
danameme committed Oct 30, 2024
1 parent 927341a commit 02ea2be
Showing 1 changed file with 2 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ submodule openconfig-pf-forwarding-policies {
import openconfig-yang-types { prefix "oc-yang"; }
import openconfig-inet-types { prefix "oc-inet"; }
import openconfig-types { prefix oc-types; }
import openconfig-mpls-types { prefix "oc-mplst"; }
import openconfig-evpn-types { prefix "oc-evpn-types"; }

include openconfig-pf-path-groups;

Expand Down Expand Up @@ -718,27 +720,6 @@ submodule openconfig-pf-forwarding-policies {
uses pf-encap-udp-config;
}
}

container vxlan {
when "../config/type = 'oc-types:VXLAN'";
description
"Container of nodes for VXLAN encapsulation.";

container config {
description
"Config parameters relating to VXLAN encapsulation headers.";

uses pf-encap-vxlan-config;
}

container state {
config false;
description
"State parameters relating to VXLAN encapsulation headers.";

uses pf-encap-vxlan-config;
}
}
}
}
}
Expand Down Expand Up @@ -885,27 +866,6 @@ submodule openconfig-pf-forwarding-policies {
}
}

grouping pf-encap-vxlan-config {
description
"VXLAN encapsulation applied on top of a packet.";

leaf vni-label {
type oc-evpn-types:evi-id;
description
"Where applicable, the next hop label representing the virtual
network identifier (VNI) for the forwarding entry. This leaf is
applicable only to next-hops which include VXLAN encapsulation
header information";
}

leaf tunnel-src-ip-address {
type oc-inet:ip-address;
description
"Where applicable this represents the vxlan tunnel source ip address.
For VXLAN this represents the source VTEP ip address";
}
}

grouping pf-match-next-hop-groups-config {
description
"Configuration parameters relating matching next-hop of a packet.";
Expand Down

0 comments on commit 02ea2be

Please sign in to comment.