private void addReportedIpv4Configuration(ReportedConfigurations result) {
if (!isIpv4PrimaryAddressExist()) {
return;
}
Ipv4BootProtocol definedIpv4BootProtocol = getIpv4PrimaryAddress().getBootProtocol();
result.add(ReportedConfigurationType.IPV4_BOOT_PROTOCOL, iface.getIpv4BootProtocol(), definedIpv4BootProtocol);
if (definedIpv4BootProtocol == Ipv4BootProtocol.STATIC_IP && iface.getIpv4BootProtocol() == definedIpv4BootProtocol) {
result.add(ReportedConfigurationType.IPV4_NETMASK,
iface.getIpv4Subnet(), getIpv4PrimaryAddress().getNetmask(), isIpv4NetworkSubnetInSync());
result.add(ReportedConfigurationType.IPV4_ADDRESS,
iface.getIpv4Address(), getIpv4PrimaryAddress().getAddress());
result.add(ReportedConfigurationType.IPV4_GATEWAY,
iface.getIpv4Gateway(), getIpv4PrimaryAddress().getGateway(), isIpv4GatewayInSync());
}
}