make neutron.yang consistent
[neutron.git] / model / src / main / yang / neutron-provider.yang
1 /*
2  * Copyright (c) 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 module neutron-provider {
9
10     yang-version 1;
11
12     namespace "urn:opendaylight:neutron-provider";
13
14     prefix neutron-provider;
15
16     import neutron-networks { prefix "networks"; }
17
18     organization "OpenDaylight Neutron Group";
19
20     contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
21
22     description "This YANG module defines Openstack Neutron Provider extension attributes";
23
24     revision "2015-07-12" {
25         description
26                 "OpenDaylight Beryllium release";
27     }
28
29     grouping provider-attributes {
30         leaf physical-network {
31             type string;
32             description "The physical network where this network object is implemented.
33                         The Networking API v2.0 does not provide a way to list available
34                         physical networks. For example, the Open vSwitch plug-in configuration
35                         file defines a symbolic name that maps to specific bridges on
36                         each Compute host.";
37         }
38
39         leaf network-type {
40             type networks:network-type;
41             description "The type of physical network that maps to this network resource.";
42         }
43         leaf segmentation-id {
44             type string;
45             description "An isolated segment on the physical network. The network-type
46                         attribute defines the segmentation model. For example, if network-type
47                         is vlan, this ID is a vlan identifier. If network-type is gre,
48                         this ID is a gre key.";
49         }
50         leaf segmentation-index {
51             type uint32;
52             description "A hidden counter to act as a key, because
53                         segmentation id is not required.";
54         }
55     }
56 }