new Interface()
Network Interface
Methods
create()
Activate an interface (i.e. call "ifup")
Throws:
Error
destroy()
Deactivate an interface (ie call "ifdown")
Throws:
Error
getConnection() → {Connection}
Returns the connection pointer associated with an interface
Throws:
Error
Returns:
- Type
- Connection
getMACString() → {String}
Returns the MAC for an interface as string
Throws:
Error
Returns:
- Type
- String
getName() → {String}
Returns the public name for that interface
Throws:
Error
Returns:
- Type
- String
getXMLDesc() → {String}
Returns the static configuration
Throws:
Error
Returns:
- Type
- String
isActive() → {Boolean}
Determine if the interface is currently running
Throws:
Error
Returns:
- Type
- Boolean
ref()
Increment the reference count on the interface
Throws:
Error
undefine()
Undefine an interface, ie remove it from the config
Throws:
Error