fixed probe create
This commit is contained in:
parent
7b7bd1a540
commit
19356b74cf
|
@ -84,6 +84,14 @@ public class NoAuthProbeService {
|
||||||
dispName += " probe";
|
dispName += " probe";
|
||||||
probe.setDisplayName(dispName);
|
probe.setDisplayName(dispName);
|
||||||
|
|
||||||
|
String addrStr = netMap.get("address");
|
||||||
|
|
||||||
|
String[] addrArr = addrStr.split("\\|");
|
||||||
|
|
||||||
|
System.out.println(addrArr);
|
||||||
|
|
||||||
|
probe.setCidr(addrArr[0]);
|
||||||
|
|
||||||
probes.add(probe);
|
probes.add(probe);
|
||||||
noAuth.setStatus(new MetaNoAuthProbeStatus((short) 1));
|
noAuth.setStatus(new MetaNoAuthProbeStatus((short) 1));
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,4 +124,13 @@ public class NoAuthProbeServiceTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void ssss() {
|
||||||
|
String ss = "192.168.1.106/24|fe80::36c0:6c3e:6006:dd23/64";
|
||||||
|
|
||||||
|
String[] sss = ss.split("\\|");
|
||||||
|
|
||||||
|
System.out.println(sss[0]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user