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.
|
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 |
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.
|
List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetworkInterfaceConfigs() throws EsfException
EsfExceptionList<NetConfig> getNetworkInterfaceConfigs(String interfaceName) throws EsfException
interfaceName - EsfExceptionvoid updateEthernetInterfaceConfig(String interfaceName, boolean autoConnect, int mtu, List<NetConfig> netConfigs) throws EsfException
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 configurationEsfExceptionvoid updateWifiInterfaceConfig(String interfaceName, boolean autoConnect, WifiAccessPoint accessPoint, List<NetConfig> netConfigs) throws EsfException
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 configurationEsfExceptionvoid updateModemInterfaceConfig(String interfaceName, String serialNum, String modemId, int pppNumber, boolean autoConnect, int mtu, List<NetConfig> netConfigs) throws EsfException
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 interfaceEsfExceptionvoid enableInterface(String interfaceName, boolean dhcp) throws EsfException
interfaceName - - name of the interface to be enabled.EsfExceptionvoid disableInterface(String interfaceName) throws EsfException
interfaceName - - name of the interface to be disabled.EsfExceptionvoid manageDhcpServer(String interfaceName, boolean enable) throws EsfException
interfaceName - The interface of the DHCP server to modify the stateenable - Whether to enable or disable the DHCP serverEsfExceptionvoid renewDhcpLease(String interfaceName) throws EsfException
interfaceName - The interface on which to renew the leaseEsfExceptionList<NetConfig> getFirewallConfiguration() throws EsfException
EsfExceptionvoid setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws EsfException
firewallConfiguration - A list of FirewallOpenPortConfigIP Objects representing the configuration to setEsfExceptionvoid setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws EsfException
firewallConfiguration - A list of FirewallPortForwardConfigIP Objects representing the configuration to setEsfExceptionvoid manageFirewall(String gatewayIface) throws EsfException
gatewayIface - The new gateway interface that is now active as the WAN interfaceEsfExceptionCopyright © 2013. All Rights Reserved.