mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(ec2): report the network interface IPv6 address (#9027)
An ENI could have IPv6 addresses assigned while its top-level ipv6Address was missing from CreateNetworkInterface and DescribeNetworkInterfaces. The shared serializer now reports the first assigned address there, keeps the ipv6AddressesSet list, and omits the field when the interface has none. Ported from Emanuel Aseghehey's AndreKurait/floci#1239.
This commit is contained in:
1 parent
2ab20905a2
commit
a6a609d62f
3 files changed
+33
-1
No files matched your search
@@ -5508,6 +5508,9 @@ public class Ec2QueryHandler {
|
||||
}
|
||||
xml.end("privateIpAddressesSet");
|
||||
}
|
||||
if (ni.getIpv6Addresses() != null && !ni.getIpv6Addresses().isEmpty()) {
|
||||
xml.elem("ipv6Address", ni.getIpv6Addresses().getFirst());
|
||||
}
|
||||
xml.raw(ipv6AddressesSetXml(ni.getIpv6Addresses()));
|
||||
return xml.build();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user