2d0b3a0b88106fc6e9908e9a77b16143f022f038
[neutron.git] / model / src / main / yang / neutron-extensions.yang
1 /*
2  * Copyright (c) 2016 Intel Corporation.  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
9 module neutron-extensions {
10     yang-version 1;
11
12     namespace "urn:opendaylight:neutron-extensions";
13
14     prefix neutron-extensions;
15
16     organization "OpenDaylight Neutron Group";
17
18     contact "Isaku Yamahata <isaku.yamahata@gmail.com>";
19
20     description "This YANG module defines neutron extensions attributes that are used
21         by OpenDaylight Neutron YANG modules.
22         http://developer.openstack.org/api-ref-networking-v2-ext.html#neutron_extensions";
23
24     revision "2016-06-17" {
25         description
26                 "OpenDaylight Boron release";
27     }
28
29     grouping extension-attributes {
30         leaf name {
31             type string;
32             description "The name of the extension";
33         }
34         leaf alias {
35             type string;
36             description "The alias for the extension";
37         }
38         leaf configuration {
39             type string;
40             description "The configuration of this extension";
41         }
42     }
43
44     grouping extensions-attributes {
45         container extensions {
46             config false;
47             list extension {
48                 key "alias";
49                 uses extension-attributes;
50             }
51         }
52     }
53 }