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
EsfException
List<NetConfig> getNetworkInterfaceConfigs(String interfaceName) throws EsfException
interfaceName
- EsfException
void 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 configurationEsfException
void 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 configurationEsfException
void 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 interfaceEsfException
void enableInterface(String interfaceName, boolean dhcp) throws EsfException
interfaceName
- - name of the interface to be enabled.EsfException
void disableInterface(String interfaceName) throws EsfException
interfaceName
- - name of the interface to be disabled.EsfException
void 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 serverEsfException
void renewDhcpLease(String interfaceName) throws EsfException
interfaceName
- The interface on which to renew the leaseEsfException
List<NetConfig> getFirewallConfiguration() throws EsfException
EsfException
void setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws EsfException
firewallConfiguration
- A list of FirewallOpenPortConfigIP Objects representing the configuration to setEsfException
void setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws EsfException
firewallConfiguration
- A list of FirewallPortForwardConfigIP Objects representing the configuration to setEsfException
void manageFirewall(String gatewayIface) throws EsfException
gatewayIface
- The new gateway interface that is now active as the WAN interfaceEsfException
Copyright © 2013. All Rights Reserved.