1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. (c) Tim Irnich, Nikolas Hermanns, Christopher Price and others
7 .. Describe the specific features and how it is realised in the scenario in a brief manner
8 .. to ensure the user understand the context for the user guide instructions to follow.
10 This document provides an overview of how to work with the SDN VPN features in
13 Feature and API usage guidelines and example
14 ============================================
15 .. Describe with examples how to use specific features, provide API examples and details required to
16 .. operate the feature on the platform.
18 For the details of using OpenStack BGPVPN API, please refer to the documentation
19 at http://docs.openstack.org/developer/networking-bgpvpn/.
23 In the example we will show a BGPVPN associated to 2 neutron networks.
24 The BGPVPN will have the import and export routes in the way that it
25 imports its own Route. The outcome will be that vms sitting on these two
26 networks will be able to have a full L3 connectivity.
34 subnet_net1="10.10.10.0/24"
35 subnet_net2="10.10.11.0/24"
37 Create neutron networks and save network IDs:
40 neutron net-create --provider:network_type=local $net_1
41 export net_1_id=`echo "$rv" | grep " id " |awk '{print $4}'`
42 neutron net-create --provider:network_type=local $net_2
43 export net_2_id=`echo "$rv" | grep " id " |awk '{print $4}'`
45 Create neutron subnets:
48 neutron subnet-create $net_1 --disable-dhcp $subnet_net1
49 neutron subnet-create $net_2 --disable-dhcp $subnet_net2
54 neutron bgpvpn-create --route-distinguishers 100:100 --route-targets 100:2530 --name L3_VPN
56 Start VMs on both networks:
59 nova boot --flavor 1 --image <some-image> --nic net-id=$net_1_id vm1
60 nova boot --flavor 1 --image <some-image> --nic net-id=$net_2_id vm2
62 The VMs should not be able to see each other.
64 Associate to Neutron networks:
67 neutron bgpvpn-net-assoc-create L3_VPN --network $net_1_id
68 neutron bgpvpn-net-assoc-create L3_VPN --network $net_2_id
70 Now the VMs should be able to ping each other
74 Check neutron logs on the controller:
77 tail -f /var/log/neutron/server.log |grep -E "ERROR|TRACE"
79 Check Opendaylight logs:
82 tail -f /opt/opendaylight/data/logs/karaf.log
87 service opendaylight restart