mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CA-143886: Sort VM's IP address with IPv4 addresses first
This commit is contained in:
parent
ce8dc9bc9c
commit
460c37317c
@ -55,6 +55,7 @@ namespace XenAPI
|
||||
// [["0/ip", <IPv4 address>], ["0/ipv6/0", <IPv6 address>], ["0/ipv6/1", <IPv6 address>]]
|
||||
List<string> addresses = (from network in vmGuestMetrics.networks
|
||||
where network.Key.StartsWith(String.Format("{0}/ip", this.device))
|
||||
orderby network.Key
|
||||
select network.Value).ToList();
|
||||
|
||||
if (addresses.Count > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user