[pve-devel] [PATCH pve-network 1/1] Update vxlan plugin to emit local tunnel IP

DERUMIER, Alexandre alexandre.derumier at groupe-cyllene.com
Wed Oct 9 16:49:32 CEST 2024


patch logic seem to be ok for me. (I don't have tested it)

>>
>>     for my $address (@peers) {
>>- next if $address eq $ifaceip;
>>- push @iface_config, "vxlan_remoteip $address";
>>+     push @iface_config, "vxlan_local_tunnelip $address" if $address eq $ifaceip;
>>+        push @iface_config, "vxlan_remoteip $address" if $address ne $ifaceip;
>>     }

just be carefull about the identation and maybe use a if/else




More information about the pve-devel mailing list