<p dir="ltr">Doesn't affect functionality, but curious if there's a reason these weren't added in the same order both times...</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 21, 2015, 20:52 Alexandre Derumier <<a href="mailto:aderumier@odiso.com">aderumier@odiso.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Alexandre Derumier <<a href="mailto:aderumier@odiso.com" target="_blank">aderumier@odiso.com</a>><br>
---<br>
src/PVE/INotify.pm | 10 ++++++++++<br>
1 file changed, 10 insertions(+)<br>
<br>
diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm<br>
index 22f01d1..61faa70 100644<br>
--- a/src/PVE/INotify.pm<br>
+++ b/src/PVE/INotify.pm<br>
@@ -971,6 +971,10 @@ sub __read_etc_network_interfaces {<br>
} else {<br>
$d->{type} = 'unknown';<br>
}<br>
+ } elsif ($iface =~ m/^(eth|bond)\d+.\d+$/) {<br>
+ $d->{type} = 'interface_vlan';<br>
+ } elsif ($iface =~ m/^vmbr\d+.\d+$/) {<br>
+ $d->{type} = 'bridge_vlan';<br>
} elsif ($iface =~ m/^lo$/) {<br>
$d->{type} = 'loopback';<br>
} else {<br>
@@ -1285,7 +1289,9 @@ NETWORKDOC<br>
loopback => 100000,<br>
eth => 200000,<br>
bond => 300000,<br>
+ interface_vlan => 350000,<br>
bridge => 400000,<br>
+ bridge_vlan => 500000,<br>
};<br>
<br>
my $lookup_type_prio = sub {<br>
@@ -1306,6 +1312,10 @@ NETWORKDOC<br>
$pri = $if_type_hash->{bond} + $alias;<br>
} elsif ($iface =~ m/^vmbr\d+$/) {<br>
$pri = $if_type_hash->{bridge} + $alias;<br>
+ } elsif ($iface =~ m/^vmbr\d+.\d+$/) {<br>
+ $pri = $if_type_hash->{bridge_vlan} + $alias;<br>
+ } elsif ($iface =~ m/^(eth|bond)\d+.\d+$/) {<br>
+ $pri = $if_type_hash->{interface_vlan} + $alias;<br>
}<br>
<br>
return $pri || ($if_type_hash->{unknown} + $alias);<br>
--<br>
2.1.4<br>
<br>
_______________________________________________<br>
pve-devel mailing list<br>
<a href="mailto:pve-devel@pve.proxmox.com" target="_blank">pve-devel@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel" rel="noreferrer" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel</a><br>
</blockquote></div>