2 * Copyright (c) 2016 Cisco 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
9 module l2-l3-forwarding {
12 namespace "urn:opendaylight:groupbasedpolicy:forwarding:l2_l3";
13 prefix "l2-l3-forwarding";
15 import forwarding { prefix forwarding; revision-date 2016-04-27; }
16 import renderer { prefix renderer; revision-date 2015-11-03; }
17 import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
18 import yang-ext {prefix ext; revision-date 2013-07-09;}
20 revision "2016-04-27" {
26 base forwarding:context-type;
29 identity l2-bridge-domain {
30 base forwarding:context-type;
33 identity l2-flood-domain {
34 base forwarding:context-type;
38 base forwarding:network-domain;
41 identity mac-address-type {
42 description "Values by MAC address type MUST be compatible with type ietf-yang-types:mac-address.
43 This address type can be used only if forwarding:context-type is l2-bridge-domain.";
44 base forwarding:address-type;
47 identity ip-prefix-type {
48 description "Values by IP prefix type MUST be compatible with type ietf-inet-types:ip-prefix.
49 This address type can be used only if forwarding:context-type is l3-context.";
50 base forwarding:address-type;
55 when "../forwarding:network-domain-type = 'l2-l3-forwarding:subnet'";
57 description "The IP prefix that defines the subnet";
60 leaf virtual-router-ip {
62 "IP address to use for a virtual gateway router
63 for the subnet, if desired.";
68 "External gateways for subnets we serve,
69 includes prefixes for static routing";
84 augment "/forwarding:forwarding/forwarding:forwarding-by-tenant/forwarding:network-domain" {
85 ext:augment-identifier "subnet-augment-forwarding";
89 augment "/renderer:renderers/renderer:renderer/renderer:renderer-policy/renderer:configuration/renderer:renderer-forwarding/renderer:renderer-forwarding-by-tenant/renderer:renderer-network-domain" {
90 ext:augment-identifier "subnet-augment-renderer";