1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. InterfaceSwitchport
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.InterfaceSwitchport

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This resource can manage the Interface Switchport configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Iosxe.InterfaceSwitchport("example", new()
        {
            AccessVlan = "100",
            Host = false,
            ModeAccess = false,
            ModeDot1qTunnel = false,
            ModePrivateVlanHost = false,
            ModePrivateVlanPromiscuous = false,
            ModePrivateVlanTrunk = false,
            ModeTrunk = true,
            Nonegotiate = false,
            TrunkAllowedVlans = "100,101",
            TrunkNativeVlan = 100,
            Type = "GigabitEthernet",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.NewInterfaceSwitchport(ctx, "example", &iosxe.InterfaceSwitchportArgs{
    			AccessVlan:                 pulumi.String("100"),
    			Host:                       pulumi.Bool(false),
    			ModeAccess:                 pulumi.Bool(false),
    			ModeDot1qTunnel:            pulumi.Bool(false),
    			ModePrivateVlanHost:        pulumi.Bool(false),
    			ModePrivateVlanPromiscuous: pulumi.Bool(false),
    			ModePrivateVlanTrunk:       pulumi.Bool(false),
    			ModeTrunk:                  pulumi.Bool(true),
    			Nonegotiate:                pulumi.Bool(false),
    			TrunkAllowedVlans:          pulumi.String("100,101"),
    			TrunkNativeVlan:            pulumi.Int(100),
    			Type:                       pulumi.String("GigabitEthernet"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.InterfaceSwitchport;
    import com.pulumi.iosxe.InterfaceSwitchportArgs;
    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 example = new InterfaceSwitchport("example", InterfaceSwitchportArgs.builder()        
                .accessVlan("100")
                .host(false)
                .modeAccess(false)
                .modeDot1qTunnel(false)
                .modePrivateVlanHost(false)
                .modePrivateVlanPromiscuous(false)
                .modePrivateVlanTrunk(false)
                .modeTrunk(true)
                .nonegotiate(false)
                .trunkAllowedVlans("100,101")
                .trunkNativeVlan(100)
                .type("GigabitEthernet")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_iosxe as iosxe
    
    example = iosxe.InterfaceSwitchport("example",
        access_vlan="100",
        host=False,
        mode_access=False,
        mode_dot1q_tunnel=False,
        mode_private_vlan_host=False,
        mode_private_vlan_promiscuous=False,
        mode_private_vlan_trunk=False,
        mode_trunk=True,
        nonegotiate=False,
        trunk_allowed_vlans="100,101",
        trunk_native_vlan=100,
        type="GigabitEthernet")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@lbrlabs/pulumi-iosxe";
    
    const example = new iosxe.InterfaceSwitchport("example", {
        accessVlan: "100",
        host: false,
        modeAccess: false,
        modeDot1qTunnel: false,
        modePrivateVlanHost: false,
        modePrivateVlanPromiscuous: false,
        modePrivateVlanTrunk: false,
        modeTrunk: true,
        nonegotiate: false,
        trunkAllowedVlans: "100,101",
        trunkNativeVlan: 100,
        type: "GigabitEthernet",
    });
    
    resources:
      example:
        type: iosxe:InterfaceSwitchport
        properties:
          accessVlan: '100'
          host: false
          modeAccess: false
          modeDot1qTunnel: false
          modePrivateVlanHost: false
          modePrivateVlanPromiscuous: false
          modePrivateVlanTrunk: false
          modeTrunk: true
          nonegotiate: false
          trunkAllowedVlans: 100,101
          trunkNativeVlan: 100
          type: GigabitEthernet
    

    Create InterfaceSwitchport Resource

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

    Constructor syntax

    new InterfaceSwitchport(name: string, args: InterfaceSwitchportArgs, opts?: CustomResourceOptions);
    @overload
    def InterfaceSwitchport(resource_name: str,
                            args: InterfaceSwitchportArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def InterfaceSwitchport(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            type: Optional[str] = None,
                            mode_private_vlan_trunk: Optional[bool] = None,
                            mode_private_vlan_promiscuous: Optional[bool] = None,
                            host: Optional[bool] = None,
                            mode_access: Optional[bool] = None,
                            mode_trunk: Optional[bool] = None,
                            mode_private_vlan_host: Optional[bool] = None,
                            device: Optional[str] = None,
                            access_vlan: Optional[str] = None,
                            mode_dot1q_tunnel: Optional[bool] = None,
                            name: Optional[str] = None,
                            nonegotiate: Optional[bool] = None,
                            trunk_allowed_vlans: Optional[str] = None,
                            trunk_allowed_vlans_none: Optional[bool] = None,
                            trunk_native_vlan: Optional[int] = None,
                            trunk_native_vlan_tag: Optional[bool] = None,
                            delete_mode: Optional[str] = None)
    func NewInterfaceSwitchport(ctx *Context, name string, args InterfaceSwitchportArgs, opts ...ResourceOption) (*InterfaceSwitchport, error)
    public InterfaceSwitchport(string name, InterfaceSwitchportArgs args, CustomResourceOptions? opts = null)
    public InterfaceSwitchport(String name, InterfaceSwitchportArgs args)
    public InterfaceSwitchport(String name, InterfaceSwitchportArgs args, CustomResourceOptions options)
    
    type: iosxe:InterfaceSwitchport
    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 InterfaceSwitchportArgs
    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 InterfaceSwitchportArgs
    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 InterfaceSwitchportArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InterfaceSwitchportArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InterfaceSwitchportArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var interfaceSwitchportResource = new Iosxe.InterfaceSwitchport("interfaceSwitchportResource", new()
    {
        Type = "string",
        ModePrivateVlanTrunk = false,
        ModePrivateVlanPromiscuous = false,
        Host = false,
        ModeAccess = false,
        ModeTrunk = false,
        ModePrivateVlanHost = false,
        Device = "string",
        AccessVlan = "string",
        ModeDot1qTunnel = false,
        Name = "string",
        Nonegotiate = false,
        TrunkAllowedVlans = "string",
        TrunkAllowedVlansNone = false,
        TrunkNativeVlan = 0,
        TrunkNativeVlanTag = false,
        DeleteMode = "string",
    });
    
    example, err := iosxe.NewInterfaceSwitchport(ctx, "interfaceSwitchportResource", &iosxe.InterfaceSwitchportArgs{
    	Type:                       pulumi.String("string"),
    	ModePrivateVlanTrunk:       pulumi.Bool(false),
    	ModePrivateVlanPromiscuous: pulumi.Bool(false),
    	Host:                       pulumi.Bool(false),
    	ModeAccess:                 pulumi.Bool(false),
    	ModeTrunk:                  pulumi.Bool(false),
    	ModePrivateVlanHost:        pulumi.Bool(false),
    	Device:                     pulumi.String("string"),
    	AccessVlan:                 pulumi.String("string"),
    	ModeDot1qTunnel:            pulumi.Bool(false),
    	Name:                       pulumi.String("string"),
    	Nonegotiate:                pulumi.Bool(false),
    	TrunkAllowedVlans:          pulumi.String("string"),
    	TrunkAllowedVlansNone:      pulumi.Bool(false),
    	TrunkNativeVlan:            pulumi.Int(0),
    	TrunkNativeVlanTag:         pulumi.Bool(false),
    	DeleteMode:                 pulumi.String("string"),
    })
    
    var interfaceSwitchportResource = new InterfaceSwitchport("interfaceSwitchportResource", InterfaceSwitchportArgs.builder()
        .type("string")
        .modePrivateVlanTrunk(false)
        .modePrivateVlanPromiscuous(false)
        .host(false)
        .modeAccess(false)
        .modeTrunk(false)
        .modePrivateVlanHost(false)
        .device("string")
        .accessVlan("string")
        .modeDot1qTunnel(false)
        .name("string")
        .nonegotiate(false)
        .trunkAllowedVlans("string")
        .trunkAllowedVlansNone(false)
        .trunkNativeVlan(0)
        .trunkNativeVlanTag(false)
        .deleteMode("string")
        .build());
    
    interface_switchport_resource = iosxe.InterfaceSwitchport("interfaceSwitchportResource",
        type="string",
        mode_private_vlan_trunk=False,
        mode_private_vlan_promiscuous=False,
        host=False,
        mode_access=False,
        mode_trunk=False,
        mode_private_vlan_host=False,
        device="string",
        access_vlan="string",
        mode_dot1q_tunnel=False,
        name="string",
        nonegotiate=False,
        trunk_allowed_vlans="string",
        trunk_allowed_vlans_none=False,
        trunk_native_vlan=0,
        trunk_native_vlan_tag=False,
        delete_mode="string")
    
    const interfaceSwitchportResource = new iosxe.InterfaceSwitchport("interfaceSwitchportResource", {
        type: "string",
        modePrivateVlanTrunk: false,
        modePrivateVlanPromiscuous: false,
        host: false,
        modeAccess: false,
        modeTrunk: false,
        modePrivateVlanHost: false,
        device: "string",
        accessVlan: "string",
        modeDot1qTunnel: false,
        name: "string",
        nonegotiate: false,
        trunkAllowedVlans: "string",
        trunkAllowedVlansNone: false,
        trunkNativeVlan: 0,
        trunkNativeVlanTag: false,
        deleteMode: "string",
    });
    
    type: iosxe:InterfaceSwitchport
    properties:
        accessVlan: string
        deleteMode: string
        device: string
        host: false
        modeAccess: false
        modeDot1qTunnel: false
        modePrivateVlanHost: false
        modePrivateVlanPromiscuous: false
        modePrivateVlanTrunk: false
        modeTrunk: false
        name: string
        nonegotiate: false
        trunkAllowedVlans: string
        trunkAllowedVlansNone: false
        trunkNativeVlan: 0
        trunkNativeVlanTag: false
        type: string
    

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

    Type string
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    AccessVlan string
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Device string
    A device name from the provider configuration.
    Host bool
    Set port host
    ModeAccess bool
    Set trunking mode to ACCESS unconditionally
    ModeDot1qTunnel bool
    set trunking mode to TUNNEL unconditionally
    ModePrivateVlanHost bool
    Set the mode to private-vlan host
    ModePrivateVlanPromiscuous bool
    Set the mode to private-vlan promiscuous
    ModePrivateVlanTrunk bool
    Set the mode to private-vlan trunk
    ModeTrunk bool
    Set trunking mode to TRUNK unconditionally
    Name string
    Nonegotiate bool
    Device will not engage in negotiation protocol on this interface
    TrunkAllowedVlans string
    TrunkAllowedVlansNone bool
    no VLANs
    TrunkNativeVlan int
    • Range: 1-4094
    TrunkNativeVlanTag bool
    Type string
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    AccessVlan string
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Device string
    A device name from the provider configuration.
    Host bool
    Set port host
    ModeAccess bool
    Set trunking mode to ACCESS unconditionally
    ModeDot1qTunnel bool
    set trunking mode to TUNNEL unconditionally
    ModePrivateVlanHost bool
    Set the mode to private-vlan host
    ModePrivateVlanPromiscuous bool
    Set the mode to private-vlan promiscuous
    ModePrivateVlanTrunk bool
    Set the mode to private-vlan trunk
    ModeTrunk bool
    Set trunking mode to TRUNK unconditionally
    Name string
    Nonegotiate bool
    Device will not engage in negotiation protocol on this interface
    TrunkAllowedVlans string
    TrunkAllowedVlansNone bool
    no VLANs
    TrunkNativeVlan int
    • Range: 1-4094
    TrunkNativeVlanTag bool
    type String
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    accessVlan String
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device String
    A device name from the provider configuration.
    host Boolean
    Set port host
    modeAccess Boolean
    Set trunking mode to ACCESS unconditionally
    modeDot1qTunnel Boolean
    set trunking mode to TUNNEL unconditionally
    modePrivateVlanHost Boolean
    Set the mode to private-vlan host
    modePrivateVlanPromiscuous Boolean
    Set the mode to private-vlan promiscuous
    modePrivateVlanTrunk Boolean
    Set the mode to private-vlan trunk
    modeTrunk Boolean
    Set trunking mode to TRUNK unconditionally
    name String
    nonegotiate Boolean
    Device will not engage in negotiation protocol on this interface
    trunkAllowedVlans String
    trunkAllowedVlansNone Boolean
    no VLANs
    trunkNativeVlan Integer
    • Range: 1-4094
    trunkNativeVlanTag Boolean
    type string
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    accessVlan string
    deleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device string
    A device name from the provider configuration.
    host boolean
    Set port host
    modeAccess boolean
    Set trunking mode to ACCESS unconditionally
    modeDot1qTunnel boolean
    set trunking mode to TUNNEL unconditionally
    modePrivateVlanHost boolean
    Set the mode to private-vlan host
    modePrivateVlanPromiscuous boolean
    Set the mode to private-vlan promiscuous
    modePrivateVlanTrunk boolean
    Set the mode to private-vlan trunk
    modeTrunk boolean
    Set trunking mode to TRUNK unconditionally
    name string
    nonegotiate boolean
    Device will not engage in negotiation protocol on this interface
    trunkAllowedVlans string
    trunkAllowedVlansNone boolean
    no VLANs
    trunkNativeVlan number
    • Range: 1-4094
    trunkNativeVlanTag boolean
    type str
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    access_vlan str
    delete_mode str
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device str
    A device name from the provider configuration.
    host bool
    Set port host
    mode_access bool
    Set trunking mode to ACCESS unconditionally
    mode_dot1q_tunnel bool
    set trunking mode to TUNNEL unconditionally
    mode_private_vlan_host bool
    Set the mode to private-vlan host
    mode_private_vlan_promiscuous bool
    Set the mode to private-vlan promiscuous
    mode_private_vlan_trunk bool
    Set the mode to private-vlan trunk
    mode_trunk bool
    Set trunking mode to TRUNK unconditionally
    name str
    nonegotiate bool
    Device will not engage in negotiation protocol on this interface
    trunk_allowed_vlans str
    trunk_allowed_vlans_none bool
    no VLANs
    trunk_native_vlan int
    • Range: 1-4094
    trunk_native_vlan_tag bool
    type String
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    accessVlan String
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device String
    A device name from the provider configuration.
    host Boolean
    Set port host
    modeAccess Boolean
    Set trunking mode to ACCESS unconditionally
    modeDot1qTunnel Boolean
    set trunking mode to TUNNEL unconditionally
    modePrivateVlanHost Boolean
    Set the mode to private-vlan host
    modePrivateVlanPromiscuous Boolean
    Set the mode to private-vlan promiscuous
    modePrivateVlanTrunk Boolean
    Set the mode to private-vlan trunk
    modeTrunk Boolean
    Set trunking mode to TRUNK unconditionally
    name String
    nonegotiate Boolean
    Device will not engage in negotiation protocol on this interface
    trunkAllowedVlans String
    trunkAllowedVlansNone Boolean
    no VLANs
    trunkNativeVlan Number
    • Range: 1-4094
    trunkNativeVlanTag Boolean

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing InterfaceSwitchport Resource

    Get an existing InterfaceSwitchport 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?: InterfaceSwitchportState, opts?: CustomResourceOptions): InterfaceSwitchport
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_vlan: Optional[str] = None,
            delete_mode: Optional[str] = None,
            device: Optional[str] = None,
            host: Optional[bool] = None,
            mode_access: Optional[bool] = None,
            mode_dot1q_tunnel: Optional[bool] = None,
            mode_private_vlan_host: Optional[bool] = None,
            mode_private_vlan_promiscuous: Optional[bool] = None,
            mode_private_vlan_trunk: Optional[bool] = None,
            mode_trunk: Optional[bool] = None,
            name: Optional[str] = None,
            nonegotiate: Optional[bool] = None,
            trunk_allowed_vlans: Optional[str] = None,
            trunk_allowed_vlans_none: Optional[bool] = None,
            trunk_native_vlan: Optional[int] = None,
            trunk_native_vlan_tag: Optional[bool] = None,
            type: Optional[str] = None) -> InterfaceSwitchport
    func GetInterfaceSwitchport(ctx *Context, name string, id IDInput, state *InterfaceSwitchportState, opts ...ResourceOption) (*InterfaceSwitchport, error)
    public static InterfaceSwitchport Get(string name, Input<string> id, InterfaceSwitchportState? state, CustomResourceOptions? opts = null)
    public static InterfaceSwitchport get(String name, Output<String> id, InterfaceSwitchportState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AccessVlan string
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Device string
    A device name from the provider configuration.
    Host bool
    Set port host
    ModeAccess bool
    Set trunking mode to ACCESS unconditionally
    ModeDot1qTunnel bool
    set trunking mode to TUNNEL unconditionally
    ModePrivateVlanHost bool
    Set the mode to private-vlan host
    ModePrivateVlanPromiscuous bool
    Set the mode to private-vlan promiscuous
    ModePrivateVlanTrunk bool
    Set the mode to private-vlan trunk
    ModeTrunk bool
    Set trunking mode to TRUNK unconditionally
    Name string
    Nonegotiate bool
    Device will not engage in negotiation protocol on this interface
    TrunkAllowedVlans string
    TrunkAllowedVlansNone bool
    no VLANs
    TrunkNativeVlan int
    • Range: 1-4094
    TrunkNativeVlanTag bool
    Type string
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    AccessVlan string
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Device string
    A device name from the provider configuration.
    Host bool
    Set port host
    ModeAccess bool
    Set trunking mode to ACCESS unconditionally
    ModeDot1qTunnel bool
    set trunking mode to TUNNEL unconditionally
    ModePrivateVlanHost bool
    Set the mode to private-vlan host
    ModePrivateVlanPromiscuous bool
    Set the mode to private-vlan promiscuous
    ModePrivateVlanTrunk bool
    Set the mode to private-vlan trunk
    ModeTrunk bool
    Set trunking mode to TRUNK unconditionally
    Name string
    Nonegotiate bool
    Device will not engage in negotiation protocol on this interface
    TrunkAllowedVlans string
    TrunkAllowedVlansNone bool
    no VLANs
    TrunkNativeVlan int
    • Range: 1-4094
    TrunkNativeVlanTag bool
    Type string
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    accessVlan String
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device String
    A device name from the provider configuration.
    host Boolean
    Set port host
    modeAccess Boolean
    Set trunking mode to ACCESS unconditionally
    modeDot1qTunnel Boolean
    set trunking mode to TUNNEL unconditionally
    modePrivateVlanHost Boolean
    Set the mode to private-vlan host
    modePrivateVlanPromiscuous Boolean
    Set the mode to private-vlan promiscuous
    modePrivateVlanTrunk Boolean
    Set the mode to private-vlan trunk
    modeTrunk Boolean
    Set trunking mode to TRUNK unconditionally
    name String
    nonegotiate Boolean
    Device will not engage in negotiation protocol on this interface
    trunkAllowedVlans String
    trunkAllowedVlansNone Boolean
    no VLANs
    trunkNativeVlan Integer
    • Range: 1-4094
    trunkNativeVlanTag Boolean
    type String
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    accessVlan string
    deleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device string
    A device name from the provider configuration.
    host boolean
    Set port host
    modeAccess boolean
    Set trunking mode to ACCESS unconditionally
    modeDot1qTunnel boolean
    set trunking mode to TUNNEL unconditionally
    modePrivateVlanHost boolean
    Set the mode to private-vlan host
    modePrivateVlanPromiscuous boolean
    Set the mode to private-vlan promiscuous
    modePrivateVlanTrunk boolean
    Set the mode to private-vlan trunk
    modeTrunk boolean
    Set trunking mode to TRUNK unconditionally
    name string
    nonegotiate boolean
    Device will not engage in negotiation protocol on this interface
    trunkAllowedVlans string
    trunkAllowedVlansNone boolean
    no VLANs
    trunkNativeVlan number
    • Range: 1-4094
    trunkNativeVlanTag boolean
    type string
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    access_vlan str
    delete_mode str
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device str
    A device name from the provider configuration.
    host bool
    Set port host
    mode_access bool
    Set trunking mode to ACCESS unconditionally
    mode_dot1q_tunnel bool
    set trunking mode to TUNNEL unconditionally
    mode_private_vlan_host bool
    Set the mode to private-vlan host
    mode_private_vlan_promiscuous bool
    Set the mode to private-vlan promiscuous
    mode_private_vlan_trunk bool
    Set the mode to private-vlan trunk
    mode_trunk bool
    Set trunking mode to TRUNK unconditionally
    name str
    nonegotiate bool
    Device will not engage in negotiation protocol on this interface
    trunk_allowed_vlans str
    trunk_allowed_vlans_none bool
    no VLANs
    trunk_native_vlan int
    • Range: 1-4094
    trunk_native_vlan_tag bool
    type str
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel
    accessVlan String
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    device String
    A device name from the provider configuration.
    host Boolean
    Set port host
    modeAccess Boolean
    Set trunking mode to ACCESS unconditionally
    modeDot1qTunnel Boolean
    set trunking mode to TUNNEL unconditionally
    modePrivateVlanHost Boolean
    Set the mode to private-vlan host
    modePrivateVlanPromiscuous Boolean
    Set the mode to private-vlan promiscuous
    modePrivateVlanTrunk Boolean
    Set the mode to private-vlan trunk
    modeTrunk Boolean
    Set trunking mode to TRUNK unconditionally
    name String
    nonegotiate Boolean
    Device will not engage in negotiation protocol on this interface
    trunkAllowedVlans String
    trunkAllowedVlansNone Boolean
    no VLANs
    trunkNativeVlan Number
    • Range: 1-4094
    trunkNativeVlanTag Boolean
    type String
    Interface type - Choices: GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigE, FortyGigabitEthernet, HundredGigE, TwoHundredGigE, FourHundredGigE, Port-channel

    Import

     $ pulumi import iosxe:index/interfaceSwitchport:InterfaceSwitchport example "Cisco-IOS-XE-native:native/interface/GigabitEthernet=1/0/3/switchport-config/switchport"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs