summaryrefslogtreecommitdiffstats
path: root/src/plugins/yang/openconfig/openconfig-aft-ipv4.yang
diff options
context:
space:
mode:
authorAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2018-12-20 17:49:33 +0100
committerAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2018-12-20 17:51:10 +0100
commit639509ad42f8bd6baf9b6f5b668a9bbfb05108d4 (patch)
tree83de866d2e47bd71dae0c6ff9e03f51c3269413b /src/plugins/yang/openconfig/openconfig-aft-ipv4.yang
parentba089324594f450a1b549906ec7fde1ba63a1e89 (diff)
Add Openconfig YANG modules.
Change-Id: I7e98bf1ca7196cff042a35b8bf096d2ea9d80028 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'src/plugins/yang/openconfig/openconfig-aft-ipv4.yang')
-rw-r--r--src/plugins/yang/openconfig/openconfig-aft-ipv4.yang94
1 files changed, 94 insertions, 0 deletions
diff --git a/src/plugins/yang/openconfig/openconfig-aft-ipv4.yang b/src/plugins/yang/openconfig/openconfig-aft-ipv4.yang
new file mode 100644
index 0000000..20f8992
--- /dev/null
+++ b/src/plugins/yang/openconfig/openconfig-aft-ipv4.yang
@@ -0,0 +1,94 @@
+submodule openconfig-aft-ipv4 {
+ belongs-to "openconfig-aft" {
+ prefix "oc-aft";
+ }
+
+ import openconfig-extensions { prefix "oc-ext"; }
+ import openconfig-inet-types { prefix "oc-inet"; }
+
+ // Include common cross-AFT groupings from the common submodule.
+ include openconfig-aft-common;
+
+ organization
+ "OpenConfig working group";
+
+ contact
+ "OpenConfig working group
+ www.openconfig.net";
+
+ description
+ "Submodule containing definitions of groupings for the abstract
+ forwarding tables for IPv4.";
+
+ oc-ext:openconfig-version "0.3.1";
+
+ revision 2017-08-24 {
+ description
+ "Formatting fixes";
+ reference "0.3.1";
+ }
+
+ revision 2017-05-10 {
+ description
+ "Refactor to provide concretised per-AF schemas per AFT.";
+ reference "0.3.0";
+ }
+
+ grouping aft-ipv4-unicast-structural {
+ description
+ "Structural grouping defining the schema for the IPv4 unicast
+ abstract forwarding table.";
+
+ list ipv4-entry {
+ key "prefix";
+
+ description
+ "List of the IPv4 unicast entries within the abstract
+ forwarding table. This list is keyed by the destination IPv4
+ prefix.";
+
+ leaf prefix {
+ type leafref {
+ path "../config/prefix";
+ }
+ description
+ "Reference to the IPv4 unicast destination prefix which
+ must be matched to utilise the AFT entry.";
+ }
+
+ container config {
+ description
+ "Configuration parameters for the IPv4 unicast AFT entry.";
+ uses aft-ipv4-unicast-entry-config;
+ }
+
+ container state {
+ config false;
+ description
+ "Operational state parameters for the IPv4 unicast AFT
+ entry.";
+ uses aft-ipv4-unicast-entry-config;
+ uses aft-ipv4-unicast-entry-state;
+ }
+ }
+ }
+
+ grouping aft-ipv4-unicast-entry-config {
+ description
+ "Configuration parameters for the IPv4 unicast entry.";
+
+ leaf prefix {
+ type oc-inet:ipv4-prefix;
+ description
+ "The IPv4 destination prefix that should be matched to
+ utilise the AFT entry.";
+ }
+ }
+
+ grouping aft-ipv4-unicast-entry-state {
+ description
+ "Operational state parameters for the IPv4 unicast entry.";
+ uses aft-common-entry-state;
+ uses aft-common-ip-state;
+ }
+}