File: create_network.sh

package info (click to toggle)
puppet-module-neutron 25.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,708 kB
  • sloc: ruby: 12,680; python: 38; sh: 15; makefile: 10
file content (8 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (5)
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