ovn-org/ovn

Change default port for encapsulation

saeed-mcu opened this issue · 3 comments

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

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

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

@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

Agree.