2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 module sxp-ep-provider-model {
11 namespace "urn:opendaylight:params:xml:ns:yang:controller:config:groupbasedpolicy:sxp-integration:sxp-ep-provider:model";
12 prefix "sxp-ep-prvd-model";
14 import sxp-database { prefix sxp-database; revision-date 2016-03-08; }
15 import gbp-common { prefix gbp-common; revision-date 2014-04-21; }
16 import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
17 import forwarding { prefix forwarding; revision-date 2016-04-27; }
18 import base-endpoint { prefix base-edpoint; revision-date 2016-04-27; }
19 import yang-ext { prefix ext; revision-date 2013-07-09; }
20 import renderer { prefix renderer; revision-date 2015-11-03; }
23 "This module contains the YANG definitions for
24 sxp-ep-provider implementation.";
26 revision "2016-03-02" {
31 identity template-origin {
32 description "identifies the way of creation of given template";
35 identity template-generated {
36 description "template was generated";
41 container sxp-ep-mapper {
42 description "root point for endpoint templates";
44 list endpoint-policy-template-by-sgt {
47 type sxp-database:sgt;
49 "SGT for which this endpoint template is used";
52 type gbp-common:tenant-id;
55 "The tenant of this endpoint";
57 leaf-list endpoint-groups {
58 type gbp-common:endpoint-group-id;
61 "The groups associated with this endpoint";
63 leaf-list conditions {
64 type gbp-common:condition-name;
66 "The conditions associated with this endpoint";
69 description "template origin flag";
76 list endpoint-forwarding-template-by-subnet {
77 description "If the IP from IP/SGT binding is inside of ip-prefix then
78 the endpoint will be in the l3-context.";
83 "The IP prefix where an endpoint can be connected.";
86 type gbp-common:context-id;
89 "The context for the endpoint's layer 3 address";
91 container network-containment {
93 "The network domain associated with this endpoint's fowarding
95 uses forwarding:network-domain-key;
101 description "SGT leaf dedicated for endpoint-rpc, endpoint container and renderer configuration
102 (attach by augmentation)";
104 type sxp-database:sgt;
108 augment "renderer:renderers/renderer:renderer/renderer:renderer-policy/renderer:configuration/renderer:endpoints/renderer:address-endpoint-with-location" {
109 ext:augment-identifier "address-endpoint-with-location-aug";