# routeros.InterfaceEthernetSwitchCrsVlan (Resource)
Resource for managing CRS (Cloud Router Switch) series device properties.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
test:
type: routeros:InterfaceEthernetSwitchCrsVlan
properties:
ports:
- ether1
vlanId: 10
Create InterfaceEthernetSwitchCrsVlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterfaceEthernetSwitchCrsVlan(name: string, args: InterfaceEthernetSwitchCrsVlanArgs, opts?: CustomResourceOptions);@overload
def InterfaceEthernetSwitchCrsVlan(resource_name: str,
args: InterfaceEthernetSwitchCrsVlanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InterfaceEthernetSwitchCrsVlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
vlan_id: Optional[float] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
flood: Optional[bool] = None,
ingress_mirror: Optional[bool] = None,
interface_ethernet_switch_crs_vlan_id: Optional[str] = None,
learn: Optional[bool] = None,
ports: Optional[str] = None,
qos_group: Optional[str] = None,
svl: Optional[bool] = None)func NewInterfaceEthernetSwitchCrsVlan(ctx *Context, name string, args InterfaceEthernetSwitchCrsVlanArgs, opts ...ResourceOption) (*InterfaceEthernetSwitchCrsVlan, error)public InterfaceEthernetSwitchCrsVlan(string name, InterfaceEthernetSwitchCrsVlanArgs args, CustomResourceOptions? opts = null)
public InterfaceEthernetSwitchCrsVlan(String name, InterfaceEthernetSwitchCrsVlanArgs args)
public InterfaceEthernetSwitchCrsVlan(String name, InterfaceEthernetSwitchCrsVlanArgs args, CustomResourceOptions options)
type: routeros:InterfaceEthernetSwitchCrsVlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InterfaceEthernetSwitchCrsVlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InterfaceEthernetSwitchCrsVlanArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InterfaceEthernetSwitchCrsVlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterfaceEthernetSwitchCrsVlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterfaceEthernetSwitchCrsVlanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InterfaceEthernetSwitchCrsVlan Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InterfaceEthernetSwitchCrsVlan resource accepts the following input properties:
- Vlan
Id double - VLAN ID of the VLAN member entry.
- Comment string
- Disabled bool
- Flood bool
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- Ingress
Mirror bool - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- Interface
Ethernet stringSwitch Crs Vlan Id - Learn bool
- Enables or disables source MAC learning for VLAN.
- Ports string
- Member ports of the VLAN.
- Qos
Group string - Defined QoS group from QoS group menu.
- Svl bool
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Vlan
Id float64 - VLAN ID of the VLAN member entry.
- Comment string
- Disabled bool
- Flood bool
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- Ingress
Mirror bool - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- Interface
Ethernet stringSwitch Crs Vlan Id - Learn bool
- Enables or disables source MAC learning for VLAN.
- Ports string
- Member ports of the VLAN.
- Qos
Group string - Defined QoS group from QoS group menu.
- Svl bool
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- vlan
Id Double - VLAN ID of the VLAN member entry.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- flood Boolean
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress
Mirror Boolean - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface
Ethernet StringSwitch Crs Vlan Id - learn Boolean
- Enables or disables source MAC learning for VLAN.
- ports String
- Member ports of the VLAN.
- qos
Group String - Defined QoS group from QoS group menu.
- svl Boolean
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan
Id number - VLAN ID of the VLAN member entry.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment string
- disabled boolean
- flood boolean
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress
Mirror boolean - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface
Ethernet stringSwitch Crs Vlan Id - learn boolean
- Enables or disables source MAC learning for VLAN.
- ports string
- Member ports of the VLAN.
- qos
Group string - Defined QoS group from QoS group menu.
- svl boolean
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan_
id float - VLAN ID of the VLAN member entry.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment str
- disabled bool
- flood bool
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress_
mirror bool - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface_
ethernet_ strswitch_ crs_ vlan_ id - learn bool
- Enables or disables source MAC learning for VLAN.
- ports str
- Member ports of the VLAN.
- qos_
group str - Defined QoS group from QoS group menu.
- svl bool
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan
Id Number - VLAN ID of the VLAN member entry.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- flood Boolean
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress
Mirror Boolean - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface
Ethernet StringSwitch Crs Vlan Id - learn Boolean
- Enables or disables source MAC learning for VLAN.
- ports String
- Member ports of the VLAN.
- qos
Group String - Defined QoS group from QoS group menu.
- svl Boolean
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
Outputs
All input properties are implicitly available as output properties. Additionally, the InterfaceEthernetSwitchCrsVlan resource produces the following output properties:
Look up Existing InterfaceEthernetSwitchCrsVlan Resource
Get an existing InterfaceEthernetSwitchCrsVlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InterfaceEthernetSwitchCrsVlanState, opts?: CustomResourceOptions): InterfaceEthernetSwitchCrsVlan@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
dynamic: Optional[bool] = None,
flood: Optional[bool] = None,
ingress_mirror: Optional[bool] = None,
interface_ethernet_switch_crs_vlan_id: Optional[str] = None,
learn: Optional[bool] = None,
ports: Optional[str] = None,
qos_group: Optional[str] = None,
svl: Optional[bool] = None,
vlan_id: Optional[float] = None) -> InterfaceEthernetSwitchCrsVlanfunc GetInterfaceEthernetSwitchCrsVlan(ctx *Context, name string, id IDInput, state *InterfaceEthernetSwitchCrsVlanState, opts ...ResourceOption) (*InterfaceEthernetSwitchCrsVlan, error)public static InterfaceEthernetSwitchCrsVlan Get(string name, Input<string> id, InterfaceEthernetSwitchCrsVlanState? state, CustomResourceOptions? opts = null)public static InterfaceEthernetSwitchCrsVlan get(String name, Output<String> id, InterfaceEthernetSwitchCrsVlanState state, CustomResourceOptions options)resources: _: type: routeros:InterfaceEthernetSwitchCrsVlan get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comment string
- Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Flood bool
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- Ingress
Mirror bool - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- Interface
Ethernet stringSwitch Crs Vlan Id - Learn bool
- Enables or disables source MAC learning for VLAN.
- Ports string
- Member ports of the VLAN.
- Qos
Group string - Defined QoS group from QoS group menu.
- Svl bool
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- Vlan
Id double - VLAN ID of the VLAN member entry.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Comment string
- Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Flood bool
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- Ingress
Mirror bool - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- Interface
Ethernet stringSwitch Crs Vlan Id - Learn bool
- Enables or disables source MAC learning for VLAN.
- Ports string
- Member ports of the VLAN.
- Qos
Group string - Defined QoS group from QoS group menu.
- Svl bool
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- Vlan
Id float64 - VLAN ID of the VLAN member entry.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- flood Boolean
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress
Mirror Boolean - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface
Ethernet StringSwitch Crs Vlan Id - learn Boolean
- Enables or disables source MAC learning for VLAN.
- ports String
- Member ports of the VLAN.
- qos
Group String - Defined QoS group from QoS group menu.
- svl Boolean
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan
Id Double - VLAN ID of the VLAN member entry.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment string
- disabled boolean
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- flood boolean
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress
Mirror boolean - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface
Ethernet stringSwitch Crs Vlan Id - learn boolean
- Enables or disables source MAC learning for VLAN.
- ports string
- Member ports of the VLAN.
- qos
Group string - Defined QoS group from QoS group menu.
- svl boolean
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan
Id number - VLAN ID of the VLAN member entry.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment str
- disabled bool
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- flood bool
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress_
mirror bool - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface_
ethernet_ strswitch_ crs_ vlan_ id - learn bool
- Enables or disables source MAC learning for VLAN.
- ports str
- Member ports of the VLAN.
- qos_
group str - Defined QoS group from QoS group menu.
- svl bool
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan_
id float - VLAN ID of the VLAN member entry.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- flood Boolean
- Enables or disables forced VLAN flooding per VLAN. If the feature is enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,and the packet is forced to flood in the VLAN.
- ingress
Mirror Boolean - Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
- interface
Ethernet StringSwitch Crs Vlan Id - learn Boolean
- Enables or disables source MAC learning for VLAN.
- ports String
- Member ports of the VLAN.
- qos
Group String - Defined QoS group from QoS group menu.
- svl Boolean
- FDB lookup mode for lookup in UFDB and MFDB. - Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs. - Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
- vlan
Id Number - VLAN ID of the VLAN member entry.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/interface/ethernet/switch/vlan get [print show-ids]]
$ pulumi import routeros:index/interfaceEthernetSwitchCrsVlan:InterfaceEthernetSwitchCrsVlan test *3
#Or you can import a resource using one of its attributes
$ pulumi import routeros:index/interfaceEthernetSwitchCrsVlan:InterfaceEthernetSwitchCrsVlan test "comment=xxx"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routerosTerraform Provider.
