Merge remote-tracking branch 'origin/master' into merge-branch
[netvirt.git] / resources / openstack / make-vxlan-net.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 Cisco Systems, Inc.
4 #
5 # This program and the accompanying materials are made available under the
6 # terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 # and is available at http://www.eclipse.org/legal/epl-v10.html
8 #
9 # Authors : Thomas Bachman
10
11 #
12 # Create a neutron network and subnet for VXLAN (hard-coded)
13 #
14
15 neutron net-create vxlan-net --tenant_id  $(keystone tenant-list | grep '\sadmin' | awk '{print $2}') --provider:network_type vxlan --provider:segmentation_id 1300
16 neutron  subnet-create vxlan-net 10.100.1.0/24 --name vxlan-net