Hi All,
I have been testing ovs with openflow on proxmox lately using faucet (faucet.nz) as the sdn controller. It works great, installation and configuration is simple and straightforward.
The issue I am running into is that Proxmox changes the ofport on ovs when for example the vm is reset.
When I first fire up a vm, it uses the next available ovs port, let's say 2. Then I can configure the sdn controller with vlan and security/nfv features for that port. When I reset the vm, it shows back up on port 3 which isn't configured in the sdn yet.
My question is simply if there is an easy way to tell proxmox to "fix" the ofport number. When using ovs manually, the port can be requested like this for example:
-- add-port vmbr1 veth-host1 -- set interface veth-host1 ofport_request=2
This guarantees me that unless the port is in use of course it will show up on 2.
Thank you for the help,
Gera
Also, i configure the controller as post-up which works reliably like this:
auto vmbr1
iface vmbr1 inet static
I have been testing ovs with openflow on proxmox lately using faucet (faucet.nz) as the sdn controller. It works great, installation and configuration is simple and straightforward.
The issue I am running into is that Proxmox changes the ofport on ovs when for example the vm is reset.
When I first fire up a vm, it uses the next available ovs port, let's say 2. Then I can configure the sdn controller with vlan and security/nfv features for that port. When I reset the vm, it shows back up on port 3 which isn't configured in the sdn yet.
My question is simply if there is an easy way to tell proxmox to "fix" the ofport number. When using ovs manually, the port can be requested like this for example:
-- add-port vmbr1 veth-host1 -- set interface veth-host1 ofport_request=2
This guarantees me that unless the port is in use of course it will show up on 2.
Thank you for the help,
Gera
Also, i configure the controller as post-up which works reliably like this:
auto vmbr1
iface vmbr1 inet static
address 10.10.10.10
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports ens19
post-up ovs-vsctl -- set bridge ${IFACE} other-config:datapath-id=0000000000000002 -- set bridge ${IFACE} other-config:disable-in-band=true -- set bridge ${IFACE} fail_mode=secure -- set-controller ${IFACE} tcp:192.168.1.58:6653 tcp:192.168.1.58:6654
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports ens19
post-up ovs-vsctl -- set bridge ${IFACE} other-config:datapath-id=0000000000000002 -- set bridge ${IFACE} other-config:disable-in-band=true -- set bridge ${IFACE} fail_mode=secure -- set-controller ${IFACE} tcp:192.168.1.58:6653 tcp:192.168.1.58:6654