Пример #1
0
 void populate() {
   _ipv4IpText.setText(_interface.getIPAddress());
   _ipv4MaskText.setText(_interface.getNetworkMask());
   _ipv6IpText.setText(_interface.getIPV6Address());
   _ipv6MaskText.setText(_interface.getIPV6NetworkMaskPrefixLength() + "");
   if (_dhcp == null) return;
   _enabledCheckBox.setChecked(_dhcp.getEnabled());
   _addressText.setText(_dhcp.getIPAddress());
   _maskText.setText(_dhcp.getNetworkMask());
   _lowerBoundText.setText(_dhcp.getLowerIP());
   _upperBoundText.setText(_dhcp.getUpperIP());
 }
Пример #2
0
 @Override
 protected Tuple<IHostNetworkInterface, IDHCPServer> work(IHostNetworkInterface... params)
     throws Exception {
   params[0].getIPAddress();
   params[0].getNetworkMask();
   params[0].getIPV6Address();
   params[0].getIPV6NetworkMaskPrefixLength();
   IDHCPServer dhcp = _vmgr.findDHCPServerByNetworkName(params[0].getNetworkName());
   if (dhcp != null) {
     dhcp.getIPAddress();
     dhcp.getLowerIP();
     dhcp.getUpperIP();
     dhcp.getNetworkMask();
   }
   return new Tuple<IHostNetworkInterface, IDHCPServer>(params[0], dhcp);
 }