Interface IVlanManager
interface IVlanManager
Extends com.amazon.apmf.IStandard
Interface to manage a VLAN networks.
Methods
makeVlan()
Create a VLAN network.IVlan*makeVlan(com.amazon.kepler.net.common.INetworkInterface*prime,stringname,u32id)
Parameters
prime
com.amazon.kepler.net.common.INetworkInterface* — Required
INetworkInterface to be associated with VLAN.
name
string — Required
the name of VLAN to create.
id
u32 — Required
the identifier of VLAN to create.
Returns
IVlan*
IVlan that contains VLAN network configuration.
Throws
NotSupportedError— if the feature is not supported.SecurityError— if the app does not have the permission.InvalidArgumentError— if the invalid prime or name is given.
com.amazon.privilege.net-admin
makeIpVlan()
Create a IPVLAN network.IVlan*makeIpVlan(com.amazon.kepler.net.common.INetworkInterface*prime,stringname,IpVlanMode*mode,IpVlanFlag*flag)
Parameters
prime
com.amazon.kepler.net.common.INetworkInterface* — Required
INetworkInterface to be associated with VLAN.
name
string — Required
the name of VLAN to create.
mode
IpVlanMode* — Required
IpVlanMode the mode of IPVLAN to create.
flag
IpVlanFlag* — Required
IpVlanFlag the flag of IPVLAN to create.
Returns
IVlan*
IVlan that contains VLAN network configuration.
throws NotSupportedError if the feature is not supported.
throws SecurityError if the app does not have the permission.
throws InvalidArgumentError if the invalid prime or name is given.
Requires com.amazon.privilege.net-admin
removeVlan()
Remove a VLAN network.voidremoveVlan(IVlan*vlan)
Parameters
vlan
IVlan* — Required
VLAN network to remove.
throws NotSupportedError if the feature is not supported.
throws SecurityError if the app does not have the permission.
Requires com.amazon.privilege.net-admin
getAllVlans()
Returns allIVlan*[]getAllVlans()
IVlan in the system.
Returns
IVlan*[]
The array of IVlan instance.
Requires com.amazon.privilege.net-admin

