blob: b42c8ed8d0416b507ca748e02e0eaed3aa8707b8 [file] [log] [blame]
Thomas Vachuska8ca75a22017-08-24 16:12:59 -07001module openconfig-aft-network-instance {
2 yang-version "1";
3
4 namespace "http://openconfig.net/yang/aft/ni";
5 prefix "oc-aftni";
6
7 import openconfig-extensions { prefix "oc-ext"; }
8 import openconfig-network-instance { prefix "oc-ni"; }
9
10 organization
11 "OpenConfig working group";
12
13 contact
14 "OpenConfig working group
15 www.openconfig.net";
16
17 description
18 "This module provides augmentations that are utilized
19 when building the OpenConfig network instance model to
20 add per-NI AFTs.";
21
22 oc-ext:openconfig-version "0.2.1";
23
24 revision 2017-01-13 {
25 description
26 "Updated revision for external review";
27 reference "0.2.1";
28 }
29
30
31 typedef network-instance-ref {
32 type leafref {
33 path "/oc-ni:network-instances/oc-ni:network-instance/oc-ni:config/oc-ni:name";
34 }
35 description
36 "A re-usable type that can be referenced within other
37 modules that references a network instance.";
38 }
39
40 augment "/oc-ni:network-instances/oc-ni:network-instance/" +
41 "oc-ni:afts/oc-ni:ipv4-unicast/oc-ni:ipv4-entry/" +
42 "oc-ni:next-hops/oc-ni:next-hop/oc-ni:state" {
43
44 description
45 "Add leaves that require referencing of a network instance to the
46 operational state parameters of a next-hop within the AFT for IPv4
47 unicast.";
48
49 uses aft-nexthop-ni-state;
50 }
51
52 augment "/oc-ni:network-instances/oc-ni:network-instance/" +
53 "oc-ni:afts/oc-ni:ipv6-unicast/oc-ni:ipv6-entry/" +
54 "oc-ni:next-hops/oc-ni:next-hop/oc-ni:state" {
55
56 description
57 "Add leaves that require referencing of a network instance to the
58 operational state parameters of a next-hop within the AFT for IPv6
59 unicast.";
60
61 uses aft-nexthop-ni-state;
62 }
63
64 grouping aft-nexthop-ni-state {
65 description
66 "Operational state parameters relating to a next-hop which reference a
67 network instance.";
68
69 leaf network-instance {
70 type network-instance-ref;
71 description
72 "The network-instance within which the next-hop should be resolved.
73 When this leaf is unspecified, the next-hop is resolved within
74 the local instance.";
75 }
76 }
77
78 augment "/oc-ni:network-instances/oc-ni:network-instance/" +
79 "oc-ni:afts/oc-ni:ipv4-unicast/oc-ni:ipv4-entry/oc-ni:state" {
80 description
81 "Add leaves that require referencing of a network instance to the
82 operational state parameters of an entry within the IPv4 unicast AFT.";
83
84 uses aft-entry-ni-state;
85 }
86
87 augment "/oc-ni:network-instances/oc-ni:network-instance/" +
88 "oc-ni:afts/oc-ni:ipv6-unicast/oc-ni:ipv6-entry/oc-ni:state" {
89 description
90 "Add leaves that require referencing of a network instance to the
91 operational state parameters of an entry within the IPv6 unicast AFT.";
92
93 uses aft-entry-ni-state;
94 }
95
96 grouping aft-entry-ni-state {
97 description
98 "Operational state parameters relating to an AFT entry which reference
99 a network instance.";
100
101 leaf origin-network-instance {
102 type network-instance-ref;
103 description
104 "If the AFT entry was imported from another network instance (e.g., it
105 corresponds to a L3 forwarding entry which was learned within another
106 network-instance), the value of this leaf reflects the network-instance
107 from which it was learned.
108
109 For example, if the local network-instance corresponds to a L3VRF, and
110 routes are imported from the VPNv4 address-family of the BGP instance
111 in the DEFAULT_INSTANCE, then this value would reflect the
112 DEFAULT_INSTANCE as the origin-network-instance.";
113 }
114 }
115}