blob: d97e8dfc9e34d51377b865654ce8c1f01e0a788b [file] [log] [blame]
Thomas Vachuska6655bee2017-08-24 16:12:59 -07001submodule openconfig-pf-path-groups {
2 belongs-to openconfig-policy-forwarding {
3 prefix "oc-pf";
4 }
5
6 import openconfig-extensions { prefix "oc-ext"; }
7
8 organization
9 "OpenConfig working group";
10
11 contact
12 "OpenConfig working group
13 www.openconfig.net";
14
15 description
16 "This submodule contains configuration and operational state
17 relating to path-selection-groups which are used to group
18 forwarding entities together to be used as policy forwarding
19 targets.";
20
21 oc-ext:openconfig-version "0.2.0";
22
23 revision "2017-06-21" {
24 description
25 "Amend policy forwarding model based on ACL changes.";
26 reference "0.2.0";
27 }
28
29 revision "2017-02-28" {
30 description
31 "Initial public release of policy forwarding.";
32 reference "0.1.0";
33 }
34
35 revision "2016-11-08" {
36 description
37 "Initial revision";
38 reference "0.0.1";
39 }
40
41 grouping pf-path-groups-structural {
42 description
43 "Structural grouping containing the definition of path groups
44 within the context of policy-based forwarding.";
45
46 container path-selection-groups {
47 description
48 "Surrounding container for the path selection groups defined
49 within the policy forwarding model.";
50
51 list path-selection-group {
52 key "group-id";
53
54 leaf group-id {
55 type leafref {
56 path "../config/group-id";
57 }
58 description
59 "Reference to a unique identifier for the path selection
60 group";
61
62 }
63
64 description
65 "A path selection group is a set of forwarding resources,
66 which are grouped as eligible paths for a particular
67 policy-based forwarding rule. A policy rule may select a
68 path-selection-group as the egress for a particular type of
69 traffic (e.g., DSCP value). The system then utilises its
70 standard forwarding lookup mechanism to select from the
71 paths that are specified within the group - for IP packets,
72 the destination IP address is used such that the packet is
73 routed to the entity within the path-selection-group that
74 corresponds to the next-hop for the destination IP address
75 of the packet; for L2 packets, the selection is based on the
76 destination MAC address.";
77
78 container config {
79 description
80 "Configuration parameters relating to the path selection
81 group.";
82 uses pf-path-selection-group-config;
83 }
84
85 container state {
86 config false;
87 description
88 "Operational state parameters relating to the path
89 selection group.";
90 uses pf-path-selection-group-config;
91 }
92 }
93 }
94 }
95
96 grouping pf-path-selection-group-config {
97 description
98 "Configuration parameters relating to a path selection group.";
99
100 leaf group-id {
101 type string;
102 description
103 "A unique name for the path-selection-group";
104 }
105
106 leaf-list mpls-lsp {
107 type leafref {
108 // We are at /network-instances/network-instance/
109 // policy-forwarding/path-selection-groups/
110 // path-selection-group/config/mpls-lsp
111 path "../../../../../mpls/lsps/constrained-path/tunnels/" +
112 "tunnel/config/name";
113 }
114 description
115 "A set of MPLS constrained-path LSPs which should be
116 considered for the policy forwarding next-hop. In order to
117 select between the LSPs within the path-selection-group, the
118 system should determine which LSP provides the best path to
119 the next-hop for the routed packet.";
120 }
121 }
122}