[pve-devel] random openvz veth name question ?

Dietmar Maurer dietmar at proxmox.com
Fri May 16 10:35:26 CEST 2014


> I would like to known if we want to support firewall for random openvz veth
> name ?

not really (no).
 
> (by the way, why do we allow to setup random name ?)

because it is possible

> Currently, my openvz patchs hang on tap_plug (cleanup_firewall_bridge)/unplug
> (create_firewall_bridge_linux), because of
> 
> parse_tap_devive_name{
>     if ($iface =~ m/^tap(\d+)i(\d+)$/) {
>         $vmid = $1;
>         $devid = $2;
>     } elsif ($iface =~ m/^veth(\d+)\.(\d+)$/) {
>         $vmid = $1;
>         $devid = $2;
>     } else {
>         die "wrong interface name $iface";
>     }
> 
> }
> 
> 
> I think I can easily fix it for unfirewalled tap. (so it'll not break current setup).
> 
> but do we want to allow firewall for random name ?
> 
> create "fwln|fwbr".randomname ?  (I'm afraid of too big random name too)

no - feel free to remove that feature.




More information about the pve-devel mailing list