Raritan PX2/PX3 JSON-RPC API
Net.idl
1 #include <Event.idl>
2 
6 module net {
7 
9  structure IpAddrCidr {
10  string addr; // IP address
11  int prefixLen; // Length of network prefix in the IP address
12  };
13 
15  structure IpRoute {
16  IpAddrCidr destNetAddrCidr; // Destination network address (CIDR)
17  string nextHopAddr; // Address of the next hop (empty when ifName is set)
18  string ifName; // Destination interface (empty if nextHopAddr is set)
19  };
20 
22  enumeration PortForwardingRole {
25  };
26 
29  boolean enabled;
32  };
33 
35  structure DnsSettings {
36  vector<string> serverAddrs;
37  vector<string> searchSuffixes;
39  };
40 
42  structure IpRoutingSettings {
44  vector<IpRoute> staticRoutes;
45  };
46 
48  structure RoutingSettings {
51  };
52 
54  structure CommonSettings {
58  };
59 
62  string ifName;
63  string addr;
64  };
65 
67  structure PortForwardingInfo {
68  boolean enabled;
69  boolean nodeIndexValid;
70  int nodeIndex;
71  boolean slaveConnected;
73  vector<PortForwardingMasterAddrInfo> masterIPv4AddrInfos;
75  vector<PortForwardingMasterAddrInfo> masterIPv6AddrInfos;
76  };
77 
79  structure DnsInfo {
80  vector<string> serverAddrs;
81  vector<string> searchSuffixes;
83  };
84 
86  structure RoutingInfo {
87  vector<IpRoute> ipv4Routes;
88  vector<IpRoute> ipv6Routes;
89  };
90 
92  structure CommonInfo {
96  };
97 
99  enumeration IpConfigMethod {
103  };
104 
107  boolean enabled;
111  };
112 
114  structure InterfaceIPv4Info {
115  boolean enabled;
117  vector<IpAddrCidr> addrsCidr;
118  string dhcpServerAddr;
120  };
121 
123  structure InterfaceIPv6Info {
124  boolean enabled;
126  vector<IpAddrCidr> addrsCidr;
127  string dhcpServerId;
129  boolean raManaged;
130  boolean raOtherConf;
131  };
132 
134  structure InterfaceSettings {
135  boolean enabled;
138  };
139 
141  enumeration InterfaceType {
145  };
146 
148  enumeration InterfaceOpState {
152  UP
153  };
154 
156  structure InterfaceInfo {
157  string name;
158  string label;
160  boolean enabled;
161  string masterIfName;
163  string macAddr;
166  };
167 
169  enumeration EthSpeed {
174  };
175 
177  enumeration EthDuplexMode {
181  };
182 
184  structure EthLinkMode {
187  };
188 
190  structure EthSettings {
192  };
193 
195  structure EthInfo {
197  boolean linkModeValid;
198  boolean autonegEnabled;
199  boolean linkDetected;
200  vector<EthLinkMode> supportedLinkModes;
201  };
202 
204  enumeration WlanSecProtocol {
206  };
207 
209  enumeration WlanAuthType {
210  NONE,
211  PSK,
213  };
214 
216  enumeration EapOuterAuthMethod {
218  };
219 
221  enumeration EapInnerAuthMethod {
223  };
224 
226  structure EapAuthSettings {
227  string identity;
228  string password;
229  boolean clearPassword;
232  string caCertChain;
236  };
238 
240  structure WlanSettings {
241  boolean enableHT;
242  string ssid;
243  string bssid;
246  string psk;
247  boolean clearPsk;
249  };
250 
252  enumeration WlanChannelWidth {
253  CHANNEL_WIDTH_UNKNOWN,
254  CHANNEL_WIDTH_20_NO_HT,
255  CHANNEL_WIDTH_20,
256  CHANNEL_WIDTH_40,
257  CHANNEL_WIDTH_80,
258  CHANNEL_WIDTH_80P80,
259  CHANNEL_WIDTH_160
260  };
261 
263  structure WlanInfo {
264  boolean associated;
265  string ssid;
266  string bssid;
267  int channel;
269  };
270 
272  structure Settings {
274  map<string, InterfaceSettings> ifMap;
275  map<string, EthSettings> ethMap;
276  map<string, WlanSettings> wlanMap;
277  };
278 
280  structure Info {
282  map<string, InterfaceInfo> ifMap;
283  map<string, EthInfo> ethMap;
284  map<string, WlanInfo> wlanMap;
285  };
286 
290  string appProtoName;
292  };
293 
294  /* ---- event definitions ---- */
295 
297  valueobject CommonInfoChangedEvent extends idl.Event {
298  CommonInfo commonInfo;
299  };
300 
302  valueobject InterfaceInfoChangedEvent extends idl.Event {
303  InterfaceInfo ifInfo;
304  };
305 
307  valueobject EthInfoChangedEvent extends idl.Event {
308  string ifName;
310  };
311 
313  valueobject WlanInfoChangedEvent extends idl.Event {
314  string ifName;
316  };
317 
319  valueobject LinkStateChangedEvent extends idl.Event {
320  string ifName;
321  string ifLabel;
324  };
325 
327  valueobject PortForwardingSlavePresenceStateChangedEvent extends idl.Event {
328  boolean slavePresent;
329  };
330 
332  interface Net_4_0_0 {
333 
335  constant int SUCCESS = 0;
336 
338  constant int ERR_DNS_TOO_MANY_SERVERS = 100;
339  constant int ERR_DNS_INVALID_SERVER = 101;
340  constant int ERR_DNS_TOO_MANY_SEARCH_SUFFIXES = 102;
341  constant int ERR_DNS_INVALID_SEARCH_SUFFIX = 103;
342 
344  constant int ERR_ROUTING_IPV4_INVALID_DFLT_GATEWAY_ADDR = 200;
345  constant int ERR_ROUTING_IPV6_INVALID_DFLT_GATEWAY_ADDR = 201;
346  constant int ERR_ROUTING_IPV4_INVALID_DEST_ADDR = 202;
347  constant int ERR_ROUTING_IPV6_INVALID_DEST_ADDR = 203;
348  constant int ERR_ROUTING_IPV4_INVALID_DEST_PREFIX_LEN = 204;
349  constant int ERR_ROUTING_IPV6_INVALID_DEST_PREFIX_LEN = 205;
350  constant int ERR_ROUTING_IPV4_INVALID_NEXTHOP_ADDR = 206;
351  constant int ERR_ROUTING_IPV6_INVALID_NEXTHOP_ADDR = 207;
352  constant int ERR_ROUTING_IPV4_INVALID_INTERFACE = 208;
353  constant int ERR_ROUTING_IPV6_INVALID_INTERFACE = 209;
354  constant int ERR_ROUTING_IPV4_DEST_IS_NO_NETWORK_ADDR = 210;
355  constant int ERR_ROUTING_IPV6_DEST_IS_NO_NETWORK_ADDR = 211;
356  constant int ERR_ROUTING_IPV4_DEST_IS_DUPLICATE = 212;
357  constant int ERR_ROUTING_IPV6_DEST_IS_DUPLICATE = 213;
358  constant int ERR_ROUTING_IPV4_NO_NEXTHOP_OR_INTERFACE = 214;
359  constant int ERR_ROUTING_IPV6_NO_NEXTHOP_OR_INTERFACE = 215;
360  constant int ERR_ROUTING_IPV4_NEXTHOP_AND_INTERFACE_SET = 216;
361  constant int ERR_ROUTING_IPV6_NEXTHOP_AND_INTERFACE_SET = 217;
362 
364  constant int ERR_PF_INVALID_MASTER_DOWNSTREAM_INTERFACE = 300;
365  constant int ERR_PF_NO_WORKING_MASTER_UPSTREAM_INTERFACE= 301;
366 
368  constant int ERR_IF_IPV4_INVALID_CONFIG_METHOD = 400;
369  constant int ERR_IF_IPV6_INVALID_CONFIG_METHOD = 401;
370  constant int ERR_IF_IPV4_INVALID_STATIC_ADDR = 402;
371  constant int ERR_IF_IPV6_INVALID_STATIC_ADDR = 403;
372  constant int ERR_IF_IPV4_INVALID_STATIC_PREFIX_LEN = 404;
373  constant int ERR_IF_IPV6_INVALID_STATIC_PREFIX_LEN = 405;
374  constant int ERR_IF_IPV4_INVALID_DHCP_PREF_HOSTNAME = 406;
375  constant int ERR_IF_IPV6_INVALID_DHCP_PREF_HOSTNAME = 407;
376 
378  constant int ERR_ETH_IF_UNSUPPORTED_LINKMODE = 500;
379 
381  constant int ERR_WLAN_IF_INVALID_SSID = 600;
382  constant int ERR_WLAN_IF_INVALID_BSSID = 601;
383  constant int ERR_WLAN_IF_INVALID_PSK = 602;
384  constant int ERR_WLAN_IF_INVALID_EAP_IDENTITY = 603;
385  constant int ERR_WLAN_IF_INVALID_EAP_PASSWORD = 604;
386  constant int ERR_WLAN_IF_INVALID_EAP_CERT = 605;
387  constant int ERR_WLAN_IF_EAP_CERT_VERIFY_FAILED = 606;
388 
389  Info getInfo();
390  Settings getSettings();
391  int setSettings(in Settings settings);
392 
393  vector<PortForwardingProtocolMapping> getPortForwardingProtocolMappings();
394 
395  };
396 
397 }
PortForwardingInfo portForwarding
Port forwarding info.
Definition: Net.idl:95
map< string, WlanSettings > wlanMap
WLAN specific interface settings.
Definition: Net.idl:276
InterfaceOpState ifState
Current operational interface state.
Definition: Net.idl:323
boolean enabled
Controls if interface is enabled.
Definition: Net.idl:135
boolean resolverPrefersIPv6
Resolver should prefer IPv6 addresses.
Definition: Net.idl:82
vector< EthLinkMode > supportedLinkModes
Supported link modes.
Definition: Net.idl:200
map< string, EthInfo > ethMap
Ethernet specific interface info.
Definition: Net.idl:283
IpRoutingSettings ipv6
IPv6 routing settings.
Definition: Net.idl:50
EAP authentication.
Definition: Net.idl:212
Interface is up and running.
Definition: Net.idl:152
Use auto-negotiation to set speed.
Definition: Net.idl:170
Half duplex.
Definition: Net.idl:179
Ethernet interface.
Definition: Net.idl:142
vector< IpAddrCidr > addrsCidr
List of active IPv4 addresses with prefix length.
Definition: Net.idl:117
Pre-shared key authentication.
Definition: Net.idl:211
string bssid
BSSID of associated access point.
Definition: Net.idl:266
WlanInfo wlanInfo
Current WLAN interface specific info.
Definition: Net.idl:315
PEAP authentication.
Definition: Net.idl:217
string ifName
interface name on master
Definition: Net.idl:62
string transportProtoName
Transport protocol name.
Definition: Net.idl:291
boolean enableHT
Enable high throughput features (802::11n)
Definition: Net.idl:241
IpConfigMethod configMethod
Interface configuration method.
Definition: Net.idl:125
Common settings.
Definition: Net.idl:54
string defaultGatewayAddr
Default gateway address.
Definition: Net.idl:43
string ssid
SSID of the wireless network.
Definition: Net.idl:242
string dhcpPreferredHostname
Preferred hostname (only used with DHCP)
Definition: Net.idl:128
Interface specific IP settings.
Definition: Net.idl:106
Use auto-negotiation to set duplex mode.
Definition: Net.idl:178
Port forwarding info.
Definition: Net.idl:67
EthDuplexMode duplexMode
Interface duplex mode.
Definition: Net.idl:186
Ethernet link mode.
Definition: Net.idl:184
Routing settings.
Definition: Net.idl:48
IPv4/IPv6 route.
Definition: Net.idl:15
Full duplex.
Definition: Net.idl:180
string macAddr
MAC address of the interface.
Definition: Net.idl:163
string ssid
SSID of the wireless network.
Definition: Net.idl:265
Network settings.
Definition: Net.idl:272
DNS info.
Definition: Net.idl:79
int nodeIndex
Index of the node in the port forwarding cascade.
Definition: Net.idl:70
IpConfigMethod configMethod
Interface configuration method.
Definition: Net.idl:116
int appProtoId
Application protocol id.
Definition: Net.idl:289
boolean linkModeValid
true if linkMode is valid
Definition: Net.idl:197
Interface specific IPv6 info.
Definition: Net.idl:123
boolean forceTrustedCert
Enforce trusted certificates.
Definition: Net.idl:233
string identity
EAP identity.
Definition: Net.idl:227
1000 MBit/s (1 GBit/s)
Definition: Net.idl:173
DnsInfo dns
DNS info.
Definition: Net.idl:93
string password
EAP password (always empty on retrieval!)
Definition: Net.idl:228
WLAN interface.
Definition: Net.idl:143
InterfaceType
The interface type.
Definition: Net.idl:141
Bride interface.
Definition: Net.idl:144
CommonInfo common
Common network info.
Definition: Net.idl:281
IpConfigMethod configMethod
Interface configuration method.
Definition: Net.idl:108
EthLinkMode linkMode
Current link mode.
Definition: Net.idl:196
string dhcpServerId
DHCPv6 server id or empty.
Definition: Net.idl:127
PortForwardingRole role
The role of the node (master or slave)
Definition: Net.idl:30
valueobject InterfaceInfoChangedEvent
Event that is send when common interface specific network info has changed.
Definition: Net.idl:299
string appProtoName
Application protocol name.
Definition: Net.idl:290
MSCHAPv2 authentication.
Definition: Net.idl:222
valueobject LinkStateChangedEvent
Event that is send when the operational state of an interface changed.
Definition: Net.idl:316
boolean associated
true if assoiated to an access point
Definition: Net.idl:264
InterfaceType type
Interface type.
Definition: Net.idl:159
boolean nodeIndexValid
true if nodeIndex is valid
Definition: Net.idl:69
WlanSecProtocol
WLAN security protocol.
Definition: Net.idl:204
boolean enabled
The dynamic enabled state.
Definition: Net.idl:160
string dhcpPreferredHostname
Preferred hostname (only used with DHCP)
Definition: Net.idl:110
No automatic configuration.
Definition: Net.idl:100
boolean clearPsk
Set to true when PSK should be cleared.
Definition: Net.idl:247
WlanChannelWidth
WLAN channel width.
Definition: Net.idl:252
RoutingInfo routing
Routing info.
Definition: Net.idl:94
boolean slaveConnected
true if this node has a slave connected
Definition: Net.idl:71
boolean allowOffTimeRangeCerts
allow expired and not yet valid TLS certs
Definition: Net.idl:234
Ethernet interface settings.
Definition: Net.idl:190
boolean resolverPrefersIPv6
Resolver should prefer IPv6 addresses.
Definition: Net.idl:38
Basic IDL definitions.
Definition: Event.idl:6
boolean raOtherConf
"OtherConf" flag set in router announcements
Definition: Net.idl:130
Interface is not present.
Definition: Net.idl:149
int channel
Channel number.
Definition: Net.idl:267
string caCertChain
CA certificate chain.
Definition: Net.idl:232
EapOuterAuthMethod outerMethod
Outer authentication method.
Definition: Net.idl:230
string dhcpPreferredHostname
Preferred hostname (only used with DHCP)
Definition: Net.idl:119
Interface specific IPv4 info.
Definition: Net.idl:114
DnsSettings dns
DNS settings.
Definition: Net.idl:55
valueobject PortForwardingSlavePresenceStateChangedEvent
Event that is send when the presence state of a downstream port forwarding slave changes.
Definition: Net.idl:324
map< string, WlanInfo > wlanMap
WLAN specific interface info.
Definition: Net.idl:284
boolean raManaged
"Managed" flag set in router announcements
Definition: Net.idl:129
Network Configuration.
Definition: Diagnostics.idl:4
WlanAuthType authType
Authentication type.
Definition: Net.idl:245
Routing info.
Definition: Net.idl:86
string masterDownstreamIfName
Master downstream interface (usb: any USB iface)
Definition: Net.idl:31
PortForwardingSettings portForwarding
Port forwarding settings.
Definition: Net.idl:57
boolean enabled
Controls if port forwarding is enabled.
Definition: Net.idl:29
EthSpeed
Ethernet speed.
Definition: Net.idl:169
boolean linkDetected
true if a link is detected
Definition: Net.idl:199
boolean enabled
true if port forwarding is enabled
Definition: Net.idl:68
WLAN interface info.
Definition: Net.idl:263
vector< IpRoute > ipv4Routes
List of active IPv4 routes.
Definition: Net.idl:87
Node is the port forwarding master.
Definition: Net.idl:23
EapOuterAuthMethod
EAP outer authentication method.
Definition: Net.idl:216
map< string, InterfaceInfo > ifMap
Common interface info.
Definition: Net.idl:282
valueobject WlanInfoChangedEvent
Event that is send when WLAN interface specific network info has changed.
Definition: Net.idl:310
string dhcpServerAddr
IPv4 address of DHCP server or empty.
Definition: Net.idl:118
10 MBit/s
Definition: Net.idl:171
vector< IpRoute > staticRoutes
List of static routes.
Definition: Net.idl:44
RoutingSettings routing
Routing settings.
Definition: Net.idl:56
EthLinkMode linkMode
Link mode.
Definition: Net.idl:191
EthSpeed speed
Interface speed.
Definition: Net.idl:185
boolean enabled
Controls if IPv4/IPv6 is enabled.
Definition: Net.idl:107
boolean clearPassword
Set to true when password should be cleared.
Definition: Net.idl:229
PortForwardingRole
Role of the node when port forwarding is enabled.
Definition: Net.idl:22
Use DHCP for automatic configuration (IPv4 only)
Definition: Net.idl:101
string masterDownstreamIfName
Master downstream interface (usb: any USB iface)
Definition: Net.idl:72
Interface has no link.
Definition: Net.idl:151
EapInnerAuthMethod innerMethod
Inner authentication method.
Definition: Net.idl:231
InterfaceType ifType
interface type
Definition: Net.idl:322
EapAuthSettings eap
Settings for EAP authentication.
Definition: Net.idl:248
string masterIfName
Master interface (set for bridged interfaces)
Definition: Net.idl:161
InterfaceIpSettings ipv6
Interface specific IPv6 settings.
Definition: Net.idl:137
vector< string > searchSuffixes
List of active domain search suffixes.
Definition: Net.idl:81
Node is a port forwarding slave.
Definition: Net.idl:24
IP protocol specific routing settings.
Definition: Net.idl:42
InterfaceOpState state
Operational state of the interface.
Definition: Net.idl:162
IpAddrCidr staticAddrCidr
Statically assigned IPv4/IPv6 address (CIDR)
Definition: Net.idl:109
vector< IpAddrCidr > addrsCidr
List of active IPv6 addresses with prefix length.
Definition: Net.idl:126
WlanSecProtocol secProtocol
Security protocol (WPA2)
Definition: Net.idl:244
vector< string > searchSuffixes
List of domain search suffixes.
Definition: Net.idl:37
WlanChannelWidth channelWidth
Channel width (this is an id and no frequency!)
Definition: Net.idl:268
string label
Interface label (used in user interfaces)
Definition: Net.idl:158
vector< string > serverAddrs
List of domain name servers addresses (IPv4/IPv6)
Definition: Net.idl:36
WLAN interface settings.
Definition: Net.idl:240
string bssid
BSSID (empty for automatic AP selection)
Definition: Net.idl:243
string name
Internal interface name.
Definition: Net.idl:157
Mapping from application protocol id to name and transport protocol.
Definition: Net.idl:288
EAP authentication settings.
Definition: Net.idl:226
EthDuplexMode
Ethernet duplex mode.
Definition: Net.idl:177
valueobject CommonInfoChangedEvent
Event that is send when common network info has changed.
Definition: Net.idl:298
boolean enabled
true if IPv6 is enabled
Definition: Net.idl:124
InterfaceIPv4Info ipv4
Interface specific IPv4 info.
Definition: Net.idl:164
Interface specific settings.
Definition: Net.idl:134
Common info.
Definition: Net.idl:92
Interface specific info.
Definition: Net.idl:156
string psk
Pre-shared key (always empty on retrieval!)
Definition: Net.idl:246
IPv4/IPv6 address and prefix len.
Definition: Net.idl:9
Port forwarding master address info for an interface.
Definition: Net.idl:61
vector< string > serverAddrs
List of active domain name server addresses.
Definition: Net.idl:80
Network info.
Definition: Net.idl:280
InterfaceIpSettings ipv4
Interface specific IPv4 settings.
Definition: Net.idl:136
IpRoutingSettings ipv4
IPv4 routing settings.
Definition: Net.idl:49
valueobject EthInfoChangedEvent
Event that is send when ethernet interface specific network info has changed.
Definition: Net.idl:304
boolean enabled
true if IPv4 is enabled
Definition: Net.idl:115
InterfaceOpState
Interface operational state.
Definition: Net.idl:148
Use automatic configuration (IPv6 only)
Definition: Net.idl:102
InterfaceIPv6Info ipv6
Interface specific IPv6 info.
Definition: Net.idl:165
boolean allowNotYetValidCertsIfTimeBeforeBuild
allow not yet valid TLS certs if
Definition: Net.idl:235
map< string, EthSettings > ethMap
Ethernet specific interface settings.
Definition: Net.idl:275
string addr
IPv4/IPv6 address on the interface.
Definition: Net.idl:63
vector< PortForwardingMasterAddrInfo > masterIPv6AddrInfos
Master address info for IPv6.
Definition: Net.idl:75
CommonSettings common
Common network settings.
Definition: Net.idl:273
Interface is down.
Definition: Net.idl:150
IpConfigMethod
IP configuration method.
Definition: Net.idl:99
EapInnerAuthMethod
EAP inner authentication method.
Definition: Net.idl:221
vector< IpRoute > ipv6Routes
List of active IPv6 routes.
Definition: Net.idl:88
boolean autonegEnabled
true if auto-negotiation is enabled
Definition: Net.idl:198
WlanAuthType
WLAN authentication type.
Definition: Net.idl:209
EthInfo ethInfo
Current ethernet interface specific info.
Definition: Net.idl:309
DNS settings.
Definition: Net.idl:35
WPA2 security protocol.
Definition: Net.idl:205
string ifLabel
interface label
Definition: Net.idl:321
Port forwarding settings.
Definition: Net.idl:28
Ethernet interface info.
Definition: Net.idl:195
Network configuration interface.
Definition: Net.idl:332
map< string, InterfaceSettings > ifMap
Common interface settings.
Definition: Net.idl:274
100 MBit/s
Definition: Net.idl:172