|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NetworkAdminService
Service API for getting and setting network interface configurations.
| Method Summary | |
|---|---|
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. |
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 |
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)
|
| Method Detail |
|---|
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 configuration
EsfException
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 configuration
EsfException
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 interface
EsfException
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,
NetworkPair<IP4Address> allowedNetwork)
throws EsfException
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 enabled
EsfException
void renewDhcpLease(String interfaceName)
throws EsfException
interfaceName - The interface on which to renew the lease
EsfException
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 set
EsfException
void setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration)
throws EsfException
firewallConfiguration - A list of FirewallPortForwardConfigIP Objects representing the configuration to set
EsfException
void manageFirewall(String gatewayIface)
throws EsfException
gatewayIface - The new gateway interface that is now active as the WAN interface
EsfException
Map<String,WifiHotspotInfo> getWifiHotspots(String ifaceName)
throws EsfException
EsfException
boolean verifyWifiCredentials(String ifaceName,
WifiConfig wifiConfig,
int tout)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||