1. Packages
  2. Routeros Provider
  3. API Docs
  4. InterfaceEthernetSwitchPort
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

routeros.InterfaceEthernetSwitchPort

Explore with Pulumi AI

routeros logo
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const test = new routeros.InterfaceEthernetSwitchPort("test", {vlanMode: "check"});
    
    import pulumi
    import pulumi_routeros as routeros
    
    test = routeros.InterfaceEthernetSwitchPort("test", vlan_mode="check")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := routeros.NewInterfaceEthernetSwitchPort(ctx, "test", &routeros.InterfaceEthernetSwitchPortArgs{
    			VlanMode: pulumi.String("check"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Routeros.InterfaceEthernetSwitchPort("test", new()
        {
            VlanMode = "check",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.InterfaceEthernetSwitchPort;
    import com.pulumi.routeros.InterfaceEthernetSwitchPortArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var test = new InterfaceEthernetSwitchPort("test", InterfaceEthernetSwitchPortArgs.builder()
                .vlanMode("check")
                .build());
    
        }
    }
    
    resources:
      test:
        type: routeros:InterfaceEthernetSwitchPort
        properties:
          vlanMode: check
    

    Create InterfaceEthernetSwitchPort Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InterfaceEthernetSwitchPort(name: string, args?: InterfaceEthernetSwitchPortArgs, opts?: CustomResourceOptions);
    @overload
    def InterfaceEthernetSwitchPort(resource_name: str,
                                    args: Optional[InterfaceEthernetSwitchPortArgs] = None,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def InterfaceEthernetSwitchPort(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    ___id_: Optional[float] = None,
                                    ___path_: Optional[str] = None,
                                    ___skip_: Optional[str] = None,
                                    default_vlan_id: Optional[str] = None,
                                    interface_ethernet_switch_port_id: Optional[str] = None,
                                    mirror_egress: Optional[bool] = None,
                                    mirror_ingress: Optional[bool] = None,
                                    mirror_ingress_target: Optional[str] = None,
                                    name: Optional[str] = None,
                                    vlan_header: Optional[str] = None,
                                    vlan_mode: Optional[str] = None)
    func NewInterfaceEthernetSwitchPort(ctx *Context, name string, args *InterfaceEthernetSwitchPortArgs, opts ...ResourceOption) (*InterfaceEthernetSwitchPort, error)
    public InterfaceEthernetSwitchPort(string name, InterfaceEthernetSwitchPortArgs? args = null, CustomResourceOptions? opts = null)
    public InterfaceEthernetSwitchPort(String name, InterfaceEthernetSwitchPortArgs args)
    public InterfaceEthernetSwitchPort(String name, InterfaceEthernetSwitchPortArgs args, CustomResourceOptions options)
    
    type: routeros:InterfaceEthernetSwitchPort
    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 InterfaceEthernetSwitchPortArgs
    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 InterfaceEthernetSwitchPortArgs
    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 InterfaceEthernetSwitchPortArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InterfaceEthernetSwitchPortArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InterfaceEthernetSwitchPortArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    InterfaceEthernetSwitchPort 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 InterfaceEthernetSwitchPort resource accepts the following input properties:

    DefaultVlanId string
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    InterfaceEthernetSwitchPortId string
    The ID of this resource.
    MirrorEgress bool
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngress bool
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngressTarget string
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    Name string
    Port name.
    VlanHeader string
    Sets action which is performed on the port for egress traffic.
    VlanMode string
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ string
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    DefaultVlanId string
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    InterfaceEthernetSwitchPortId string
    The ID of this resource.
    MirrorEgress bool
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngress bool
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngressTarget string
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    Name string
    Port name.
    VlanHeader string
    Sets action which is performed on the port for egress traffic.
    VlanMode string
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ string
    A set of transformations for field names. 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.
    ___skip_ String
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    defaultVlanId String
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interfaceEthernetSwitchPortId String
    The ID of this resource.
    mirrorEgress Boolean
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngress Boolean
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngressTarget String
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name String
    Port name.
    vlanHeader String
    Sets action which is performed on the port for egress traffic.
    vlanMode String
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ string
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    defaultVlanId string
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interfaceEthernetSwitchPortId string
    The ID of this resource.
    mirrorEgress boolean
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngress boolean
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngressTarget string
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name string
    Port name.
    vlanHeader string
    Sets action which is performed on the port for egress traffic.
    vlanMode string
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ str
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    default_vlan_id str
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interface_ethernet_switch_port_id str
    The ID of this resource.
    mirror_egress bool
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirror_ingress bool
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirror_ingress_target str
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name str
    Port name.
    vlan_header str
    Sets action which is performed on the port for egress traffic.
    vlan_mode str
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ String
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    defaultVlanId String
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interfaceEthernetSwitchPortId String
    The ID of this resource.
    mirrorEgress Boolean
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngress Boolean
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngressTarget String
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name String
    Port name.
    vlanHeader String
    Sets action which is performed on the port for egress traffic.
    vlanMode String
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InterfaceEthernetSwitchPort resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Invalid bool
    Running bool
    Switch string
    Name of the switch.
    Id string
    The provider-assigned unique ID for this managed resource.
    Invalid bool
    Running bool
    Switch string
    Name of the switch.
    id String
    The provider-assigned unique ID for this managed resource.
    invalid Boolean
    running Boolean
    switch_ String
    Name of the switch.
    id string
    The provider-assigned unique ID for this managed resource.
    invalid boolean
    running boolean
    switch string
    Name of the switch.
    id str
    The provider-assigned unique ID for this managed resource.
    invalid bool
    running bool
    switch str
    Name of the switch.
    id String
    The provider-assigned unique ID for this managed resource.
    invalid Boolean
    running Boolean
    switch String
    Name of the switch.

    Look up Existing InterfaceEthernetSwitchPort Resource

    Get an existing InterfaceEthernetSwitchPort 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?: InterfaceEthernetSwitchPortState, opts?: CustomResourceOptions): InterfaceEthernetSwitchPort
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            ___skip_: Optional[str] = None,
            default_vlan_id: Optional[str] = None,
            interface_ethernet_switch_port_id: Optional[str] = None,
            invalid: Optional[bool] = None,
            mirror_egress: Optional[bool] = None,
            mirror_ingress: Optional[bool] = None,
            mirror_ingress_target: Optional[str] = None,
            name: Optional[str] = None,
            running: Optional[bool] = None,
            switch: Optional[str] = None,
            vlan_header: Optional[str] = None,
            vlan_mode: Optional[str] = None) -> InterfaceEthernetSwitchPort
    func GetInterfaceEthernetSwitchPort(ctx *Context, name string, id IDInput, state *InterfaceEthernetSwitchPortState, opts ...ResourceOption) (*InterfaceEthernetSwitchPort, error)
    public static InterfaceEthernetSwitchPort Get(string name, Input<string> id, InterfaceEthernetSwitchPortState? state, CustomResourceOptions? opts = null)
    public static InterfaceEthernetSwitchPort get(String name, Output<String> id, InterfaceEthernetSwitchPortState state, CustomResourceOptions options)
    resources:  _:    type: routeros:InterfaceEthernetSwitchPort    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:
    DefaultVlanId string
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    InterfaceEthernetSwitchPortId string
    The ID of this resource.
    Invalid bool
    MirrorEgress bool
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngress bool
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngressTarget string
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    Name string
    Port name.
    Running bool
    Switch string
    Name of the switch.
    VlanHeader string
    Sets action which is performed on the port for egress traffic.
    VlanMode string
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ string
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    DefaultVlanId string
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    InterfaceEthernetSwitchPortId string
    The ID of this resource.
    Invalid bool
    MirrorEgress bool
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngress bool
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    MirrorIngressTarget string
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    Name string
    Port name.
    Running bool
    Switch string
    Name of the switch.
    VlanHeader string
    Sets action which is performed on the port for egress traffic.
    VlanMode string
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ string
    A set of transformations for field names. 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.
    ___skip_ String
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    defaultVlanId String
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interfaceEthernetSwitchPortId String
    The ID of this resource.
    invalid Boolean
    mirrorEgress Boolean
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngress Boolean
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngressTarget String
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name String
    Port name.
    running Boolean
    switch_ String
    Name of the switch.
    vlanHeader String
    Sets action which is performed on the port for egress traffic.
    vlanMode String
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ string
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    defaultVlanId string
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interfaceEthernetSwitchPortId string
    The ID of this resource.
    invalid boolean
    mirrorEgress boolean
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngress boolean
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngressTarget string
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name string
    Port name.
    running boolean
    switch string
    Name of the switch.
    vlanHeader string
    Sets action which is performed on the port for egress traffic.
    vlanMode string
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ str
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    default_vlan_id str
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interface_ethernet_switch_port_id str
    The ID of this resource.
    invalid bool
    mirror_egress bool
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirror_ingress bool
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirror_ingress_target str
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name str
    Port name.
    running bool
    switch str
    Name of the switch.
    vlan_header str
    Sets action which is performed on the port for egress traffic.
    vlan_mode str
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.
    ___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.
    ___skip_ String
    A set of transformations for field names. This is an internal service field, setting a value is not required.
    defaultVlanId String
    Adds a VLAN tag with the specified VLAN ID on all untagged ingress traffic on a port, should be used with vlan-header set to always-strip on a port to configure the port to be the access port. For hybrid ports default-vlan-id is used to tag untagged traffic. If two ports have the same default-vlan-id, then VLAN tag is not added since the switch chip assumes that traffic is being forwarded between access ports.
    interfaceEthernetSwitchPortId String
    The ID of this resource.
    invalid Boolean
    mirrorEgress Boolean
    Whether to send egress packet copy to the mirror-egress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngress Boolean
    Whether to send ingress packet copy to the mirror-ingress-target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips.
    mirrorIngressTarget String
    Selects a single mirroring ingress target port, only available on 88E6393X, 88E6191X and 88E6190 switch chips. Mirrored packets from mirror-ingress will be sent to the selected port.
    name String
    Port name.
    running Boolean
    switch String
    Name of the switch.
    vlanHeader String
    Sets action which is performed on the port for egress traffic.
    vlanMode String
    Changes the VLAN lookup mechanism against the VLAN Table for ingress traffic.

    Import

    #The ID can be found via API or the terminal

    #The command for the terminal is -> :put [/interface/ethernet/switch/port get [print show-ids]]

    $ pulumi import routeros:index/interfaceEthernetSwitchPort:InterfaceEthernetSwitchPort test *1
    

    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.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros