nxos.PortChannelInterface
Explore with Pulumi AI
This resource can manage a port-channel interface.
- API Documentation: pcAggrIf
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Lbrlabs.PulumiPackage.Nxos;
return await Deployment.RunAsync(() =>
{
var example = new Nxos.PortChannelInterface("example", new()
{
AccessVlan = "vlan-1",
AdminState = "up",
AutoNegotiation = "on",
Bandwidth = 0,
Delay = 1,
Description = "My Description",
Duplex = "auto",
InterfaceId = "po1",
Layer = "Layer2",
LinkLogging = "enable",
MaximumLinks = 10,
Medium = "broadcast",
MinimumLinks = 2,
Mode = "access",
Mtu = 1500,
NativeVlan = "unknown",
PortChannelMode = "active",
Speed = "auto",
SuspendIndividual = "disable",
TrunkVlans = "1-4094",
UserConfiguredFlags = "admin_layer,admin_mtu,admin_state",
});
});
package main
import (
"github.com/lbrlabs/pulumi-nxos/sdk/go/nxos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nxos.NewPortChannelInterface(ctx, "example", &nxos.PortChannelInterfaceArgs{
AccessVlan: pulumi.String("vlan-1"),
AdminState: pulumi.String("up"),
AutoNegotiation: pulumi.String("on"),
Bandwidth: pulumi.Int(0),
Delay: pulumi.Int(1),
Description: pulumi.String("My Description"),
Duplex: pulumi.String("auto"),
InterfaceId: pulumi.String("po1"),
Layer: pulumi.String("Layer2"),
LinkLogging: pulumi.String("enable"),
MaximumLinks: pulumi.Int(10),
Medium: pulumi.String("broadcast"),
MinimumLinks: pulumi.Int(2),
Mode: pulumi.String("access"),
Mtu: pulumi.Int(1500),
NativeVlan: pulumi.String("unknown"),
PortChannelMode: pulumi.String("active"),
Speed: pulumi.String("auto"),
SuspendIndividual: pulumi.String("disable"),
TrunkVlans: pulumi.String("1-4094"),
UserConfiguredFlags: pulumi.String("admin_layer,admin_mtu,admin_state"),
})
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.nxos.PortChannelInterface;
import com.pulumi.nxos.PortChannelInterfaceArgs;
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 PortChannelInterface("example", PortChannelInterfaceArgs.builder()
.accessVlan("vlan-1")
.adminState("up")
.autoNegotiation("on")
.bandwidth(0)
.delay(1)
.description("My Description")
.duplex("auto")
.interfaceId("po1")
.layer("Layer2")
.linkLogging("enable")
.maximumLinks(10)
.medium("broadcast")
.minimumLinks(2)
.mode("access")
.mtu(1500)
.nativeVlan("unknown")
.portChannelMode("active")
.speed("auto")
.suspendIndividual("disable")
.trunkVlans("1-4094")
.userConfiguredFlags("admin_layer,admin_mtu,admin_state")
.build());
}
}
import pulumi
import lbrlabs_pulumi_nxos as nxos
example = nxos.PortChannelInterface("example",
access_vlan="vlan-1",
admin_state="up",
auto_negotiation="on",
bandwidth=0,
delay=1,
description="My Description",
duplex="auto",
interface_id="po1",
layer="Layer2",
link_logging="enable",
maximum_links=10,
medium="broadcast",
minimum_links=2,
mode="access",
mtu=1500,
native_vlan="unknown",
port_channel_mode="active",
speed="auto",
suspend_individual="disable",
trunk_vlans="1-4094",
user_configured_flags="admin_layer,admin_mtu,admin_state")
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@lbrlabs/pulumi-nxos";
const example = new nxos.PortChannelInterface("example", {
accessVlan: "vlan-1",
adminState: "up",
autoNegotiation: "on",
bandwidth: 0,
delay: 1,
description: "My Description",
duplex: "auto",
interfaceId: "po1",
layer: "Layer2",
linkLogging: "enable",
maximumLinks: 10,
medium: "broadcast",
minimumLinks: 2,
mode: "access",
mtu: 1500,
nativeVlan: "unknown",
portChannelMode: "active",
speed: "auto",
suspendIndividual: "disable",
trunkVlans: "1-4094",
userConfiguredFlags: "admin_layer,admin_mtu,admin_state",
});
resources:
example:
type: nxos:PortChannelInterface
properties:
accessVlan: vlan-1
adminState: up
autoNegotiation: on
bandwidth: 0
delay: 1
description: My Description
duplex: auto
interfaceId: po1
layer: Layer2
linkLogging: enable
maximumLinks: 10
medium: broadcast
minimumLinks: 2
mode: access
mtu: 1500
nativeVlan: unknown
portChannelMode: active
speed: auto
suspendIndividual: disable
trunkVlans: 1-4094
userConfiguredFlags: admin_layer,admin_mtu,admin_state
Create PortChannelInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PortChannelInterface(name: string, args: PortChannelInterfaceArgs, opts?: CustomResourceOptions);
@overload
def PortChannelInterface(resource_name: str,
args: PortChannelInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PortChannelInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface_id: Optional[str] = None,
link_logging: Optional[str] = None,
description: Optional[str] = None,
maximum_links: Optional[int] = None,
minimum_links: Optional[int] = None,
medium: Optional[str] = None,
device: Optional[str] = None,
duplex: Optional[str] = None,
admin_state: Optional[str] = None,
layer: Optional[str] = None,
access_vlan: Optional[str] = None,
bandwidth: Optional[int] = None,
auto_negotiation: Optional[str] = None,
delay: Optional[int] = None,
mode: Optional[str] = None,
mtu: Optional[int] = None,
native_vlan: Optional[str] = None,
port_channel_mode: Optional[str] = None,
speed: Optional[str] = None,
suspend_individual: Optional[str] = None,
trunk_vlans: Optional[str] = None,
user_configured_flags: Optional[str] = None)
func NewPortChannelInterface(ctx *Context, name string, args PortChannelInterfaceArgs, opts ...ResourceOption) (*PortChannelInterface, error)
public PortChannelInterface(string name, PortChannelInterfaceArgs args, CustomResourceOptions? opts = null)
public PortChannelInterface(String name, PortChannelInterfaceArgs args)
public PortChannelInterface(String name, PortChannelInterfaceArgs args, CustomResourceOptions options)
type: nxos:PortChannelInterface
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 PortChannelInterfaceArgs
- 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 PortChannelInterfaceArgs
- 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 PortChannelInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortChannelInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortChannelInterfaceArgs
- 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 portChannelInterfaceResource = new Nxos.PortChannelInterface("portChannelInterfaceResource", new()
{
InterfaceId = "string",
LinkLogging = "string",
Description = "string",
MaximumLinks = 0,
MinimumLinks = 0,
Medium = "string",
Device = "string",
Duplex = "string",
AdminState = "string",
Layer = "string",
AccessVlan = "string",
Bandwidth = 0,
AutoNegotiation = "string",
Delay = 0,
Mode = "string",
Mtu = 0,
NativeVlan = "string",
PortChannelMode = "string",
Speed = "string",
SuspendIndividual = "string",
TrunkVlans = "string",
UserConfiguredFlags = "string",
});
example, err := nxos.NewPortChannelInterface(ctx, "portChannelInterfaceResource", &nxos.PortChannelInterfaceArgs{
InterfaceId: pulumi.String("string"),
LinkLogging: pulumi.String("string"),
Description: pulumi.String("string"),
MaximumLinks: pulumi.Int(0),
MinimumLinks: pulumi.Int(0),
Medium: pulumi.String("string"),
Device: pulumi.String("string"),
Duplex: pulumi.String("string"),
AdminState: pulumi.String("string"),
Layer: pulumi.String("string"),
AccessVlan: pulumi.String("string"),
Bandwidth: pulumi.Int(0),
AutoNegotiation: pulumi.String("string"),
Delay: pulumi.Int(0),
Mode: pulumi.String("string"),
Mtu: pulumi.Int(0),
NativeVlan: pulumi.String("string"),
PortChannelMode: pulumi.String("string"),
Speed: pulumi.String("string"),
SuspendIndividual: pulumi.String("string"),
TrunkVlans: pulumi.String("string"),
UserConfiguredFlags: pulumi.String("string"),
})
var portChannelInterfaceResource = new PortChannelInterface("portChannelInterfaceResource", PortChannelInterfaceArgs.builder()
.interfaceId("string")
.linkLogging("string")
.description("string")
.maximumLinks(0)
.minimumLinks(0)
.medium("string")
.device("string")
.duplex("string")
.adminState("string")
.layer("string")
.accessVlan("string")
.bandwidth(0)
.autoNegotiation("string")
.delay(0)
.mode("string")
.mtu(0)
.nativeVlan("string")
.portChannelMode("string")
.speed("string")
.suspendIndividual("string")
.trunkVlans("string")
.userConfiguredFlags("string")
.build());
port_channel_interface_resource = nxos.PortChannelInterface("portChannelInterfaceResource",
interface_id="string",
link_logging="string",
description="string",
maximum_links=0,
minimum_links=0,
medium="string",
device="string",
duplex="string",
admin_state="string",
layer="string",
access_vlan="string",
bandwidth=0,
auto_negotiation="string",
delay=0,
mode="string",
mtu=0,
native_vlan="string",
port_channel_mode="string",
speed="string",
suspend_individual="string",
trunk_vlans="string",
user_configured_flags="string")
const portChannelInterfaceResource = new nxos.PortChannelInterface("portChannelInterfaceResource", {
interfaceId: "string",
linkLogging: "string",
description: "string",
maximumLinks: 0,
minimumLinks: 0,
medium: "string",
device: "string",
duplex: "string",
adminState: "string",
layer: "string",
accessVlan: "string",
bandwidth: 0,
autoNegotiation: "string",
delay: 0,
mode: "string",
mtu: 0,
nativeVlan: "string",
portChannelMode: "string",
speed: "string",
suspendIndividual: "string",
trunkVlans: "string",
userConfiguredFlags: "string",
});
type: nxos:PortChannelInterface
properties:
accessVlan: string
adminState: string
autoNegotiation: string
bandwidth: 0
delay: 0
description: string
device: string
duplex: string
interfaceId: string
layer: string
linkLogging: string
maximumLinks: 0
medium: string
minimumLinks: 0
mode: string
mtu: 0
nativeVlan: string
portChannelMode: string
speed: string
suspendIndividual: string
trunkVlans: string
userConfiguredFlags: string
PortChannelInterface 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 PortChannelInterface resource accepts the following input properties:
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:po1
. - Access
Vlan string - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Admin
State string - Administrative port state. - Choices:
up
,down
- Default value:up
- Auto
Negotiation string - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- Delay int
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Maximum
Links int - Maximum links. - Range:
1
-32
- Default value:32
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- Minimum
Links int - Minimum links. - Range:
1
-32
- Default value:1
- Mode string
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- Mtu int
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- Native
Vlan string - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Port
Channel stringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- Speed string
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- Suspend
Individual string - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- User
Configured stringFlags - Port User Config Flags.
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:po1
. - Access
Vlan string - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Admin
State string - Administrative port state. - Choices:
up
,down
- Default value:up
- Auto
Negotiation string - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- Delay int
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Maximum
Links int - Maximum links. - Range:
1
-32
- Default value:32
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- Minimum
Links int - Minimum links. - Range:
1
-32
- Default value:1
- Mode string
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- Mtu int
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- Native
Vlan string - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Port
Channel stringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- Speed string
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- Suspend
Individual string - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- User
Configured stringFlags - Port User Config Flags.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:po1
. - access
Vlan String - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin
State String - Administrative port state. - Choices:
up
,down
- Default value:up
- auto
Negotiation String - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth Integer
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay Integer
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum
Links Integer - Maximum links. - Range:
1
-32
- Default value:32
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum
Links Integer - Minimum links. - Range:
1
-32
- Default value:1
- mode String
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu Integer
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native
Vlan String - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port
Channel StringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed String
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend
Individual String - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- user
Configured StringFlags - Port User Config Flags.
- interface
Id string - Must match first field in the output of
show intf brief
. Example:po1
. - access
Vlan string - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin
State string - Administrative port state. - Choices:
up
,down
- Default value:up
- auto
Negotiation string - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay number
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description string
- Interface description.
- device string
- A device name from the provider configuration.
- duplex string
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum
Links number - Maximum links. - Range:
1
-32
- Default value:32
- medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum
Links number - Minimum links. - Range:
1
-32
- Default value:1
- mode string
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu number
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native
Vlan string - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port
Channel stringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed string
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend
Individual string - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- user
Configured stringFlags - Port User Config Flags.
- interface_
id str - Must match first field in the output of
show intf brief
. Example:po1
. - access_
vlan str - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin_
state str - Administrative port state. - Choices:
up
,down
- Default value:up
- auto_
negotiation str - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay int
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description str
- Interface description.
- device str
- A device name from the provider configuration.
- duplex str
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- layer str
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link_
logging str - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum_
links int - Maximum links. - Range:
1
-32
- Default value:32
- medium str
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum_
links int - Minimum links. - Range:
1
-32
- Default value:1
- mode str
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu int
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native_
vlan str - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port_
channel_ strmode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed str
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend_
individual str - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk_
vlans str - List of trunk VLANs. - Default value:
1-4094
- user_
configured_ strflags - Port User Config Flags.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:po1
. - access
Vlan String - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin
State String - Administrative port state. - Choices:
up
,down
- Default value:up
- auto
Negotiation String - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth Number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay Number
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum
Links Number - Maximum links. - Range:
1
-32
- Default value:32
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum
Links Number - Minimum links. - Range:
1
-32
- Default value:1
- mode String
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu Number
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native
Vlan String - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port
Channel StringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed String
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend
Individual String - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- user
Configured StringFlags - Port User Config Flags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PortChannelInterface 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 PortChannelInterface Resource
Get an existing PortChannelInterface 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?: PortChannelInterfaceState, opts?: CustomResourceOptions): PortChannelInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_vlan: Optional[str] = None,
admin_state: Optional[str] = None,
auto_negotiation: Optional[str] = None,
bandwidth: Optional[int] = None,
delay: Optional[int] = None,
description: Optional[str] = None,
device: Optional[str] = None,
duplex: Optional[str] = None,
interface_id: Optional[str] = None,
layer: Optional[str] = None,
link_logging: Optional[str] = None,
maximum_links: Optional[int] = None,
medium: Optional[str] = None,
minimum_links: Optional[int] = None,
mode: Optional[str] = None,
mtu: Optional[int] = None,
native_vlan: Optional[str] = None,
port_channel_mode: Optional[str] = None,
speed: Optional[str] = None,
suspend_individual: Optional[str] = None,
trunk_vlans: Optional[str] = None,
user_configured_flags: Optional[str] = None) -> PortChannelInterface
func GetPortChannelInterface(ctx *Context, name string, id IDInput, state *PortChannelInterfaceState, opts ...ResourceOption) (*PortChannelInterface, error)
public static PortChannelInterface Get(string name, Input<string> id, PortChannelInterfaceState? state, CustomResourceOptions? opts = null)
public static PortChannelInterface get(String name, Output<String> id, PortChannelInterfaceState 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 - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Admin
State string - Administrative port state. - Choices:
up
,down
- Default value:up
- Auto
Negotiation string - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- Delay int
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:po1
. - Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Maximum
Links int - Maximum links. - Range:
1
-32
- Default value:32
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- Minimum
Links int - Minimum links. - Range:
1
-32
- Default value:1
- Mode string
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- Mtu int
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- Native
Vlan string - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Port
Channel stringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- Speed string
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- Suspend
Individual string - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- User
Configured stringFlags - Port User Config Flags.
- Access
Vlan string - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Admin
State string - Administrative port state. - Choices:
up
,down
- Default value:up
- Auto
Negotiation string - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- Delay int
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:po1
. - Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Maximum
Links int - Maximum links. - Range:
1
-32
- Default value:32
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- Minimum
Links int - Minimum links. - Range:
1
-32
- Default value:1
- Mode string
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- Mtu int
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- Native
Vlan string - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- Port
Channel stringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- Speed string
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- Suspend
Individual string - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- User
Configured stringFlags - Port User Config Flags.
- access
Vlan String - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin
State String - Administrative port state. - Choices:
up
,down
- Default value:up
- auto
Negotiation String - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth Integer
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay Integer
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- interface
Id String - Must match first field in the output of
show intf brief
. Example:po1
. - layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum
Links Integer - Maximum links. - Range:
1
-32
- Default value:32
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum
Links Integer - Minimum links. - Range:
1
-32
- Default value:1
- mode String
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu Integer
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native
Vlan String - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port
Channel StringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed String
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend
Individual String - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- user
Configured StringFlags - Port User Config Flags.
- access
Vlan string - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin
State string - Administrative port state. - Choices:
up
,down
- Default value:up
- auto
Negotiation string - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay number
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description string
- Interface description.
- device string
- A device name from the provider configuration.
- duplex string
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- interface
Id string - Must match first field in the output of
show intf brief
. Example:po1
. - layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum
Links number - Maximum links. - Range:
1
-32
- Default value:32
- medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum
Links number - Minimum links. - Range:
1
-32
- Default value:1
- mode string
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu number
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native
Vlan string - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port
Channel stringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed string
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend
Individual string - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- user
Configured stringFlags - Port User Config Flags.
- access_
vlan str - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin_
state str - Administrative port state. - Choices:
up
,down
- Default value:up
- auto_
negotiation str - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay int
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description str
- Interface description.
- device str
- A device name from the provider configuration.
- duplex str
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- interface_
id str - Must match first field in the output of
show intf brief
. Example:po1
. - layer str
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link_
logging str - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum_
links int - Maximum links. - Range:
1
-32
- Default value:32
- medium str
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum_
links int - Minimum links. - Range:
1
-32
- Default value:1
- mode str
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu int
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native_
vlan str - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port_
channel_ strmode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed str
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend_
individual str - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk_
vlans str - List of trunk VLANs. - Default value:
1-4094
- user_
configured_ strflags - Port User Config Flags.
- access
Vlan String - Access VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- admin
State String - Administrative port state. - Choices:
up
,down
- Default value:up
- auto
Negotiation String - Administrative port auto-negotiation. - Choices:
on
,off
,25G
- Default value:on
- bandwidth Number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range:
0
-3200000000
- Default value:0
- delay Number
- The administrative port delay time. - Range:
1
-16777215
- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices:
auto
,full
,half
- Default value:auto
- interface
Id String - Must match first field in the output of
show intf brief
. Example:po1
. - layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- maximum
Links Number - Maximum links. - Range:
1
-32
- Default value:32
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- minimum
Links Number - Minimum links. - Range:
1
-32
- Default value:1
- mode String
- Administrative port mode. - Choices:
access
,trunk
,fex-fabric
,dot1q-tunnel
,promiscuous
,host
,trunk_secondary
,trunk_promiscuous
,vntag
- Default value:access
- mtu Number
- Administrative port MTU. - Range:
576
-9216
- Default value:1500
- native
Vlan String - Native VLAN. Possible values are
unknown
,vlan-XX
orvxlan-XX
. - Default value:vlan-1
- port
Channel StringMode - The aggregated interface protocol channel mode. - Choices:
on
,static
,active
,passive
,mac-pin
- Default value:on
- speed String
- Administrative port speed. - Choices:
unknown
,100M
,1G
,10G
,40G
,auto
,auto 100M
,auto 100M 1G
,100G
,25G
,10M
,50G
,200G
,400G
,2.5G
,5G
,auto 2.5G 5G 10G
,auto 100M 1G 2.5G 5G
- Default value:auto
- suspend
Individual String - Suspend Individual Port. - Choices:
enable
,disable
- Default value:enable
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- user
Configured StringFlags - Port User Config Flags.
Import
$ pulumi import nxos:index/portChannelInterface:PortChannelInterface example "sys/intf/aggr-[po1]"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nxos lbrlabs/pulumi-nxos
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nxos
Terraform Provider.