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<FirewallReverseNatConfig> |
getFirewallReverseNatConfiguration(String sourceIface) |
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 |
manageDhcpServer(String interfaceName,
boolean enable,
NetworkPair<IP4Address> allowedNetwork)
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 |
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 |
setFirewallReverseNatConfiguration(String inIface,
List<FirewallReverseNatConfig> reverseNatConfigs) |
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
KuraException
List<NetConfig> getNetworkInterfaceConfigs(String interfaceName) throws KuraException
interfaceName
- KuraException
void 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 configurationKuraException
void 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 configurationKuraException
void 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 interfaceKuraException
void enableInterface(String interfaceName, boolean dhcp) throws KuraException
interfaceName
- - name of the interface to be enabled.KuraException
void disableInterface(String interfaceName) throws KuraException
interfaceName
- - name of the interface to be disabled.KuraException
void manageDhcpServer(String interfaceName, boolean enable, NetworkPair<IP4Address> allowedNetwork) throws KuraException
interfaceName
- The interface of the DHCP server to modify the stateenable
- Whether to enable or disable the DHCP serverallowedNetwork
- The allowed network for the DHCP server if enabledKuraException
void renewDhcpLease(String interfaceName) throws KuraException
interfaceName
- The interface on which to renew the leaseKuraException
List<NetConfig> getFirewallConfiguration() throws KuraException
KuraException
void setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration
- A list of FirewallOpenPortConfigIP Objects representing the configuration to setKuraException
void setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws KuraException
firewallConfiguration
- A list of FirewallPortForwardConfigIP Objects representing the configuration to setKuraException
List<FirewallReverseNatConfig> getFirewallReverseNatConfiguration(String sourceIface) throws KuraException
KuraException
void setFirewallReverseNatConfiguration(String inIface, List<FirewallReverseNatConfig> reverseNatConfigs) throws KuraException
KuraException
void manageFirewall(String gatewayIface) throws KuraException
gatewayIface
- The new gateway interface that is now active as the WAN interfaceKuraException
Map<String,WifiHotspotInfo> getWifiHotspots(String ifaceName) throws KuraException
KuraException
boolean verifyWifiCredentials(String ifaceName, WifiConfig wifiConfig, int tout)
Copyright © 2014. All Rights Reserved.