iosxe.InterfaceSwitchport
Explore with Pulumi AI
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
The InterfaceSwitchport resource accepts the following input properties:
- Type string
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- Access
Vlan string - Delete
Mode 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
- Mode
Access bool - Set trunking mode to ACCESS unconditionally
- Mode
Dot1q boolTunnel - set trunking mode to TUNNEL unconditionally
- Mode
Private boolVlan Host - Set the mode to private-vlan host
- Mode
Private boolVlan Promiscuous - Set the mode to private-vlan promiscuous
- Mode
Private boolVlan Trunk - Set the mode to private-vlan trunk
- Mode
Trunk bool - Set trunking mode to TRUNK unconditionally
- Name string
- Nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- Trunk
Allowed stringVlans - Trunk
Allowed boolVlans None - no VLANs
- Trunk
Native intVlan - Range:
1
-4094
- Range:
- Trunk
Native boolVlan Tag
- Type string
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- Access
Vlan string - Delete
Mode 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
- Mode
Access bool - Set trunking mode to ACCESS unconditionally
- Mode
Dot1q boolTunnel - set trunking mode to TUNNEL unconditionally
- Mode
Private boolVlan Host - Set the mode to private-vlan host
- Mode
Private boolVlan Promiscuous - Set the mode to private-vlan promiscuous
- Mode
Private boolVlan Trunk - Set the mode to private-vlan trunk
- Mode
Trunk bool - Set trunking mode to TRUNK unconditionally
- Name string
- Nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- Trunk
Allowed stringVlans - Trunk
Allowed boolVlans None - no VLANs
- Trunk
Native intVlan - Range:
1
-4094
- Range:
- Trunk
Native boolVlan Tag
- type String
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- access
Vlan String - delete
Mode 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
- mode
Access Boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q BooleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private BooleanVlan Host - Set the mode to private-vlan host
- mode
Private BooleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private BooleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk Boolean - Set trunking mode to TRUNK unconditionally
- name String
- nonegotiate Boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed StringVlans - trunk
Allowed BooleanVlans None - no VLANs
- trunk
Native IntegerVlan - Range:
1
-4094
- Range:
- trunk
Native BooleanVlan Tag
- type string
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- access
Vlan string - delete
Mode 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
- mode
Access boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q booleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private booleanVlan Host - Set the mode to private-vlan host
- mode
Private booleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private booleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk boolean - Set trunking mode to TRUNK unconditionally
- name string
- nonegotiate boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed stringVlans - trunk
Allowed booleanVlans None - no VLANs
- trunk
Native numberVlan - Range:
1
-4094
- Range:
- trunk
Native booleanVlan Tag
- 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_ booltunnel - set trunking mode to TUNNEL unconditionally
- mode_
private_ boolvlan_ host - Set the mode to private-vlan host
- mode_
private_ boolvlan_ promiscuous - Set the mode to private-vlan promiscuous
- mode_
private_ boolvlan_ trunk - 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_ strvlans - trunk_
allowed_ boolvlans_ none - no VLANs
- trunk_
native_ intvlan - Range:
1
-4094
- Range:
- trunk_
native_ boolvlan_ tag
- type String
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- access
Vlan String - delete
Mode 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
- mode
Access Boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q BooleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private BooleanVlan Host - Set the mode to private-vlan host
- mode
Private BooleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private BooleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk Boolean - Set trunking mode to TRUNK unconditionally
- name String
- nonegotiate Boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed StringVlans - trunk
Allowed BooleanVlans None - no VLANs
- trunk
Native NumberVlan - Range:
1
-4094
- Range:
- trunk
Native BooleanVlan Tag
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.
- Access
Vlan string - Delete
Mode 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
- Mode
Access bool - Set trunking mode to ACCESS unconditionally
- Mode
Dot1q boolTunnel - set trunking mode to TUNNEL unconditionally
- Mode
Private boolVlan Host - Set the mode to private-vlan host
- Mode
Private boolVlan Promiscuous - Set the mode to private-vlan promiscuous
- Mode
Private boolVlan Trunk - Set the mode to private-vlan trunk
- Mode
Trunk bool - Set trunking mode to TRUNK unconditionally
- Name string
- Nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- Trunk
Allowed stringVlans - Trunk
Allowed boolVlans None - no VLANs
- Trunk
Native intVlan - Range:
1
-4094
- Range:
- Trunk
Native boolVlan Tag - Type string
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- Access
Vlan string - Delete
Mode 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
- Mode
Access bool - Set trunking mode to ACCESS unconditionally
- Mode
Dot1q boolTunnel - set trunking mode to TUNNEL unconditionally
- Mode
Private boolVlan Host - Set the mode to private-vlan host
- Mode
Private boolVlan Promiscuous - Set the mode to private-vlan promiscuous
- Mode
Private boolVlan Trunk - Set the mode to private-vlan trunk
- Mode
Trunk bool - Set trunking mode to TRUNK unconditionally
- Name string
- Nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- Trunk
Allowed stringVlans - Trunk
Allowed boolVlans None - no VLANs
- Trunk
Native intVlan - Range:
1
-4094
- Range:
- Trunk
Native boolVlan Tag - Type string
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- access
Vlan String - delete
Mode 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
- mode
Access Boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q BooleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private BooleanVlan Host - Set the mode to private-vlan host
- mode
Private BooleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private BooleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk Boolean - Set trunking mode to TRUNK unconditionally
- name String
- nonegotiate Boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed StringVlans - trunk
Allowed BooleanVlans None - no VLANs
- trunk
Native IntegerVlan - Range:
1
-4094
- Range:
- trunk
Native BooleanVlan Tag - type String
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- access
Vlan string - delete
Mode 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
- mode
Access boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q booleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private booleanVlan Host - Set the mode to private-vlan host
- mode
Private booleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private booleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk boolean - Set trunking mode to TRUNK unconditionally
- name string
- nonegotiate boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed stringVlans - trunk
Allowed booleanVlans None - no VLANs
- trunk
Native numberVlan - Range:
1
-4094
- Range:
- trunk
Native booleanVlan Tag - 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_ booltunnel - set trunking mode to TUNNEL unconditionally
- mode_
private_ boolvlan_ host - Set the mode to private-vlan host
- mode_
private_ boolvlan_ promiscuous - Set the mode to private-vlan promiscuous
- mode_
private_ boolvlan_ trunk - 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_ strvlans - trunk_
allowed_ boolvlans_ none - no VLANs
- trunk_
native_ intvlan - Range:
1
-4094
- Range:
- trunk_
native_ boolvlan_ tag - type str
- Interface type - Choices:
GigabitEthernet
,TwoGigabitEthernet
,FiveGigabitEthernet
,TenGigabitEthernet
,TwentyFiveGigE
,FortyGigabitEthernet
,HundredGigE
,TwoHundredGigE
,FourHundredGigE
,Port-channel
- access
Vlan String - delete
Mode 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
- mode
Access Boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q BooleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private BooleanVlan Host - Set the mode to private-vlan host
- mode
Private BooleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private BooleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk Boolean - Set trunking mode to TRUNK unconditionally
- name String
- nonegotiate Boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed StringVlans - trunk
Allowed BooleanVlans None - no VLANs
- trunk
Native NumberVlan - Range:
1
-4094
- Range:
- trunk
Native BooleanVlan Tag - 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.