I do not understand this patch - questions inline:

> Signed-off-by: Alexandre Derumier <[email protected]>
> ---
>  data/PVE/Network.pm |   57
> +++++++++++++++++++++++++++++++++++++++++++--------
>  1 file changed, 49 insertions(+), 8 deletions(-)
> 
> diff --git a/data/PVE/Network.pm b/data/PVE/Network.pm index
> 4677bf9..fa56c8b 100644
> --- a/data/PVE/Network.pm
> +++ b/data/PVE/Network.pm
> @@ -88,17 +88,19 @@ sub tap_plug {
>  }
> 
>  sub tap_unplug {
> -    my ($iface, $bridge, $tag) = @_;> -
> -    if (-d "/sys/class/net/$bridge/bridge") {
> -     $bridge .= "v$tag" if $tag;
> +    my ($iface, $bridge, $tag, $tapfirewall) = @_;

Why do we need this additional parameter $tapfirewall? I can't see where you 
use it?

> +    my $path= "/sys/class/net/$iface/brport/bridge";
> +    if (-l $path) {
> +     $bridge = basename(readlink($path));

Now you overwrite the $bridge parameter. If we do not need that parameter, it 
is maybe better
to remove it from the method signature completely? Parameter $tag is also 
unused?
So maybe this should be something like:

 sub tap_unplug {
    my ($iface) = @_;
 ....


_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to