@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<DhcpLease> |
getDhcpLeases()
Deprecated.
since 2.6. Use
getDhcpLeases(String ifaceName) instead. |
java.util.List<DhcpLease> |
getDhcpLeases(java.lang.String ifaceName)
Obtains the DHCP Lease values assigned by a DHCP server running on a given
network interface
|
java.util.List<NetConfig> |
getFirewallConfiguration()
Gets the firewall configuration of the system as currently specified
|
java.util.List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> |
getNetworkInterfaceConfigs()
Deprecated.
since 2.4. Use
getNetworkInterfaceConfigs(boolean
recompute) instead. |
java.util.List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> |
getNetworkInterfaceConfigs(boolean recompute)
Returns a list of all of the configurations associated with all of the
interfaces on
the system and their current values.
|
java.util.List<NetConfig> |
getNetworkInterfaceConfigs(java.lang.String interfaceName)
Deprecated.
since 2.4. Use
getNetworkInterfaceConfigs(tring
interfaceName, boolean recompute) instead. |
java.util.List<NetConfig> |
getNetworkInterfaceConfigs(java.lang.String interfaceName,
boolean recompute)
Returns the configuration information for the specified NetworkInterface
name.
|
java.lang.String |
getWifiCountryCode()
Obtains information for WiFi Country code.
|
java.util.List<WifiChannel> |
getWifiFrequencies(java.lang.String ifaceName)
Obtains information for WiFi Frequencies.
|
java.util.List<WifiHotspotInfo> |
getWifiHotspotList(java.lang.String ifaceName)
Obtains information for WiFi hotspots in range.
|
boolean |
isWifiDFS(java.lang.String ifaceName)
Information on Dynamic Frequencies Selection
|
boolean |
isWifiIEEE80211AC(java.lang.String ifaceName)
Information on WiFi 802.11ac
|
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.
|
void |
setFirewallNatConfiguration(java.util.List<FirewallNatConfig> natConfigs)
Deprecated.
Since 2.4
|
void |
setFirewallOpenPortConfiguration(java.util.List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration)
Deprecated.
Since 2.4
|
void |
setFirewallPortForwardingConfiguration(java.util.List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration)
Deprecated.
Since 2.4
|
void |
updateEthernetInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
int mtu,
java.util.List<NetConfig> netConfigs)
Deprecated.
Since 2.4. Use the
ConfigurationService to update the
configuration of an Ethernet interface. |
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)
Deprecated.
Since 2.4. Use the
ConfigurationService to update the
configuration of a Modem interface. |
void |
updateWifiInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
WifiAccessPoint accessPoint,
java.util.List<NetConfig> netConfigs)
Deprecated.
Since 2.4. Use the
ConfigurationService to update the
configuration of a Wifi interface. |
boolean |
verifyWifiCredentials(java.lang.String ifaceName,
WifiConfig wifiConfig,
int tout)
Verifies WiFi credentials by trying to establish connection with access
point.
|
@Deprecated java.util.List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetworkInterfaceConfigs() throws KuraException
getNetworkInterfaceConfigs(boolean
recompute) instead.KuraException@Deprecated java.util.List<NetConfig> getNetworkInterfaceConfigs(java.lang.String interfaceName) throws KuraException
getNetworkInterfaceConfigs(tring
interfaceName, boolean recompute) instead.interfaceName - KuraException@Deprecated
void updateEthernetInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
int mtu,
java.util.List<NetConfig> netConfigs)
throws KuraException
ConfigurationService to update the
configuration of an Ethernet interface.interfaceName - - name of the Ethernet interfaceautoConnect - - specifies the auto-connect value for the interfacemtu - - required MTU for the interface, -1 to keep the
automatic defaultKuraException@Deprecated
void updateWifiInterfaceConfig(java.lang.String interfaceName,
boolean autoConnect,
WifiAccessPoint accessPoint,
java.util.List<NetConfig> netConfigs)
throws KuraException
ConfigurationService to update the
configuration of a Wifi interface.interfaceName - - name of the wifi interfaceautoConnect - - specifies the auto-connect value for the interfaceKuraException@Deprecated
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)
throws KuraException
ConfigurationService to update the
configuration of a Modem interface.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
KuraException@Deprecated void setFirewallOpenPortConfiguration(java.util.List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration - A list of FirewallOpenPortConfigIP Objects
representing the configuration to setKuraException@Deprecated void setFirewallPortForwardingConfiguration(java.util.List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration - A list of FirewallPortForwardConfigIP Objects
representing the configuration to setKuraException@Deprecated void setFirewallNatConfiguration(java.util.List<FirewallNatConfig> natConfigs) throws KuraException
natConfigs - A list of FirewallNatConfig Objects representing the
configuration to setKuraExceptionvoid manageFirewall(java.lang.String gatewayIface)
throws KuraException
gatewayIface - The new gateway interface that is now active as the WAN
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)java.util.List<WifiChannel> getWifiFrequencies(java.lang.String ifaceName) throws KuraException
ifaceName - - name of WiFi interfaceKuraExceptionjava.lang.String getWifiCountryCode()
throws KuraException
KuraExceptionboolean isWifiDFS(java.lang.String ifaceName)
throws KuraException
ifaceName - - name of WiFi interfaceKuraExceptionboolean isWifiIEEE80211AC(java.lang.String ifaceName)
throws KuraException
ifaceName - - name of WiFi interfaceKuraException@Deprecated java.util.List<DhcpLease> getDhcpLeases() throws KuraException
getDhcpLeases(String ifaceName) instead.KuraExceptionjava.util.List<DhcpLease> getDhcpLeases(java.lang.String ifaceName) throws KuraException
ifaceName - the name of the network interfaceKuraExceptionjava.util.List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetworkInterfaceConfigs(boolean recompute) throws KuraException
recompute: - if true the configuration and current values are
recomputed. Otherwise, a cached value is returnedKuraExceptionjava.util.List<NetConfig> getNetworkInterfaceConfigs(java.lang.String interfaceName, boolean recompute) throws KuraException
interfaceName: - the name of the network interfacerecompute: - if true the configuration are recomputed. Otherwise, a
cached value is returnedKuraException