/ryu-auto-vxlan

python-ryu application for automated vxlan tunnels

Primary LanguagePythonApache License 2.0Apache-2.0

python-ryu application for automated VxLAN

Experimental script for automatically creating vxlan pairs between virtual switches. Assumed topology is hub-spoke.

Please read the script before using.

Works with ryu version 4.10 or later.

Debian jessie instructions for hub

allow-ovs ovsbr0
iface ovsbr0 inet manual
  ovs_type OVSBridge
  ovs_extra set-controller ovsbr0 tcp:127.0.0.1:6633
  pre-up ovs-vsctl set-manager ptcp:6640
  mtu 1280
  address 10.1.10.2/24

Debian jessie instructions for spokes

allow-ovs ovsbr0
iface ovsbr0 inet dhcp
  ovs_type OVSBridge
  ovs_extra set-controller ovsbr0 tcp:10.1.10.2:6633
  pre-up ovs-vsctl set-manager ptcp:6640
  mtu 1280
  up ip route add 10.117.0.0/16 via 10.117.9.1 dev ovsbr0 
  down ip route del 10.117.0.0/16 via 10.117.9.1 dev ovsbr0