blob: 38e5cc09b51e59140f4f20137a90679d3d2e2ca6 [file] [log] [blame]
Thomas Vachuska8ca75a22017-08-24 16:12:59 -07001submodule openconfig-aft-mpls {
2 belongs-to "openconfig-aft" {
3 prefix "oc-aft";
4 }
5
6 import openconfig-extensions { prefix "oc-ext"; }
7 import openconfig-mpls-types { prefix "oc-mpls-types"; }
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 table for MPLS label forwarding.";
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-mpls-structural {
32 description
33 "Structural grouping defining the schema for the MPLS
34 abstract forwarding table.";
35
36 list label-entry {
37 key "label";
38
39 description
40 "List of the MPLS entries within the abstract
41 forwarding table. This list is keyed by the top-most MPLS
42 label.";
43
44 leaf label {
45 type leafref {
46 path "../config/label";
47 }
48 description
49 "Reference to the top-most MPLS label matched by the
50 entry.";
51 }
52
53 container config {
54 description
55 "Configuration parameters for the MPLS AFT entry.";
56 uses aft-mpls-entry-config;
57 }
58
59 container state {
60 config false;
61 description
62 "Operational state parameters for the MPLS AFT
63 entry.";
64 uses aft-mpls-entry-config;
65 uses aft-mpls-entry-state;
66 }
67
68 uses aft-common-nhop-structural;
69 }
70 }
71
72 grouping aft-mpls-entry-config {
73 description
74 "Configuration parameters for the MPLS entry.";
75
76 leaf label {
77 type oc-mpls-types:mpls-label;
78 description
79 "The top-most MPLS label that should be matched to
80 utilise the AFT entry.";
81 }
82 }
83
84 grouping aft-mpls-entry-state {
85 description
86 "Operational state parameters for the MPLS entry.";
87 uses aft-common-entry-state;
88 }
89}