public interface NetworkAdminService
| Modifier and Type | Method and Description |
|---|---|
void |
disableInterface(String interfaceName)
Disables the specified interface.
|
void |
enableInterface(String interfaceName,
boolean dhcp)
Enables the specified interface.
|
List<NetConfig> |
getFirewallConfiguration()
Gets the firewall configuration of the system as currently specified
|
List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> |
getNetworkInterfaceConfigs()
Returns a list of all of the configurations associated with all of the interfaces on
the system.
|
List<NetConfig> |
getNetworkInterfaceConfigs(String interfaceName)
Returns the configuration information for the specified NetworkInterface name.
|
Map<String,WifiHotspotInfo> |
getWifiHotspots(String ifaceName) |
void |
manageDhcpClient(String interfaceName,
boolean enable)
Used to control DHCP clients on specified interfaces.
|
void |
manageDhcpServer(String interfaceName,
boolean enable)
Used to control DHCP servers on specified interfaces.
|
void |
manageFirewall(String gatewayIface)
Updates the Firewall configuration based on current environmental conditions.
|
void |
renewDhcpLease(String interfaceName)
Releases current IP address and acquires a new lease for the provided interface.
|
void |
setFirewallNatConfiguration(List<FirewallNatConfig> natConfigs) |
void |
setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration)
Sets the 'open port' portion of the firewall configuration
|
void |
setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration)
Sets the 'port forwarding' portion of the firewall configuration
|
void |
updateEthernetInterfaceConfig(String interfaceName,
boolean autoConnect,
int mtu,
List<NetConfig> netConfigs)
Updates the configuration of the specified EthernetInterface.
|
void |
updateModemInterfaceConfig(String interfaceName,
String serialNum,
String modemId,
int pppNumber,
boolean autoConnect,
int mtu,
List<NetConfig> netConfigs)
Updates the configuration of the specified ModemInterface.
|
void |
updateWifiInterfaceConfig(String interfaceName,
boolean autoConnect,
WifiAccessPoint accessPoint,
List<NetConfig> netConfigs)
Updates the configuration of the specified WifiInterface.
|
boolean |
verifyWifiCredentials(String ifaceName,
WifiConfig wifiConfig,
int tout) |
List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetworkInterfaceConfigs() throws KuraException
KuraExceptionList<NetConfig> getNetworkInterfaceConfigs(String interfaceName) throws KuraException
interfaceName - KuraExceptionvoid updateEthernetInterfaceConfig(String interfaceName, boolean autoConnect, int mtu, List<NetConfig> netConfigs) throws KuraException
interfaceName - - name of the Ethernet interfaceautoConnect - - specifies the auto-connect value for the interfacemtu - - required MTU for the interface, -1 to keep the automatic defaultnetConfig4 - - the IPv4 configurationnetConfig6 - - the IPv6 configurationKuraExceptionvoid updateWifiInterfaceConfig(String interfaceName, boolean autoConnect, WifiAccessPoint accessPoint, List<NetConfig> netConfigs) throws KuraException
interfaceName - - name of the wifi interfaceautoConnect - - specifies the auto-connect value for the interfacemtu - - required MTU for the interface, -1 to keep the automatic defaultnetConfig4 - - the IPv4 configurationnetConfig6 - - the IPv6 configurationKuraExceptionvoid updateModemInterfaceConfig(String interfaceName, String serialNum, String modemId, int pppNumber, boolean autoConnect, int mtu, List<NetConfig> netConfigs) throws KuraException
interfaceName - - name of the Modem interfaceserialNum - - the modem's serial numbermodemId - - user string to identify the modempppNumber - - ppp number to use for this interfaceautoConnect - - specifies the auto-connect value for the interfacemtu - - required MTU for the interface, -1 to keep the automatic defaultnetConfigs - - list of NetConfigs for this interfaceKuraExceptionvoid enableInterface(String interfaceName, boolean dhcp) throws KuraException
interfaceName - - name of the interface to be enabled.KuraExceptionvoid disableInterface(String interfaceName) throws KuraException
interfaceName - - name of the interface to be disabled.KuraExceptionvoid manageDhcpClient(String interfaceName, boolean enable) throws KuraException
interfaceName - The interface of the DHCP server to modify the stateenable - Whether to enable or disable the DHCP clientKuraExceptionvoid manageDhcpServer(String interfaceName, boolean enable) throws KuraException
interfaceName - The interface of the DHCP server to modify the stateenable - Whether to enable or disable the DHCP serverKuraExceptionvoid renewDhcpLease(String interfaceName) throws KuraException
interfaceName - The interface on which to renew the leaseKuraExceptionList<NetConfig> getFirewallConfiguration() throws KuraException
KuraExceptionvoid setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration - A list of FirewallOpenPortConfigIP Objects representing the configuration to setKuraExceptionvoid setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration - A list of FirewallPortForwardConfigIP Objects representing the configuration to setKuraExceptionvoid setFirewallNatConfiguration(List<FirewallNatConfig> natConfigs) throws KuraException
KuraExceptionvoid manageFirewall(String gatewayIface) throws KuraException
gatewayIface - The new gateway interface that is now active as the WAN interfaceKuraExceptionMap<String,WifiHotspotInfo> getWifiHotspots(String ifaceName) throws KuraException
KuraExceptionboolean verifyWifiCredentials(String ifaceName, WifiConfig wifiConfig, int tout)
Copyright © 2015. All Rights Reserved.