2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 module neutron-bgpvpns {
14 namespace "urn:opendaylight:neutron-bgpvpns";
16 prefix neutron-bgpvpns;
18 import ietf-yang-types { prefix "yang"; }
19 import neutron-attrs { prefix "attrs"; }
21 organization "OpenDaylight Neutron Group";
23 contact "Vishal Thapar <vishal.thapar@ericsson.com>";
25 description "This YANG module defines Openstack Liberty Neutron BGPVPN model";
27 revision "2015-09-03" {
29 "Initial version of Openstack Neutron Liberty BGPVPN model.";
32 identity bgpvpn-type-base {
34 "Base Network type for all Bgpvpn type identifiers.";
37 identity bgpvpn-type-l2 {
38 base bgpvpn-type-base;
40 "L2 bgpvpn type identity.";
42 identity bgpvpn-type-l3 {
43 base bgpvpn-type-base;
45 "L3 bgpvpn type identity.";
50 base bgpvpn-type-base;
53 "This type is used to refer to a Bgpvpn Type.";
56 grouping bgpvpn-attributes {
59 description "selection of the type of VPN. e.g. l3 or l2";
63 description "selection of technique used to implement VPN";
65 leaf-list route-targets {
67 description "route-targets";
69 leaf-list import-targets {
71 description "import RTs";
73 leaf-list export-targets {
75 description "export RTs";
77 leaf-list route-distinguishers {
79 description "list route-distinguishers";
83 description "globally assigned VxLanId";
87 description "auto-aggregate enabled or not";
92 description "list of networks this vpn is associated with.";
96 description "list of routers this vpn is associated with.";
100 grouping bgpvpns-attributes {
104 uses attrs:base-attributes;
105 uses attrs:admin-attributes;
106 uses bgpvpn-attributes;