Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default port for encapsulation #255

Open
saeed-mcu opened this issue Jul 17, 2024 · 3 comments
Open

Change default port for encapsulation #255

saeed-mcu opened this issue Jul 17, 2024 · 3 comments

Comments

@saeed-mcu
Copy link

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
Copy link
Collaborator

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

@saeed-mcu
Copy link
Author

@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
Copy link
Collaborator

Agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants