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

luci-proto-vxlan: Luci generated configs save VXLAN peers as "vxlan_peers" but /lib/netifd/proto/vxlan.sh wants "vxlan_peer" #25518

Open
aebas opened this issue Dec 8, 2024 · 0 comments

Comments

@aebas
Copy link

aebas commented Dec 8, 2024

LuCI openwrt-23.05 branch (git-24.264.56413-c7a3562) /[ OpenWrt 23.05.5 (r24106-10cc5fcd00)]
luci-proto-vxlan - git-24.340.62040-d52505e

Hola,

Luci genera entradas para los peers de vxlan en bloques "vxlan_peers", pero /lib/netifd/proto/vxlan.sh espera que las configuraciones estén en "vxlan_peer". Sería necesario unificar la configuración.

vxlan.sh no puede ejecutar proto_vxlan_setup_peer() al no recibir la lista de peers

Por comodidad y fix rápido, cambiando /lib/netifd/proto/vxlan.sh para leer "vxlan_peers" lanza los comandos de "bridge fdb" sin romper las configuraciones generadas desde Luci.

Saludos,

Hi,

Luci generates vxlan peer entries as "vxlan_peers", but /lib/netifd/proto/vxlan.sh expects "vxlan_peer". Config entries labels must be unified.

vxlan.sh cannot trigger proto_vxlan_setup_peer() function because cannot read peer list

As quick fix and convenience, changing /lib/netifd/proto/vxlan.sh to read "vxlan_peers" triggers "bridge fdb" creation commands without break Luci generated configs.

BR,

Luci generated entry on /etc/config/network:
config vxlan_peers
option description 'peer1'
option vxlan 'vxlan10'
option dst 'x.x.x.x'
option port '4789'
option vni '10'

"Bad" line on /lib/netifd/proto/vxlan.sh:
Line 106: config_foreach proto_vxlan_setup_peer "vxlan_peer"

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

1 participant