Adding Yang Model for Openstack Host Configuration
[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 "The UUID of the tenant that will own the object.";
45         }
46     }
47
48     grouping admin-attributes {
49         leaf admin-state-up {
50             type boolean;
51             description "The administrative state of the object, which is up (true) or
52                         down (false).";
53         }
54         leaf status {
55             type string;
56             description "The object status.";
57         }
58     }
59 }