mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 19:17:52 +00:00
Change IP address from bytes to string per request from AP for DNS probe metrics
This commit is contained in:
@@ -1264,7 +1264,7 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
|
||||
}
|
||||
|
||||
try {
|
||||
InetAddress ipAddress = InetAddress.getByAddress(dnsProbeMetricStats.getServerIP().toByteArray());
|
||||
InetAddress ipAddress = InetAddress.getByName(dnsProbeMetricStats.getServerIP());
|
||||
dnsProbeMetric.setDnsServerIp(ipAddress);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Unable to get the DNS server IP.", e);
|
||||
|
||||
@@ -803,7 +803,7 @@ public class OpensyncExternalIntegrationCloudTest {
|
||||
InetAddress ip = InetAddress.getByName("192.168.1.1");
|
||||
|
||||
DNSProbeMetric dnsProbeMetric = DNSProbeMetric.getDefaultInstance().toBuilder().setLatency(10)
|
||||
.setState(StateUpDown.SUD_up).setServerIP(ByteString.copyFrom(ip.getAddress())).build();
|
||||
.setState(StateUpDown.SUD_up).setServerIP(ip.toString()).build();
|
||||
RADIUSMetrics radiusProbeMetric = RADIUSMetrics.getDefaultInstance().toBuilder().setLatencyAve(10).build();
|
||||
VLANMetrics vlanMetrics = VLANMetrics.getDefaultInstance().toBuilder().setDhcpLatency(10)
|
||||
.setDhcpState(StateUpDown.SUD_up).setVlanIF("vlan-1").setObsV200RadiusLatency(15)
|
||||
|
||||
Reference in New Issue
Block a user