1. Packages
  2. Routeros Provider
  3. API Docs
  4. InterfaceEthernetSwitchCrsVlan
routeros 1.97.0 published on Wednesday, Dec 3, 2025 by terraform-routeros
routeros logo
routeros 1.97.0 published on Wednesday, Dec 3, 2025 by terraform-routeros

    # 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:

    VlanId 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.
    IngressMirror bool
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    InterfaceEthernetSwitchCrsVlanId string
    Learn bool
    Enables or disables source MAC learning for VLAN.
    Ports string
    Member ports of the VLAN.
    QosGroup 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.
    VlanId 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.
    IngressMirror bool
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    InterfaceEthernetSwitchCrsVlanId string
    Learn bool
    Enables or disables source MAC learning for VLAN.
    Ports string
    Member ports of the VLAN.
    QosGroup 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.
    vlanId 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.
    ingressMirror Boolean
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    interfaceEthernetSwitchCrsVlanId String
    learn Boolean
    Enables or disables source MAC learning for VLAN.
    ports String
    Member ports of the VLAN.
    qosGroup 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.
    vlanId 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.
    ingressMirror boolean
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    interfaceEthernetSwitchCrsVlanId string
    learn boolean
    Enables or disables source MAC learning for VLAN.
    ports string
    Member ports of the VLAN.
    qosGroup 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_switch_crs_vlan_id str
    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.
    vlanId 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.
    ingressMirror Boolean
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    interfaceEthernetSwitchCrsVlanId String
    learn Boolean
    Enables or disables source MAC learning for VLAN.
    ports String
    Member ports of the VLAN.
    qosGroup 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:

    Dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    Id string
    The provider-assigned unique ID for this managed resource.
    Dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    Id string
    The provider-assigned unique ID for this managed resource.
    dynamic Boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    id String
    The provider-assigned unique ID for this managed resource.
    dynamic boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    id string
    The provider-assigned unique ID for this managed resource.
    dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    id str
    The provider-assigned unique ID for this managed resource.
    dynamic Boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    id String
    The provider-assigned unique ID for this managed resource.

    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) -> InterfaceEthernetSwitchCrsVlan
    func 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.
    The following state arguments are supported:
    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.
    IngressMirror bool
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    InterfaceEthernetSwitchCrsVlanId string
    Learn bool
    Enables or disables source MAC learning for VLAN.
    Ports string
    Member ports of the VLAN.
    QosGroup 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.
    VlanId 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.
    IngressMirror bool
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    InterfaceEthernetSwitchCrsVlanId string
    Learn bool
    Enables or disables source MAC learning for VLAN.
    Ports string
    Member ports of the VLAN.
    QosGroup 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.
    VlanId 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.
    ingressMirror Boolean
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    interfaceEthernetSwitchCrsVlanId String
    learn Boolean
    Enables or disables source MAC learning for VLAN.
    ports String
    Member ports of the VLAN.
    qosGroup 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.
    vlanId 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.
    ingressMirror boolean
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    interfaceEthernetSwitchCrsVlanId string
    learn boolean
    Enables or disables source MAC learning for VLAN.
    ports string
    Member ports of the VLAN.
    qosGroup 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.
    vlanId 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_switch_crs_vlan_id str
    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.
    ingressMirror Boolean
    Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
    interfaceEthernetSwitchCrsVlanId String
    learn Boolean
    Enables or disables source MAC learning for VLAN.
    ports String
    Member ports of the VLAN.
    qosGroup 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.
    vlanId 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 routeros Terraform Provider.
    routeros logo
    routeros 1.97.0 published on Wednesday, Dec 3, 2025 by terraform-routeros
      Meet Neo: Your AI Platform Teammate