2 namespace "urn:opendaylight:params:xml:ns:yang:controller:config:ui-backend";
\r
5 import policy {prefix gbp-policy;}
\r
6 import gbp-common {prefix gbp-common;}
\r
7 import endpoint {prefix endpoint;}
\r
10 "Module contains RPC definitions for more easier interaction of the GUI with the GBP APIs.";
\r
12 revision "2015-05-11" {
\r
13 description "Initial revision of ui-backend model";
\r
16 grouping endpoint-group-identifier-fields {
\r
18 type gbp-common:tenant-id;
\r
20 leaf endpoint-group-id {
\r
21 type gbp-common:endpoint-group-id;
\r
25 grouping consumer-endpoint-group-ref {
\r
26 leaf consumer-tenant-id {
\r
28 path "/gbp-policy:tenants/gbp-policy:tenant/gbp-policy:id";
\r
31 leaf consumer-endpoint-group-id {
\r
33 path "/gbp-policy:tenants/gbp-policy:tenant/gbp-policy:policy/gbp-policy:endpoint-group/gbp-policy:id";
\r
38 grouping provider-endpoint-group-ref {
\r
39 leaf provider-tenant-id {
\r
41 path "/gbp-policy:tenants/gbp-policy:tenant/gbp-policy:id";
\r
44 leaf provider-endpoint-group-id {
\r
46 path "/gbp-policy:tenants/gbp-policy:tenant/gbp-policy:policy/gbp-policy:endpoint-group/gbp-policy:id";
\r
51 rpc get-endpoints-from-endpoint-group {
\r
52 description "Returns endpoints which are in the given endpoint group.";
\r
54 uses endpoint-group-identifier-fields;
\r
59 "Endpoints indexed by layer 2 addreses.";
\r
60 key "l2-context mac-address";
\r
61 uses endpoint:endpoint-fields;
\r
66 rpc get-subjects-between-endpoint-groups {
\r
67 description "Returns subjects between endpoint group pairs where endpoint groups are from the given tenant.";
\r
70 description "Tenant ID of the tenant.";
\r
71 type gbp-common:tenant-id;
\r
74 container from-oper-data {
\r
75 presence "Resolve subjects for endpoint gorup pairs based on operational data.";
\r
79 list endpoint-group-pair-with-subject {
\r
80 key "consumer-endpoint-group-id consumer-tenant-id provider-endpoint-group-id provider-tenant-id";
\r
81 uses consumer-endpoint-group-ref;
\r
82 uses provider-endpoint-group-ref;
\r
86 description "A name for the subject";
\r
87 type gbp-common:subject-name;
\r
92 description "A name for the rule";
\r
93 type gbp-common:rule-name;
\r
95 uses gbp-policy:has-classifier-refs;
\r
96 uses gbp-policy:has-action-refs;
\r
97 uses gbp-policy:has-order;
\r
99 uses gbp-policy:has-order;
\r