Bump versions by x.y.(z+1)
[neutron.git] / model / src / main / yang / neutron-hostconfig.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-hostconfig {
10
11     yang-version 1;
12
13     namespace "urn:opendaylight:neutron-hostconfig";
14
15     prefix neutron-hostconfig;
16
17     organization "OpenDaylight Neutron Group";
18
19     contact "Ritu Sood <ritu.sood@intel.com>";
20
21     description "This YANG module defines host configurations that is used
22         in specifying the physical node type (network node, compute node) for
23         a host system. This information is used by Openstack Neutron scheduler.
24         For example for L3 centralized SNAT support this will be used to inform
25         Neutron which node is Network node. This information will be read and
26         populated by networking-odl in Neutron agent_db. This model corresponds
27         to openstack neutron agent API";
28
29     revision "2015-07-12" {
30         description
31                 "OpenDaylight Boron release";
32     }
33
34     grouping hostconfig-entry-attributes {
35         description "These values will be populated by the Cloud Operator and
36         will be stored in the Open_vSwitch configuration data in the
37         external_ids field as a key value pair.";
38
39         leaf host-id {
40             type string;
41             config false;
42             description "Host identification string. This string will be
43             stored with the key as odl_os_hostconfig_hostid.";
44         }
45         leaf host-type {
46             type string;
47             config false;
48             description "The string is for type of the node. For example L3
49             Agent,DHCP Agent etc. This string will be stored with the key as
50             odl_os_hostconfig_hosttype.";
51         }
52         leaf config {
53             type string;
54             config false;
55             description "This is the configuration data for the host type to
56             be used to configure that host type by Openstack. This string
57             will be stored with the key as odl_os_hostconfig_config.";
58         }
59     }
60
61     grouping hostconfig-attributes {
62         container hostconfigs {
63             config false;
64             list hostconfig {
65                 description "List of Host with types and configurations.";
66                 key "host-id host-type";
67                 uses hostconfig-entry-attributes;
68             }
69         }
70     }
71 }