Merge "BGPVPN: Added yang, api and transcriber for BGPVPN"
[neutron.git] / model / src / main / yang / neutron-attrs.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-attrs {
9
10     yang-version 1;
11
12     namespace "urn:opendaylight:neutron-attrs";
13
14     prefix neutron-attrs;
15
16     import ietf-yang-types { prefix "yang"; revision-date "2013-07-15";}
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 groupings that are used
23         by OpenDaylight Neutron YANG modules.";
24
25     revision "2015-07-12" {
26         description
27                 "OpenDaylight Beryllium release";
28     }
29
30     grouping base-attributes {
31
32         leaf uuid {
33             type yang:uuid;
34             description "UUID to index this neutron object.";
35         }
36
37         leaf name {
38             type string;
39             description "Human-readable name for the item. Might not be unique.";
40         }
41
42         leaf tenant-id {
43             type yang:uuid;
44             description "Admin-only. The UUID of the tenant that will own the network.
45                         This tenant can be different from the tenant that makes the create
46                         network request. However, only administrative users can specify
47                         a tenant ID other than their own. You cannot change this value
48                         through authorization policies.";
49         }
50     }
51
52     grouping admin-attributes {
53         leaf admin-state-up {
54             type boolean;
55             description "The administrative state of the network, which is up (true) or
56                         down (false).";
57         }
58         leaf status {
59             type string;
60             description "The network status.";
61         }
62     }
63 }