Move all neutron YANG models under "neutron" top-level
[neutron.git] / model / src / main / yang / neutron-provider-ext.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-ext {
9
10     yang-version 1;
11
12     namespace "urn:opendaylight:neutron-provider-ext";
13
14     prefix neutron-provider-ext;
15
16     import ietf-yang-types { prefix "yang"; }
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     import neutron-attrs { prefix "attrs"; }
20     import neutron-networks { prefix "networks"; }
21     import neutron { prefix "neutron"; }
22     import neutron-provider { prefix "provider"; }
23
24     organization "OpenDaylight Neutron Group";
25
26     contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
27
28     description "This YANG module defines provider model extensions that are used by Openstack
29         Ice House Neutron YANG modules.";
30
31     revision "2014-10-02" {
32         description
33                 "Initial version of provider model extensions used by OpenStack Ice House Neutron
34                 models";
35     }
36
37     augment "/neutron:neutron/neutron:networks/neutron:network"{
38         description "
39           This module augments the networks container in the neutron-networks
40           module with provider information.
41           ";
42         list providers {
43             description "List of provider network(s) associated with this network.";
44             key segmentation-id;
45             uses provider:provider-attrs;
46         }
47         uses provider:provider-attrs;
48     }
49 }