nxos.PhysicalInterface
Explore with Pulumi AI
This resource can manage a physical interface.
- API Documentation: l1PhysIf
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Lbrlabs.PulumiPackage.Nxos;
return await Deployment.RunAsync(() =>
{
var example = new Nxos.PhysicalInterface("example", new()
{
AccessVlan = "unknown",
AdminState = "up",
AutoNegotiation = "on",
Bandwidth = 1000,
Delay = 10,
Description = "My Description",
Duplex = "auto",
FecMode = "auto",
InterfaceId = "eth1/10",
Layer = "Layer3",
LinkDebounceDown = 200,
LinkDebounceUp = 0,
LinkLogging = "enable",
Medium = "broadcast",
Mode = "access",
Mtu = 1500,
NativeVlan = "unknown",
Speed = "auto",
SpeedGroup = "auto",
TrunkVlans = "1-4094",
UniDirectionalEthernet = "disable",
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.NewPhysicalInterface(ctx, "example", &nxos.PhysicalInterfaceArgs{
AccessVlan: pulumi.String("unknown"),
AdminState: pulumi.String("up"),
AutoNegotiation: pulumi.String("on"),
Bandwidth: pulumi.Int(1000),
Delay: pulumi.Int(10),
Description: pulumi.String("My Description"),
Duplex: pulumi.String("auto"),
FecMode: pulumi.String("auto"),
InterfaceId: pulumi.String("eth1/10"),
Layer: pulumi.String("Layer3"),
LinkDebounceDown: pulumi.Int(200),
LinkDebounceUp: pulumi.Int(0),
LinkLogging: pulumi.String("enable"),
Medium: pulumi.String("broadcast"),
Mode: pulumi.String("access"),
Mtu: pulumi.Int(1500),
NativeVlan: pulumi.String("unknown"),
Speed: pulumi.String("auto"),
SpeedGroup: pulumi.String("auto"),
TrunkVlans: pulumi.String("1-4094"),
UniDirectionalEthernet: pulumi.String("disable"),
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.PhysicalInterface;
import com.pulumi.nxos.PhysicalInterfaceArgs;
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 PhysicalInterface("example", PhysicalInterfaceArgs.builder()
.accessVlan("unknown")
.adminState("up")
.autoNegotiation("on")
.bandwidth(1000)
.delay(10)
.description("My Description")
.duplex("auto")
.fecMode("auto")
.interfaceId("eth1/10")
.layer("Layer3")
.linkDebounceDown(200)
.linkDebounceUp(0)
.linkLogging("enable")
.medium("broadcast")
.mode("access")
.mtu(1500)
.nativeVlan("unknown")
.speed("auto")
.speedGroup("auto")
.trunkVlans("1-4094")
.uniDirectionalEthernet("disable")
.userConfiguredFlags("admin_layer,admin_mtu,admin_state")
.build());
}
}
import pulumi
import lbrlabs_pulumi_nxos as nxos
example = nxos.PhysicalInterface("example",
access_vlan="unknown",
admin_state="up",
auto_negotiation="on",
bandwidth=1000,
delay=10,
description="My Description",
duplex="auto",
fec_mode="auto",
interface_id="eth1/10",
layer="Layer3",
link_debounce_down=200,
link_debounce_up=0,
link_logging="enable",
medium="broadcast",
mode="access",
mtu=1500,
native_vlan="unknown",
speed="auto",
speed_group="auto",
trunk_vlans="1-4094",
uni_directional_ethernet="disable",
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.PhysicalInterface("example", {
accessVlan: "unknown",
adminState: "up",
autoNegotiation: "on",
bandwidth: 1000,
delay: 10,
description: "My Description",
duplex: "auto",
fecMode: "auto",
interfaceId: "eth1/10",
layer: "Layer3",
linkDebounceDown: 200,
linkDebounceUp: 0,
linkLogging: "enable",
medium: "broadcast",
mode: "access",
mtu: 1500,
nativeVlan: "unknown",
speed: "auto",
speedGroup: "auto",
trunkVlans: "1-4094",
uniDirectionalEthernet: "disable",
userConfiguredFlags: "admin_layer,admin_mtu,admin_state",
});
resources:
example:
type: nxos:PhysicalInterface
properties:
accessVlan: unknown
adminState: up
autoNegotiation: on
bandwidth: 1000
delay: 10
description: My Description
duplex: auto
fecMode: auto
interfaceId: eth1/10
layer: Layer3
linkDebounceDown: 200
linkDebounceUp: 0
linkLogging: enable
medium: broadcast
mode: access
mtu: 1500
nativeVlan: unknown
speed: auto
speedGroup: auto
trunkVlans: 1-4094
uniDirectionalEthernet: disable
userConfiguredFlags: admin_layer,admin_mtu,admin_state
Create PhysicalInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PhysicalInterface(name: string, args: PhysicalInterfaceArgs, opts?: CustomResourceOptions);
@overload
def PhysicalInterface(resource_name: str,
args: PhysicalInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PhysicalInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface_id: Optional[str] = None,
layer: Optional[str] = None,
bandwidth: Optional[int] = None,
link_debounce_up: Optional[int] = None,
delay: Optional[int] = None,
description: Optional[str] = None,
device: Optional[str] = None,
duplex: Optional[str] = None,
fec_mode: Optional[str] = None,
link_logging: Optional[str] = None,
access_vlan: Optional[str] = None,
user_configured_flags: Optional[str] = None,
auto_negotiation: Optional[str] = None,
admin_state: Optional[str] = None,
medium: Optional[str] = None,
mode: Optional[str] = None,
mtu: Optional[int] = None,
native_vlan: Optional[str] = None,
speed: Optional[str] = None,
speed_group: Optional[str] = None,
trunk_vlans: Optional[str] = None,
uni_directional_ethernet: Optional[str] = None,
link_debounce_down: Optional[int] = None)
func NewPhysicalInterface(ctx *Context, name string, args PhysicalInterfaceArgs, opts ...ResourceOption) (*PhysicalInterface, error)
public PhysicalInterface(string name, PhysicalInterfaceArgs args, CustomResourceOptions? opts = null)
public PhysicalInterface(String name, PhysicalInterfaceArgs args)
public PhysicalInterface(String name, PhysicalInterfaceArgs args, CustomResourceOptions options)
type: nxos:PhysicalInterface
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 PhysicalInterfaceArgs
- 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 PhysicalInterfaceArgs
- 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 PhysicalInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PhysicalInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PhysicalInterfaceArgs
- 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 physicalInterfaceResource = new Nxos.PhysicalInterface("physicalInterfaceResource", new()
{
InterfaceId = "string",
Layer = "string",
Bandwidth = 0,
LinkDebounceUp = 0,
Delay = 0,
Description = "string",
Device = "string",
Duplex = "string",
FecMode = "string",
LinkLogging = "string",
AccessVlan = "string",
UserConfiguredFlags = "string",
AutoNegotiation = "string",
AdminState = "string",
Medium = "string",
Mode = "string",
Mtu = 0,
NativeVlan = "string",
Speed = "string",
SpeedGroup = "string",
TrunkVlans = "string",
UniDirectionalEthernet = "string",
LinkDebounceDown = 0,
});
example, err := nxos.NewPhysicalInterface(ctx, "physicalInterfaceResource", &nxos.PhysicalInterfaceArgs{
InterfaceId: pulumi.String("string"),
Layer: pulumi.String("string"),
Bandwidth: pulumi.Int(0),
LinkDebounceUp: pulumi.Int(0),
Delay: pulumi.Int(0),
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Duplex: pulumi.String("string"),
FecMode: pulumi.String("string"),
LinkLogging: pulumi.String("string"),
AccessVlan: pulumi.String("string"),
UserConfiguredFlags: pulumi.String("string"),
AutoNegotiation: pulumi.String("string"),
AdminState: pulumi.String("string"),
Medium: pulumi.String("string"),
Mode: pulumi.String("string"),
Mtu: pulumi.Int(0),
NativeVlan: pulumi.String("string"),
Speed: pulumi.String("string"),
SpeedGroup: pulumi.String("string"),
TrunkVlans: pulumi.String("string"),
UniDirectionalEthernet: pulumi.String("string"),
LinkDebounceDown: pulumi.Int(0),
})
var physicalInterfaceResource = new PhysicalInterface("physicalInterfaceResource", PhysicalInterfaceArgs.builder()
.interfaceId("string")
.layer("string")
.bandwidth(0)
.linkDebounceUp(0)
.delay(0)
.description("string")
.device("string")
.duplex("string")
.fecMode("string")
.linkLogging("string")
.accessVlan("string")
.userConfiguredFlags("string")
.autoNegotiation("string")
.adminState("string")
.medium("string")
.mode("string")
.mtu(0)
.nativeVlan("string")
.speed("string")
.speedGroup("string")
.trunkVlans("string")
.uniDirectionalEthernet("string")
.linkDebounceDown(0)
.build());
physical_interface_resource = nxos.PhysicalInterface("physicalInterfaceResource",
interface_id="string",
layer="string",
bandwidth=0,
link_debounce_up=0,
delay=0,
description="string",
device="string",
duplex="string",
fec_mode="string",
link_logging="string",
access_vlan="string",
user_configured_flags="string",
auto_negotiation="string",
admin_state="string",
medium="string",
mode="string",
mtu=0,
native_vlan="string",
speed="string",
speed_group="string",
trunk_vlans="string",
uni_directional_ethernet="string",
link_debounce_down=0)
const physicalInterfaceResource = new nxos.PhysicalInterface("physicalInterfaceResource", {
interfaceId: "string",
layer: "string",
bandwidth: 0,
linkDebounceUp: 0,
delay: 0,
description: "string",
device: "string",
duplex: "string",
fecMode: "string",
linkLogging: "string",
accessVlan: "string",
userConfiguredFlags: "string",
autoNegotiation: "string",
adminState: "string",
medium: "string",
mode: "string",
mtu: 0,
nativeVlan: "string",
speed: "string",
speedGroup: "string",
trunkVlans: "string",
uniDirectionalEthernet: "string",
linkDebounceDown: 0,
});
type: nxos:PhysicalInterface
properties:
accessVlan: string
adminState: string
autoNegotiation: string
bandwidth: 0
delay: 0
description: string
device: string
duplex: string
fecMode: string
interfaceId: string
layer: string
linkDebounceDown: 0
linkDebounceUp: 0
linkLogging: string
medium: string
mode: string
mtu: 0
nativeVlan: string
speed: string
speedGroup: string
trunkVlans: string
uniDirectionalEthernet: string
userConfiguredFlags: string
PhysicalInterface 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 PhysicalInterface resource accepts the following input properties:
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - 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
- Fec
Mode string - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Debounce intDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- Link
Debounce intUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- Speed
Group string - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- Uni
Directional stringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- User
Configured stringFlags - Port User Config Flags.
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - 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
- Fec
Mode string - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Debounce intDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- Link
Debounce intUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- Speed
Group string - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- Uni
Directional stringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- User
Configured stringFlags - Port User Config Flags.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - 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
- fec
Mode String - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Debounce IntegerDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link
Debounce IntegerUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed
Group String - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- uni
Directional StringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- user
Configured StringFlags - Port User Config Flags.
- interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - 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
- fec
Mode string - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Debounce numberDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link
Debounce numberUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed
Group string - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- uni
Directional stringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- user
Configured stringFlags - Port User Config Flags.
- interface_
id str - Must match first field in the output of
show intf brief
. Example:eth1/1
. - 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
- fec_
mode str - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- layer str
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link_
debounce_ intdown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link_
debounce_ intup - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link_
logging str - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium str
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed_
group str - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk_
vlans str - List of trunk VLANs. - Default value:
1-4094
- uni_
directional_ strethernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- user_
configured_ strflags - Port User Config Flags.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - 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
- fec
Mode String - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Debounce NumberDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link
Debounce NumberUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed
Group String - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- uni
Directional StringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- user
Configured StringFlags - Port User Config Flags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PhysicalInterface 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 PhysicalInterface Resource
Get an existing PhysicalInterface 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?: PhysicalInterfaceState, opts?: CustomResourceOptions): PhysicalInterface
@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,
fec_mode: Optional[str] = None,
interface_id: Optional[str] = None,
layer: Optional[str] = None,
link_debounce_down: Optional[int] = None,
link_debounce_up: Optional[int] = None,
link_logging: Optional[str] = None,
medium: Optional[str] = None,
mode: Optional[str] = None,
mtu: Optional[int] = None,
native_vlan: Optional[str] = None,
speed: Optional[str] = None,
speed_group: Optional[str] = None,
trunk_vlans: Optional[str] = None,
uni_directional_ethernet: Optional[str] = None,
user_configured_flags: Optional[str] = None) -> PhysicalInterface
func GetPhysicalInterface(ctx *Context, name string, id IDInput, state *PhysicalInterfaceState, opts ...ResourceOption) (*PhysicalInterface, error)
public static PhysicalInterface Get(string name, Input<string> id, PhysicalInterfaceState? state, CustomResourceOptions? opts = null)
public static PhysicalInterface get(String name, Output<String> id, PhysicalInterfaceState 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
- Fec
Mode string - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Debounce intDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- Link
Debounce intUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- Speed
Group string - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- Uni
Directional stringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- 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
- Fec
Mode string - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - Layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- Link
Debounce intDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- Link
Debounce intUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- Link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- Medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- Speed
Group string - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- Trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- Uni
Directional stringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- 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
- fec
Mode String - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Debounce IntegerDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link
Debounce IntegerUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed
Group String - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- uni
Directional StringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- 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
- fec
Mode string - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - layer string
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Debounce numberDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link
Debounce numberUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link
Logging string - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium string
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed
Group string - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk
Vlans string - List of trunk VLANs. - Default value:
1-4094
- uni
Directional stringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- 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
- fec_
mode str - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- interface_
id str - Must match first field in the output of
show intf brief
. Example:eth1/1
. - layer str
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link_
debounce_ intdown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link_
debounce_ intup - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link_
logging str - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium str
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed_
group str - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk_
vlans str - List of trunk VLANs. - Default value:
1-4094
- uni_
directional_ strethernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- 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
- fec
Mode String - FEC mode. - Choices:
fc-fec
,rs-fec
,fec-off
,auto
,rs-ieee
,rs-cons16
,kp-fec
- Default value:auto
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - layer String
- Administrative port layer. - Choices:
Layer2
,Layer3
- Default value:Layer2
- link
Debounce NumberDown - Administrative port link debounce interval. - Range:
0
-20000
- Default value:100
- link
Debounce NumberUp - Link Debounce Interval - LinkUp Event. - Range:
0
-20000
- Default value:0
- link
Logging String - Administrative link logging. - Choices:
default
,enable
,disable
- Default value:default
- medium String
- The administrative port medium type. - Choices:
broadcast
,p2p
- Default value:broadcast
- 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
- 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
- speed
Group String - Speed group. - Choices:
unknown
,1000
,10000
,40000
,auto
,25000
- Default value:auto
- trunk
Vlans String - List of trunk VLANs. - Default value:
1-4094
- uni
Directional StringEthernet - UDE (Uni-Directional Ethernet). - Choices:
disable
,send-only
,receive-only
- Default value:disable
- user
Configured StringFlags - Port User Config Flags.
Import
$ pulumi import nxos:index/physicalInterface:PhysicalInterface example "sys/intf/phys-[eth1/10]"
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.