2.20.
CLASS: PIF
CHAPTER 2.
API REFERENCE
type
name
description
string
device
physical interface on which to create the
VLAN interface
network ref
network
network to which this interface should be con-
nected
host ref
host
physical machine to which this PIF is con-
nected
int
VLAN
VLAN tag for the new interface
Return Type:
PIF ref
The reference of the created PIF object
Possible Error Codes:
VLAN TAG INVALID
RPC name: destroy
Overview: This message is deprecated
Destroy the PIF object (provided it is a VLAN
interface).
Signature:
void destroy (session_id s, PIF ref self)
Arguments:
type
name
description
PIF ref
self
the PIF object to destroy
Return Type:
void
Possible Error Codes:
PIF IS PHYSICAL
RPC name: reconfigure ip
Overview:
Reconfigure the IP address settings for this interface.
Signature:
void reconfigure_ip (session_id s, PIF ref self, ip_configuration_mode mode, string IP, string netmask,
Arguments:
type
name
description
PIF ref
self
the PIF object to reconfigure
ip configuration mode
mode
whether to use dynamic/static/no-assignment
string
IP
the new IP address
string
netmask
the new netmask
string
gateway
the new gateway
string
DNS
the new DNS settings
Return Type:
void
177