@ProviderType
public interface NetworkAdminService
| Modifier and Type | Method and Description |
|---|---|
void |
disableInterface(java.lang.String interfaceName)
Disables the specified interface.
|
void |
enableInterface(java.lang.String interfaceName,
boolean dhcp)
Enables the specified interface.
|
java.util.List<NetConfig> |
getFirewallConfiguration()
Gets the firewall configuration of the system as currently specified
|
java.util.List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> |
getNetworkInterfaceConfigs()
Returns a list of all of the configurations associated with all of the interfaces on
the system.
|
java.util.List<NetConfig> |
getNetworkInterfaceConfigs(java.lang.String interfaceName)
Returns the configuration information for the specified NetworkInterface name.
|
java.util.List<WifiHotspotInfo> |
getWifiHotspotList(java.lang.String ifaceName)
Obtains information for WiFi hotspots in range.
|
java.util.Map<java.lang.String,WifiHotspotInfo> |
getWifiHotspots(java.lang.String ifaceName)
Deprecated.
|
void |
manageDhcpClient(java.lang.String interfaceName,
boolean enable)
Used to control DHCP clients on specified interfaces.
|
void |
manageDhcpServer(java.lang.String interfaceName,
boolean enable)
Used to control DHCP servers on specified interfaces.
|
void |
manageFirewall(java.lang.String gatewayIface)
Updates the Firewall configuration based on current environmental conditions.
|
void |
renewDhcpLease(java.lang.String interfaceName)
Releases current IP address and acquires a new lease for the provided interface.
|
boolean |
rollbackDefaultConfiguration()
Deprecated.
|
boolean |
rollbackDefaultFirewallConfiguration()
Deprecated.
|
void |
setFirewallNatConfiguration(java.util.List<FirewallNatConfig> natConfigs) |
void |
setFirewallOpenPortConfiguration(java.util.List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration)
Sets the 'open port' portion of the firewall configuration
|
void |
setFirewallPortForwardingConfiguration(java.util.List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration)
Sets the 'port forwarding' portion of the firewall configuration
|
void |
updateEthernetInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
int mtu,
java.util.List<NetConfig> netConfigs)
Updates the configuration of the specified EthernetInterface.
|
void |
updateModemInterfaceConfig(java.lang.String interfaceName,
java.lang.String serialNum,
java.lang.String modemId,
int pppNumber,
boolean autoConnect,
int mtu,
java.util.List<NetConfig> netConfigs)
Updates the configuration of the specified ModemInterface.
|
void |
updateWifiInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
WifiAccessPoint accessPoint,
java.util.List<NetConfig> netConfigs)
Updates the configuration of the specified WifiInterface.
|
boolean |
verifyWifiCredentials(java.lang.String ifaceName,
WifiConfig wifiConfig,
int tout)
Verifies WiFi credentials by trying to establish connection with access point.
|
java.util.List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetworkInterfaceConfigs() throws KuraException
KuraExceptionjava.util.List<NetConfig> getNetworkInterfaceConfigs(java.lang.String interfaceName) throws KuraException
interfaceName - KuraExceptionvoid updateEthernetInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
int mtu,
java.util.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 defaultKuraExceptionvoid updateWifiInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
WifiAccessPoint accessPoint,
java.util.List<NetConfig> netConfigs)
throws KuraException
interfaceName - - name of the wifi interfaceautoConnect - - specifies the auto-connect value for the interfaceKuraExceptionvoid updateModemInterfaceConfig(java.lang.String interfaceName,
java.lang.String serialNum,
java.lang.String modemId,
int pppNumber,
boolean autoConnect,
int mtu,
java.util.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(java.lang.String interfaceName,
boolean dhcp)
throws KuraException
interfaceName - - name of the interface to be enabled.KuraExceptionvoid disableInterface(java.lang.String interfaceName)
throws KuraException
interfaceName - - name of the interface to be disabled.KuraExceptionvoid manageDhcpClient(java.lang.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(java.lang.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(java.lang.String interfaceName)
throws KuraException
interfaceName - The interface on which to renew the leaseKuraExceptionjava.util.List<NetConfig> getFirewallConfiguration() throws KuraException
KuraExceptionvoid setFirewallOpenPortConfiguration(java.util.List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration - A list of FirewallOpenPortConfigIP Objects representing the configuration to setKuraExceptionvoid setFirewallPortForwardingConfiguration(java.util.List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration - A list of FirewallPortForwardConfigIP Objects representing the configuration to setKuraExceptionvoid setFirewallNatConfiguration(java.util.List<FirewallNatConfig> natConfigs) throws KuraException
KuraExceptionvoid manageFirewall(java.lang.String gatewayIface)
throws KuraException
gatewayIface - The new gateway interface that is now active as the WAN interfaceKuraException@Deprecated java.util.Map<java.lang.String,WifiHotspotInfo> getWifiHotspots(java.lang.String ifaceName) throws KuraException
ifaceName - - name of WiFi interfaceKuraExceptionjava.util.List<WifiHotspotInfo> getWifiHotspotList(java.lang.String ifaceName) throws KuraException
ifaceName - - name of WiFi interfaceKuraExceptionboolean verifyWifiCredentials(java.lang.String ifaceName,
WifiConfig wifiConfig,
int tout)
ifaceName - - name of WiFi interfacewifiConfig - WiFi configurationtout - - timeout (in seconds)@Deprecated
boolean rollbackDefaultConfiguration()
throws KuraException
KuraException@Deprecated
boolean rollbackDefaultFirewallConfiguration()
throws KuraException
KuraException