Add JAXB JUnit testing for Neutron Floating IPs
[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     // It requires rfc6991 (revision 2013-07-15), but odl don't have it, so this patch verify build will fail.
18     import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
19
20     organization "OpenDaylight Neutron Group";
21
22     contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
23
24     description "This YANG module defines groupings that are used by Openstack
25         Ice House Neutron YANG modules.";
26
27     revision "2014-10-02" {
28         description
29                 "Initial version of attributes used by OpenStack Ice House Neutron
30                 models";
31     }
32
33     grouping base-attrs {
34
35         leaf uuid {
36             type yang:uuid;
37             description "UUID to index this neutron object.";
38         }
39
40         leaf name {
41             type string;
42             description "Human-readable name for the item. Might not be unique.";
43         }
44
45         leaf tenant-id {
46             type yang:uuid;
47             description "Admin-only. The UUID of the tenant that will own the network.
48                         This tenant can be different from the tenant that makes the create
49                         network request. However, only administrative users can specify
50                         a tenant ID other than their own. You cannot change this value
51                         through authorization policies.";
52         }
53     }
54
55     grouping admin-attrs {
56         leaf admin-state-up {
57             type boolean;
58             description "The administrative state of the network, which is up (true) or
59                         down (false).";
60         }
61         leaf status {
62             type string;
63             description "The network status.";
64         }
65     }
66 }