we need to match link+ rule from iptables rules, and need to have a name different
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 13 May 2014 12:33:49 +0000 (14:33 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 May 2014 12:33:49 +0000 (14:33 +0200)
than link(\d+)i(\d+), for distinguished bridge/ovs interface unplug

Based on patch from Alexandre, but I prefer "link${vmid}o${devid}"

data/PVE/Network.pm

index bacca24..dffa764 100644 (file)
@@ -89,7 +89,7 @@ my $compute_fwbr_names = sub {
     my $fwbr = "fwbr${vmid}i${devid}";
     my $vethfw = "link${vmid}i${devid}";
     my $vethfwpeer = "link${vmid}p${devid}";
     my $fwbr = "fwbr${vmid}i${devid}";
     my $vethfw = "link${vmid}i${devid}";
     my $vethfwpeer = "link${vmid}p${devid}";
-    my $ovsintport = "fwint${vmid}i${devid}";
+    my $ovsintport = "link${vmid}o${devid}";
 
     return ($fwbr, $vethfw, $vethfwpeer, $ovsintport);
 };
 
     return ($fwbr, $vethfw, $vethfwpeer, $ovsintport);
 };