2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
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
8 module neutron-subnets {
12 namespace "urn:opendaylight:neutron-subnets";
14 prefix neutron-subnets;
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-constants { prefix "constants"; }
22 organization "OpenDaylight Neutron Group";
24 contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
26 description "This YANG module defines Openstack Neutron Subnets model";
28 revision "2015-07-12" {
30 "OpenDaylight Beryllium release";
33 grouping subnet-attributes {
36 description "network this subnet is associated with.";
39 description "IP version";
41 base "constants:ip-version-base";
46 description "cidr representing IP range for this subnet, based on IP version";
50 description "default gateway used by devices in this subnet";
52 leaf-list dns-nameservers {
54 description "DNS name servers used by hosts in this subnet.";
55 // neutron subnet-create test-net1 40.0.0.0/24 --dns-nameservers list=true 8.8.8.7 8.8.8.8 } }
57 leaf ipv6-address-mode {
59 description "neutron subnet-create --ip-version 6 --ipv6_ra_mode off --ipv6_address_mode
60 off NETWORK CIDR neutron subnet-create --ip-version 6 --ipv6_ra_mode
61 off --ipv6_address_mode dhcpv6-stateful NETWORK CIDR neutron subnet-create
62 --ip-version 6 --ipv6_ra_mode slaac --ipv6_address_mode slaac
63 NETWORK CIDR neutron subnet-create --ip-version 6 --ipv6_ra_mode
64 dhcpv6-stateful --ipv6_address_mode off NETWORK CIDR neutron subnet-create
65 --ip-version 6 --ipv6_ra_mode dhcpv6-stateless --ipv6_address_mode
66 dhcpv6-stateless NETWORK CIDR Note: can't find this in the spec
67 but OS is sending it with a null value.";
69 base "constants:dhcpv6-base";
73 description "TODO can't find this in the spec but OS sends it with a null
76 base "constants:dhcpv6-base";
79 list allocation-pools {
80 description "Sub-ranges of cidr available for dynamic allocation to ports";
90 description "Routes that should be used by devices with IPs from this subnet
91 (not including local subnet route).";
102 description "Specifies whether DHCP is enabled for this subnet or not.";
106 grouping subnets-attributes {
110 uses attrs:base-attributes;
111 uses subnet-attributes;