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
12 namespace "urn:opendaylight:neutron-L3";
16 import ietf-yang-types { prefix "yang";}
17 import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; }
18 import neutron-attrs { prefix "attrs"; }
20 organization "OpenDaylight Neutron Group";
22 contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
24 description "This YANG module defines attributes used by Openstack Neutron L3 modules.";
26 revision "2015-07-12" {
28 "OpenDaylight Beryllium release";
31 grouping L3-attributes {
33 description "whether this router is distributed or not.";
37 leaf gateway-port-id {
38 description "the port uuid holding the router's gateway address.";
42 description "list of routes for this router.";
43 key "destination nexthop";
45 description "Specifies a destination in CIDR format";
53 description "Contains the Router status.";
58 grouping L3-floatingip-attributes {
60 description "Contains the Router ID of this floatingip object.";
64 description "Contains the Port ID of the fixed IP address that will be
65 associated with this object.";
68 leaf floating-network-id {
69 description "The ID of the network associated with the floating IP.";
72 leaf floating-ip-address {
73 description "The floating IP address.";
76 leaf fixed-ip-address {
77 description "The fixed IP address associated with the floating IP.
78 If you intend to associate the floating IP with a fixed IP at
79 creation time, then you must indicate the identifier of the
80 internal port(using port-id object). If an internal port has
81 multiple associated IP addresses, the service chooses the first
82 IP unless you explicitly specify the parameter fixed_ip_address
83 to select a specific IP.";
88 description "The network status.";
92 grouping routers-attributes {
96 description "A logical entity for forwarding packets across internal subnets
97 and NATting them on external networks through an appropriate external
101 uses attrs:base-attributes;
102 uses attrs:admin-attributes;
104 container external_gateway_info {
105 leaf external-network-id {
106 description "The network_id, for the external gateways. If this is empty, then this
107 network does not have external access";
111 description "If true, it indicates that the router is performing snat on external access ";
115 list external-fixed-ips {
116 description "external fixed IPs for this router ";
117 key "subnet-id ip-address";
122 type inet:ip-address;
129 grouping floatingips-attributes {
130 container floatingips {
133 description "An external IP address that is mapped to a port that is
134 attached to an internal network.";
137 uses attrs:id-attributes;
138 uses L3-floatingip-attributes;