2 * Copyright (c) 2014 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
12 namespace "urn:opendaylight:groupbasedpolicy:ofoverlay";
15 import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
17 import yang-ext {prefix ext; revision-date "2013-07-09";}
18 import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
20 import gbp-common {prefix gbp-common;}
21 import endpoint {prefix endpoint;}
24 "This module defines the group-based policy ofoverlay renderer model.";
26 revision "2014-05-28" {
34 container of-overlay-config {
36 "Configuration for the OpenFlow overlay renderer";
40 leaf encapsulation-format {
41 description "The encapsulation format to use for tunnels";
44 description "Use VXLAN encapsulation";
51 "Selects how and whether we learn endpoints";
55 "An external orchestration system will provide
56 information about all endpoints, and no
57 direct learning will occur.";
63 container of-overlay-operational {
65 "Operational parameters for the OpenFlow overlay renderer";
69 list data-plane-ordinal {
71 "Map elements of the policy to the id used on the network";
74 description "The tenant for the policy element";
75 type gbp-common:tenant-id;
78 description "The ID of the item";
79 type gbp-common:unique-id;
82 description "The 32-bit ordinal for the item";
88 grouping endpoint-location {
90 "The location for this endpoint in the overlay network";
98 "The endpoint is located on a port that is part of
99 the overlay network. You must include the node
100 ID and port number for this endpoint.";
103 description "This endpoint is not inside the overlay.";
110 "The OpenFlow switch for the endpoint. Must be included
111 for all internal endpoints. The format is
112 openflow:[dpid] where the dpid is the value of the
113 switch DPID cast to a long.";
117 leaf node-connector-id {
119 "The node connector for the endpoint's OpenFlow port. The
120 format is openflow:[dpid]:[port] where the dpid is
121 the value of the switch DPID cast to a long, and port
122 is the openflow port number of the interface where
123 the endpoint is connected.";
124 type inv:node-connector-id;
127 type gbp-common:name;
132 type gbp-common:unique-id;
134 "Unique identifier for interface";
139 augment "/endpoint:endpoints/endpoint:endpoint" {
140 ext:augment-identifier "of-overlay-context";
141 uses endpoint-location;
144 augment "/endpoint:register-endpoint/endpoint:input" {
145 ext:augment-identifier "of-overlay-context-input";
146 uses endpoint-location;
149 augment "/inv:nodes/inv:node" {
150 ext:augment-identifier "of-overlay-node-config";
154 "The IP address used for tunnel termination on this switch";
155 type inet:ip-address;
157 container ovsdb-config {
160 "The IP address used to connect to OVSDB on this switch";
161 type inet:ip-address;
165 "The port number used to connect to OVSDB on this switch";
166 type inet:port-number;
170 leaf-list external-interfaces {
172 "The names of the OpenFlow interfaces that are external and
173 lead to the underlay network. Can be specified as a
174 regular expression.";