File: create_network.sh

package info (click to toggle)
puppet-module-neutron 27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,772 kB
  • sloc: ruby: 13,048; python: 33; sh: 15; makefile: 10
file content (8 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/bash
# This example script shows how to create a simple subnet for Neutron.

source /root/openrc
neutron net-create mynet
neutron subnet-create --name mynet-subnet mynet 10.0.0.0/24
neutron router-create myrouter
neutron router-interface-add myrouter mynet-subnet