ovn-org / ovn

Open Virtual Network
Apache License 2.0
488 stars 243 forks source link

Change default port for encapsulation #255

Open saeed-mcu opened 1 month ago

saeed-mcu commented 1 month ago

Hi Is there any way to change default port for encapsulation protocol , I have another overlay network that use default port for geneve and I want to use both of them.

I can change IP with command : ovs-vsctl set open . external_ids:ovn-encap-ip=192.168.10.1 But I want something like below for port: ovs-vsctl set open . external_ids:ovn-encap-port=6081

numansiddique commented 1 month ago

It is possible. We have this commit which supported this - e21c3a3e1eaf113b735c0e5aff5c8e723d701723

But unfortunately it didn't provide the option to conifgure like you mentioned above

i.e ovs-vsctl set open . external_ids:ovn-encap-port=6082 (for example).

I think we should add this support in OVN.

Meanwhile in your deployment, you can do something like below to configure dst port. You'd need access to OVN southbound database.

for i in $(ovn-sbctl --bare --columns _uuid list encap); do ovn-sbctl set encap $i options:dst_port=6083; done

saeed-mcu commented 1 month ago

@numansiddique Thank you for your answer it worked But I think a simpler method can be used for this like : ovs-vsctl set open . external_ids:ovn-encap-port=6081

numansiddique commented 1 month ago

Agree.