Neutron Model update
[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             status deprecated;
44             type yang:uuid;
45             description "The UUID of the tenant that will own the object.";
46         }
47
48         leaf project-id {
49             type string {
50                 length "0..255";
51             }
52             description "The id of the project.";
53         }
54
55         leaf revision-number {
56             type int64;
57             description "The revision number of the resource. Used as monotonic
58                          counter that is updated whenever an object is updated
59                          on neutron server";
60         }
61     }
62
63     grouping admin-attributes {
64         leaf admin-state-up {
65             type boolean;
66             description "The administrative state of the object, which is up (true) or
67                         down (false).";
68         }
69         leaf status {
70             type string;
71             description "The object status.";
72         }
73     }
74 }