1. Packages
  2. Routeros Provider
  3. API Docs
  4. InterfaceEthernetSwitchHost
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.InterfaceEthernetSwitchHost

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const test = new routeros.InterfaceEthernetSwitchHost("test", {
        macAddress: "00:00:00:00:00:00",
        mirror: true,
        ports: ["ether1"],
        "switch": "switch1",
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    test = routeros.InterfaceEthernetSwitchHost("test",
        mac_address="00:00:00:00:00:00",
        mirror=True,
        ports=["ether1"],
        switch="switch1")
    
    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.NewInterfaceEthernetSwitchHost(ctx, "test", &routeros.InterfaceEthernetSwitchHostArgs{
    			MacAddress: pulumi.String("00:00:00:00:00:00"),
    			Mirror:     pulumi.Bool(true),
    			Ports: pulumi.StringArray{
    				pulumi.String("ether1"),
    			},
    			Switch: pulumi.String("switch1"),
    		})
    		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.InterfaceEthernetSwitchHost("test", new()
        {
            MacAddress = "00:00:00:00:00:00",
            Mirror = true,
            Ports = new[]
            {
                "ether1",
            },
            Switch = "switch1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.InterfaceEthernetSwitchHost;
    import com.pulumi.routeros.InterfaceEthernetSwitchHostArgs;
    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 InterfaceEthernetSwitchHost("test", InterfaceEthernetSwitchHostArgs.builder()
                .macAddress("00:00:00:00:00:00")
                .mirror(true)
                .ports("ether1")
                .switch_("switch1")
                .build());
    
        }
    }
    
    resources:
      test:
        type: routeros:InterfaceEthernetSwitchHost
        properties:
          macAddress: 00:00:00:00:00:00
          mirror: true
          ports:
            - ether1
          switch: switch1
    

    Create InterfaceEthernetSwitchHost Resource

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

    Constructor syntax

    new InterfaceEthernetSwitchHost(name: string, args: InterfaceEthernetSwitchHostArgs, opts?: CustomResourceOptions);
    @overload
    def InterfaceEthernetSwitchHost(resource_name: str,
                                    args: InterfaceEthernetSwitchHostArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def InterfaceEthernetSwitchHost(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    mac_address: Optional[str] = None,
                                    ports: Optional[Sequence[str]] = None,
                                    switch: Optional[str] = None,
                                    ___id_: Optional[float] = None,
                                    ___path_: Optional[str] = None,
                                    copy_to_cpu: Optional[bool] = None,
                                    drop: Optional[bool] = None,
                                    interface_ethernet_switch_host_id: Optional[str] = None,
                                    mirror: Optional[bool] = None,
                                    redirect_to_cpu: Optional[bool] = None,
                                    share_vlan_learned: Optional[bool] = None,
                                    vlan_id: Optional[str] = None)
    func NewInterfaceEthernetSwitchHost(ctx *Context, name string, args InterfaceEthernetSwitchHostArgs, opts ...ResourceOption) (*InterfaceEthernetSwitchHost, error)
    public InterfaceEthernetSwitchHost(string name, InterfaceEthernetSwitchHostArgs args, CustomResourceOptions? opts = null)
    public InterfaceEthernetSwitchHost(String name, InterfaceEthernetSwitchHostArgs args)
    public InterfaceEthernetSwitchHost(String name, InterfaceEthernetSwitchHostArgs args, CustomResourceOptions options)
    
    type: routeros:InterfaceEthernetSwitchHost
    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 InterfaceEthernetSwitchHostArgs
    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 InterfaceEthernetSwitchHostArgs
    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 InterfaceEthernetSwitchHostArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InterfaceEthernetSwitchHostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InterfaceEthernetSwitchHostArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    MacAddress string
    Host's MAC address.
    Ports List<string>
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    Switch string
    Name of the switch to which the MAC address is going to be assigned to.
    CopyToCpu bool
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    Drop bool
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    InterfaceEthernetSwitchHostId string
    The ID of this resource.
    Mirror bool
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    RedirectToCpu bool
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ShareVlanLearned bool
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    VlanId string
    VLAN ID for the statically added MAC address 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.
    MacAddress string
    Host's MAC address.
    Ports []string
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    Switch string
    Name of the switch to which the MAC address is going to be assigned to.
    CopyToCpu bool
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    Drop bool
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    InterfaceEthernetSwitchHostId string
    The ID of this resource.
    Mirror bool
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    RedirectToCpu bool
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ShareVlanLearned bool
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    VlanId string
    VLAN ID for the statically added MAC address 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.
    macAddress String
    Host's MAC address.
    ports List<String>
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    switch_ String
    Name of the switch to which the MAC address is going to be assigned to.
    ___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.
    copyToCpu Boolean
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop Boolean
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    interfaceEthernetSwitchHostId String
    The ID of this resource.
    mirror Boolean
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    redirectToCpu Boolean
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    shareVlanLearned Boolean
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    vlanId String
    VLAN ID for the statically added MAC address entry.
    macAddress string
    Host's MAC address.
    ports string[]
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    switch string
    Name of the switch to which the MAC address is going to be assigned to.
    ___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.
    copyToCpu boolean
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop boolean
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    interfaceEthernetSwitchHostId string
    The ID of this resource.
    mirror boolean
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    redirectToCpu boolean
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    shareVlanLearned boolean
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    vlanId string
    VLAN ID for the statically added MAC address entry.
    mac_address str
    Host's MAC address.
    ports Sequence[str]
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    switch str
    Name of the switch to which the MAC address is going to be assigned to.
    ___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.
    copy_to_cpu bool
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop bool
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    interface_ethernet_switch_host_id str
    The ID of this resource.
    mirror bool
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    redirect_to_cpu bool
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    share_vlan_learned bool
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    vlan_id str
    VLAN ID for the statically added MAC address entry.
    macAddress String
    Host's MAC address.
    ports List<String>
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    switch String
    Name of the switch to which the MAC address is going to be assigned to.
    ___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.
    copyToCpu Boolean
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop Boolean
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    interfaceEthernetSwitchHostId String
    The ID of this resource.
    mirror Boolean
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    redirectToCpu Boolean
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    shareVlanLearned Boolean
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    vlanId String
    VLAN ID for the statically added MAC address entry.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InterfaceEthernetSwitchHost 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.
    Invalid bool
    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.
    Invalid bool
    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.
    invalid Boolean
    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.
    invalid boolean
    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.
    invalid bool
    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.
    invalid Boolean

    Look up Existing InterfaceEthernetSwitchHost Resource

    Get an existing InterfaceEthernetSwitchHost 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?: InterfaceEthernetSwitchHostState, opts?: CustomResourceOptions): InterfaceEthernetSwitchHost
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            copy_to_cpu: Optional[bool] = None,
            drop: Optional[bool] = None,
            dynamic: Optional[bool] = None,
            interface_ethernet_switch_host_id: Optional[str] = None,
            invalid: Optional[bool] = None,
            mac_address: Optional[str] = None,
            mirror: Optional[bool] = None,
            ports: Optional[Sequence[str]] = None,
            redirect_to_cpu: Optional[bool] = None,
            share_vlan_learned: Optional[bool] = None,
            switch: Optional[str] = None,
            vlan_id: Optional[str] = None) -> InterfaceEthernetSwitchHost
    func GetInterfaceEthernetSwitchHost(ctx *Context, name string, id IDInput, state *InterfaceEthernetSwitchHostState, opts ...ResourceOption) (*InterfaceEthernetSwitchHost, error)
    public static InterfaceEthernetSwitchHost Get(string name, Input<string> id, InterfaceEthernetSwitchHostState? state, CustomResourceOptions? opts = null)
    public static InterfaceEthernetSwitchHost get(String name, Output<String> id, InterfaceEthernetSwitchHostState state, CustomResourceOptions options)
    resources:  _:    type: routeros:InterfaceEthernetSwitchHost    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:
    CopyToCpu bool
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    Drop bool
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    Dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    InterfaceEthernetSwitchHostId string
    The ID of this resource.
    Invalid bool
    MacAddress string
    Host's MAC address.
    Mirror bool
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    Ports List<string>
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    RedirectToCpu bool
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ShareVlanLearned bool
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    Switch string
    Name of the switch to which the MAC address is going to be assigned to.
    VlanId string
    VLAN ID for the statically added MAC address 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.
    CopyToCpu bool
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    Drop bool
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    Dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    InterfaceEthernetSwitchHostId string
    The ID of this resource.
    Invalid bool
    MacAddress string
    Host's MAC address.
    Mirror bool
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    Ports []string
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    RedirectToCpu bool
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ShareVlanLearned bool
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    Switch string
    Name of the switch to which the MAC address is going to be assigned to.
    VlanId string
    VLAN ID for the statically added MAC address 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.
    copyToCpu Boolean
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop Boolean
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    dynamic Boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interfaceEthernetSwitchHostId String
    The ID of this resource.
    invalid Boolean
    macAddress String
    Host's MAC address.
    mirror Boolean
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ports List<String>
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    redirectToCpu Boolean
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    shareVlanLearned Boolean
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    switch_ String
    Name of the switch to which the MAC address is going to be assigned to.
    vlanId String
    VLAN ID for the statically added MAC address 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.
    copyToCpu boolean
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop boolean
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    dynamic boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interfaceEthernetSwitchHostId string
    The ID of this resource.
    invalid boolean
    macAddress string
    Host's MAC address.
    mirror boolean
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ports string[]
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    redirectToCpu boolean
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    shareVlanLearned boolean
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    switch string
    Name of the switch to which the MAC address is going to be assigned to.
    vlanId string
    VLAN ID for the statically added MAC address 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.
    copy_to_cpu bool
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop bool
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    dynamic bool
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interface_ethernet_switch_host_id str
    The ID of this resource.
    invalid bool
    mac_address str
    Host's MAC address.
    mirror bool
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ports Sequence[str]
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    redirect_to_cpu bool
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    share_vlan_learned bool
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    switch str
    Name of the switch to which the MAC address is going to be assigned to.
    vlan_id str
    VLAN ID for the statically added MAC address 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.
    copyToCpu Boolean
    Whether to send a frame copy to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    drop Boolean
    Whether to drop a frame with matching MAC source address received on a certain port (matching destination or source address for CRS3xx series switches).
    dynamic Boolean
    Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
    interfaceEthernetSwitchHostId String
    The ID of this resource.
    invalid Boolean
    macAddress String
    Host's MAC address.
    mirror Boolean
    Whether to send a frame copy to mirror-target port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    ports List<String>
    Name of the interface, static MAC address can be mapped to more that one port, including switch CPU port.
    redirectToCpu Boolean
    Whether to redirect a frame to switch CPU port from a frame with matching MAC destination address (matching destination or source address for CRS3xx series switches).
    shareVlanLearned Boolean
    Whether the static host MAC address lookup is used with shared-VLAN-learning (SVL) or independent-VLAN-learning (IVL). The SVL mode is used for those VLAN entries that do not support IVL or IVL is disabled (independent-learning=no).
    switch String
    Name of the switch to which the MAC address is going to be assigned to.
    vlanId String
    VLAN ID for the statically added MAC address entry.

    Import

    #The ID can be found via API or the terminal

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

    $ pulumi import routeros:index/interfaceEthernetSwitchHost:InterfaceEthernetSwitchHost test *0
    

    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.1 published on Monday, Apr 28, 2025 by terraform-routeros