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-mapper-model {
11 namespace "urn:opendaylight:params:xml:ns:yang:controller:config:groupbasedpolicy:sxp-mapper: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 sxf-mapper implementation.";
26 revision "2016-03-02" {
31 container sxp-mapper {
32 description "root point for endpoint templates";
34 list endpoint-policy-template-by-sgt {
37 type sxp-database:sgt;
39 "SGT for which this endpoint template is used";
42 type gbp-common:tenant-id;
45 "The tenant of this endpoint";
47 leaf-list endpoint-groups {
48 type gbp-common:endpoint-group-id;
51 "The groups associated with this endpoint";
53 leaf-list conditions {
54 type gbp-common:condition-name;
56 "The conditions associated with this endpoint";
60 list endpoint-forwarding-template-by-subnet {
61 description "If the IP from IP/SGT binding is inside of ip-prefix then
62 the endpoint will be in the l3-context.";
67 "The IP prefix where an endpoint can be connected.";
70 type gbp-common:context-id;
73 "The context for the endpoint's layer 3 address";
75 container network-containment {
77 "The network domain associated with this endpoint's fowarding
79 uses forwarding:network-domain-key;
85 description "SGT leaf dedicated for endpoint-rpc, endpoint container and renderer configuration
86 (attach by augmentation)";
88 type sxp-database:sgt;
92 augment "renderer:renderers/renderer:renderer/renderer:renderer-policy/renderer:configuration/renderer:endpoints/renderer:address-endpoint-with-location" {
93 ext:augment-identifier "address-endpoint-with-location-aug";