Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | submodule openconfig-aft-ipv4 { |
| 2 | belongs-to "openconfig-aft" { |
| 3 | prefix "oc-aft"; |
| 4 | } |
| 5 | |
| 6 | import openconfig-extensions { prefix "oc-ext"; } |
| 7 | import openconfig-inet-types { prefix "oc-inet"; } |
| 8 | |
| 9 | // Include common cross-AFT groupings from the common submodule. |
| 10 | include openconfig-aft-common; |
| 11 | |
| 12 | oc-ext:openconfig-version "0.3.0"; |
| 13 | |
| 14 | organization |
| 15 | "OpenConfig working group"; |
| 16 | |
| 17 | contact |
| 18 | "OpenConfig working group |
| 19 | www.openconfig.net"; |
| 20 | |
| 21 | description |
| 22 | "Submodule containing definitions of groupings for the abstract |
| 23 | forwarding tables for IPv4."; |
| 24 | |
| 25 | revision 2017-05-10 { |
| 26 | description |
| 27 | "Refactor to provide concretised per-AF schemas per AFT."; |
| 28 | reference "0.3.0"; |
| 29 | } |
| 30 | |
| 31 | grouping aft-ipv4-unicast-structural { |
| 32 | description |
| 33 | "Structural grouping defining the schema for the IPv4 unicast |
| 34 | abstract forwarding table."; |
| 35 | |
| 36 | list ipv4-entry { |
| 37 | key "prefix"; |
| 38 | |
| 39 | description |
| 40 | "List of the IPv4 unicast entries within the abstract |
| 41 | forwarding table. This list is keyed by the destination IPv4 |
| 42 | prefix."; |
| 43 | |
| 44 | leaf prefix { |
| 45 | type leafref { |
| 46 | path "../config/prefix"; |
| 47 | } |
| 48 | description |
| 49 | "Reference to the IPv4 unicast destination prefix which |
| 50 | must be matched to utilise the AFT entry."; |
| 51 | } |
| 52 | |
| 53 | container config { |
| 54 | description |
| 55 | "Configuration parameters for the IPv4 unicast AFT entry."; |
| 56 | uses aft-ipv4-unicast-entry-config; |
| 57 | } |
| 58 | |
| 59 | container state { |
| 60 | config false; |
| 61 | description |
| 62 | "Operational state parameters for the IPv4 unicast AFT |
| 63 | entry."; |
| 64 | uses aft-ipv4-unicast-entry-config; |
| 65 | uses aft-ipv4-unicast-entry-state; |
| 66 | } |
| 67 | |
| 68 | uses aft-common-nhop-structural; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | grouping aft-ipv4-unicast-entry-config { |
| 73 | description |
| 74 | "Configuration parameters for the IPv4 unicast entry."; |
| 75 | |
| 76 | leaf prefix { |
| 77 | type oc-inet:ipv4-prefix; |
| 78 | description |
| 79 | "The IPv4 destination prefix that should be matched to |
| 80 | utilise the AFT entry."; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | grouping aft-ipv4-unicast-entry-state { |
| 85 | description |
| 86 | "Operational state parameters for the IPv4 unicast entry."; |
| 87 | uses aft-common-entry-state; |
| 88 | } |
| 89 | } |