SDN VXLAN automation

pmisch

Member
Feb 6, 2020
11
1
23
46
Hi,

I've been using VLAN aware bridges and for my pplznet project I'm trying to switch to SDN with VXLAN.
There are currently 61 nodes that have peering between each other for simulating a mesh network, see:
https://wiki.junicast.de/en/pplznet/dev-environment/diagram

My goal is to fully automate my development environment, meaning I generate OpenWrt images which will be used for VM guests.
When I used VLAN the scripts looked like that:
Code:
qm set 100 --net0 virtio,bridge=vmbr1,tag=100

Now I would like to mass deploy OpenWrt nodes that have plenty of links between each other but with VXLAN.

As vxlan also seems to just generate bridges it looks like I can keep my code for setting the bridge and just remove the VLAN tag.

Now my question: Is there any way to automate the creation of VXLAN zones and vnet configs?
Currently I have two nodes in my cluster. Preferably I would like to use proxmox commands to handle this. This doesn't seem to be available though.
Instead I would use Ansible for that, but I can't find anything about how those VXLAN configurations are being handled under the hood.
Can I just write with Ansible to /etc/pve/sdn/zones.cfg and vnet.cfg? Do I need to reload the newly written config somewhere? What are the procedures here?
There is also /etc/network/interfaces.d/sdn. Do I just have to keep them in sync with Ansible?

Thank you
 
Hi,
currently they are no specific command line to configure sdn, it's only possible through rest api. (but I don't think that ansible/terraform/... have already support for sdn)

what you can do:

1) edit manually the /etc/pve/sdn/*.cfg , then apply config with "pvesh set /cluster/sdn"

or

2) create vnet iwth " pvesh create /cluster/sdn/vnets --vnet <vnetname> --zone <zonename> --tag <tagnumber> , then reload with "pvesh set /cluster/sdn"


the reload will generate /etc/network/interfaces.d/sdn locally on each node.
 
  • Like
Reactions: pmisch

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!