generated from pulumi/pulumi-tf-provider-boilerplate
/
physicalInterface.go
667 lines (592 loc) · 31.8 KB
/
physicalInterface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package nxos
import (
"context"
"reflect"
"errors"
"github.com/lbrlabs/pulumi-nxos/sdk/go/nxos/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
)
// This resource can manage a physical interface.
//
// - API Documentation: [l1PhysIf](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/l1:PhysIf/)
//
// ## Example Usage
//
// ```go
// 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
// })
// }
//
// ```
//
// ## Import
//
// ```sh
//
// $ pulumi import nxos:index/physicalInterface:PhysicalInterface example "sys/intf/phys-[eth1/10]"
//
// ```
type PhysicalInterface struct {
pulumi.CustomResourceState
// Access VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
AccessVlan pulumi.StringOutput `pulumi:"accessVlan"`
// Administrative port state. - Choices: `up`, `down` - Default value: `up`
AdminState pulumi.StringOutput `pulumi:"adminState"`
// Administrative port auto-negotiation. - Choices: `on`, `off`, `25G` - Default value: `on`
AutoNegotiation pulumi.StringOutput `pulumi:"autoNegotiation"`
// The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: `0`-`3200000000` - Default
// value: `0`
Bandwidth pulumi.IntOutput `pulumi:"bandwidth"`
// The administrative port delay time. - Range: `1`-`16777215` - Default value: `1`
Delay pulumi.IntOutput `pulumi:"delay"`
// Interface description.
Description pulumi.StringPtrOutput `pulumi:"description"`
// A device name from the provider configuration.
Device pulumi.StringPtrOutput `pulumi:"device"`
// Duplex. - Choices: `auto`, `full`, `half` - Default value: `auto`
Duplex pulumi.StringOutput `pulumi:"duplex"`
// FEC mode. - Choices: `fc-fec`, `rs-fec`, `fec-off`, `auto`, `rs-ieee`, `rs-cons16`, `kp-fec` - Default value: `auto`
FecMode pulumi.StringOutput `pulumi:"fecMode"`
// Must match first field in the output of `show intf brief`. Example: `eth1/1`.
InterfaceId pulumi.StringOutput `pulumi:"interfaceId"`
// Administrative port layer. - Choices: `Layer2`, `Layer3` - Default value: `Layer2`
Layer pulumi.StringOutput `pulumi:"layer"`
// Administrative port link debounce interval. - Range: `0`-`20000` - Default value: `100`
LinkDebounceDown pulumi.IntOutput `pulumi:"linkDebounceDown"`
// Link Debounce Interval - LinkUp Event. - Range: `0`-`20000` - Default value: `0`
LinkDebounceUp pulumi.IntOutput `pulumi:"linkDebounceUp"`
// Administrative link logging. - Choices: `default`, `enable`, `disable` - Default value: `default`
LinkLogging pulumi.StringOutput `pulumi:"linkLogging"`
// The administrative port medium type. - Choices: `broadcast`, `p2p` - Default value: `broadcast`
Medium pulumi.StringOutput `pulumi:"medium"`
// Administrative port mode. - Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`,
// `trunk_secondary`, `trunk_promiscuous`, `vntag` - Default value: `access`
Mode pulumi.StringOutput `pulumi:"mode"`
// Administrative port MTU. - Range: `576`-`9216` - Default value: `1500`
Mtu pulumi.IntOutput `pulumi:"mtu"`
// Native VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
NativeVlan pulumi.StringOutput `pulumi:"nativeVlan"`
// 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 pulumi.StringOutput `pulumi:"speed"`
// Speed group. - Choices: `unknown`, `1000`, `10000`, `40000`, `auto`, `25000` - Default value: `auto`
SpeedGroup pulumi.StringOutput `pulumi:"speedGroup"`
// List of trunk VLANs. - Default value: `1-4094`
TrunkVlans pulumi.StringOutput `pulumi:"trunkVlans"`
// UDE (Uni-Directional Ethernet). - Choices: `disable`, `send-only`, `receive-only` - Default value: `disable`
UniDirectionalEthernet pulumi.StringOutput `pulumi:"uniDirectionalEthernet"`
// Port User Config Flags.
UserConfiguredFlags pulumi.StringPtrOutput `pulumi:"userConfiguredFlags"`
}
// NewPhysicalInterface registers a new resource with the given unique name, arguments, and options.
func NewPhysicalInterface(ctx *pulumi.Context,
name string, args *PhysicalInterfaceArgs, opts ...pulumi.ResourceOption) (*PhysicalInterface, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.InterfaceId == nil {
return nil, errors.New("invalid value for required argument 'InterfaceId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource PhysicalInterface
err := ctx.RegisterResource("nxos:index/physicalInterface:PhysicalInterface", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPhysicalInterface gets an existing PhysicalInterface resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetPhysicalInterface(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PhysicalInterfaceState, opts ...pulumi.ResourceOption) (*PhysicalInterface, error) {
var resource PhysicalInterface
err := ctx.ReadResource("nxos:index/physicalInterface:PhysicalInterface", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PhysicalInterface resources.
type physicalInterfaceState struct {
// Access VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
AccessVlan *string `pulumi:"accessVlan"`
// Administrative port state. - Choices: `up`, `down` - Default value: `up`
AdminState *string `pulumi:"adminState"`
// Administrative port auto-negotiation. - Choices: `on`, `off`, `25G` - Default value: `on`
AutoNegotiation *string `pulumi:"autoNegotiation"`
// The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: `0`-`3200000000` - Default
// value: `0`
Bandwidth *int `pulumi:"bandwidth"`
// The administrative port delay time. - Range: `1`-`16777215` - Default value: `1`
Delay *int `pulumi:"delay"`
// Interface description.
Description *string `pulumi:"description"`
// A device name from the provider configuration.
Device *string `pulumi:"device"`
// Duplex. - Choices: `auto`, `full`, `half` - Default value: `auto`
Duplex *string `pulumi:"duplex"`
// FEC mode. - Choices: `fc-fec`, `rs-fec`, `fec-off`, `auto`, `rs-ieee`, `rs-cons16`, `kp-fec` - Default value: `auto`
FecMode *string `pulumi:"fecMode"`
// Must match first field in the output of `show intf brief`. Example: `eth1/1`.
InterfaceId *string `pulumi:"interfaceId"`
// Administrative port layer. - Choices: `Layer2`, `Layer3` - Default value: `Layer2`
Layer *string `pulumi:"layer"`
// Administrative port link debounce interval. - Range: `0`-`20000` - Default value: `100`
LinkDebounceDown *int `pulumi:"linkDebounceDown"`
// Link Debounce Interval - LinkUp Event. - Range: `0`-`20000` - Default value: `0`
LinkDebounceUp *int `pulumi:"linkDebounceUp"`
// Administrative link logging. - Choices: `default`, `enable`, `disable` - Default value: `default`
LinkLogging *string `pulumi:"linkLogging"`
// The administrative port medium type. - Choices: `broadcast`, `p2p` - Default value: `broadcast`
Medium *string `pulumi:"medium"`
// Administrative port mode. - Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`,
// `trunk_secondary`, `trunk_promiscuous`, `vntag` - Default value: `access`
Mode *string `pulumi:"mode"`
// Administrative port MTU. - Range: `576`-`9216` - Default value: `1500`
Mtu *int `pulumi:"mtu"`
// Native VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
NativeVlan *string `pulumi:"nativeVlan"`
// 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 *string `pulumi:"speed"`
// Speed group. - Choices: `unknown`, `1000`, `10000`, `40000`, `auto`, `25000` - Default value: `auto`
SpeedGroup *string `pulumi:"speedGroup"`
// List of trunk VLANs. - Default value: `1-4094`
TrunkVlans *string `pulumi:"trunkVlans"`
// UDE (Uni-Directional Ethernet). - Choices: `disable`, `send-only`, `receive-only` - Default value: `disable`
UniDirectionalEthernet *string `pulumi:"uniDirectionalEthernet"`
// Port User Config Flags.
UserConfiguredFlags *string `pulumi:"userConfiguredFlags"`
}
type PhysicalInterfaceState struct {
// Access VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
AccessVlan pulumi.StringPtrInput
// Administrative port state. - Choices: `up`, `down` - Default value: `up`
AdminState pulumi.StringPtrInput
// Administrative port auto-negotiation. - Choices: `on`, `off`, `25G` - Default value: `on`
AutoNegotiation pulumi.StringPtrInput
// The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: `0`-`3200000000` - Default
// value: `0`
Bandwidth pulumi.IntPtrInput
// The administrative port delay time. - Range: `1`-`16777215` - Default value: `1`
Delay pulumi.IntPtrInput
// Interface description.
Description pulumi.StringPtrInput
// A device name from the provider configuration.
Device pulumi.StringPtrInput
// Duplex. - Choices: `auto`, `full`, `half` - Default value: `auto`
Duplex pulumi.StringPtrInput
// FEC mode. - Choices: `fc-fec`, `rs-fec`, `fec-off`, `auto`, `rs-ieee`, `rs-cons16`, `kp-fec` - Default value: `auto`
FecMode pulumi.StringPtrInput
// Must match first field in the output of `show intf brief`. Example: `eth1/1`.
InterfaceId pulumi.StringPtrInput
// Administrative port layer. - Choices: `Layer2`, `Layer3` - Default value: `Layer2`
Layer pulumi.StringPtrInput
// Administrative port link debounce interval. - Range: `0`-`20000` - Default value: `100`
LinkDebounceDown pulumi.IntPtrInput
// Link Debounce Interval - LinkUp Event. - Range: `0`-`20000` - Default value: `0`
LinkDebounceUp pulumi.IntPtrInput
// Administrative link logging. - Choices: `default`, `enable`, `disable` - Default value: `default`
LinkLogging pulumi.StringPtrInput
// The administrative port medium type. - Choices: `broadcast`, `p2p` - Default value: `broadcast`
Medium pulumi.StringPtrInput
// Administrative port mode. - Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`,
// `trunk_secondary`, `trunk_promiscuous`, `vntag` - Default value: `access`
Mode pulumi.StringPtrInput
// Administrative port MTU. - Range: `576`-`9216` - Default value: `1500`
Mtu pulumi.IntPtrInput
// Native VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
NativeVlan pulumi.StringPtrInput
// 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 pulumi.StringPtrInput
// Speed group. - Choices: `unknown`, `1000`, `10000`, `40000`, `auto`, `25000` - Default value: `auto`
SpeedGroup pulumi.StringPtrInput
// List of trunk VLANs. - Default value: `1-4094`
TrunkVlans pulumi.StringPtrInput
// UDE (Uni-Directional Ethernet). - Choices: `disable`, `send-only`, `receive-only` - Default value: `disable`
UniDirectionalEthernet pulumi.StringPtrInput
// Port User Config Flags.
UserConfiguredFlags pulumi.StringPtrInput
}
func (PhysicalInterfaceState) ElementType() reflect.Type {
return reflect.TypeOf((*physicalInterfaceState)(nil)).Elem()
}
type physicalInterfaceArgs struct {
// Access VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
AccessVlan *string `pulumi:"accessVlan"`
// Administrative port state. - Choices: `up`, `down` - Default value: `up`
AdminState *string `pulumi:"adminState"`
// Administrative port auto-negotiation. - Choices: `on`, `off`, `25G` - Default value: `on`
AutoNegotiation *string `pulumi:"autoNegotiation"`
// The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: `0`-`3200000000` - Default
// value: `0`
Bandwidth *int `pulumi:"bandwidth"`
// The administrative port delay time. - Range: `1`-`16777215` - Default value: `1`
Delay *int `pulumi:"delay"`
// Interface description.
Description *string `pulumi:"description"`
// A device name from the provider configuration.
Device *string `pulumi:"device"`
// Duplex. - Choices: `auto`, `full`, `half` - Default value: `auto`
Duplex *string `pulumi:"duplex"`
// FEC mode. - Choices: `fc-fec`, `rs-fec`, `fec-off`, `auto`, `rs-ieee`, `rs-cons16`, `kp-fec` - Default value: `auto`
FecMode *string `pulumi:"fecMode"`
// Must match first field in the output of `show intf brief`. Example: `eth1/1`.
InterfaceId string `pulumi:"interfaceId"`
// Administrative port layer. - Choices: `Layer2`, `Layer3` - Default value: `Layer2`
Layer *string `pulumi:"layer"`
// Administrative port link debounce interval. - Range: `0`-`20000` - Default value: `100`
LinkDebounceDown *int `pulumi:"linkDebounceDown"`
// Link Debounce Interval - LinkUp Event. - Range: `0`-`20000` - Default value: `0`
LinkDebounceUp *int `pulumi:"linkDebounceUp"`
// Administrative link logging. - Choices: `default`, `enable`, `disable` - Default value: `default`
LinkLogging *string `pulumi:"linkLogging"`
// The administrative port medium type. - Choices: `broadcast`, `p2p` - Default value: `broadcast`
Medium *string `pulumi:"medium"`
// Administrative port mode. - Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`,
// `trunk_secondary`, `trunk_promiscuous`, `vntag` - Default value: `access`
Mode *string `pulumi:"mode"`
// Administrative port MTU. - Range: `576`-`9216` - Default value: `1500`
Mtu *int `pulumi:"mtu"`
// Native VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
NativeVlan *string `pulumi:"nativeVlan"`
// 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 *string `pulumi:"speed"`
// Speed group. - Choices: `unknown`, `1000`, `10000`, `40000`, `auto`, `25000` - Default value: `auto`
SpeedGroup *string `pulumi:"speedGroup"`
// List of trunk VLANs. - Default value: `1-4094`
TrunkVlans *string `pulumi:"trunkVlans"`
// UDE (Uni-Directional Ethernet). - Choices: `disable`, `send-only`, `receive-only` - Default value: `disable`
UniDirectionalEthernet *string `pulumi:"uniDirectionalEthernet"`
// Port User Config Flags.
UserConfiguredFlags *string `pulumi:"userConfiguredFlags"`
}
// The set of arguments for constructing a PhysicalInterface resource.
type PhysicalInterfaceArgs struct {
// Access VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
AccessVlan pulumi.StringPtrInput
// Administrative port state. - Choices: `up`, `down` - Default value: `up`
AdminState pulumi.StringPtrInput
// Administrative port auto-negotiation. - Choices: `on`, `off`, `25G` - Default value: `on`
AutoNegotiation pulumi.StringPtrInput
// The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: `0`-`3200000000` - Default
// value: `0`
Bandwidth pulumi.IntPtrInput
// The administrative port delay time. - Range: `1`-`16777215` - Default value: `1`
Delay pulumi.IntPtrInput
// Interface description.
Description pulumi.StringPtrInput
// A device name from the provider configuration.
Device pulumi.StringPtrInput
// Duplex. - Choices: `auto`, `full`, `half` - Default value: `auto`
Duplex pulumi.StringPtrInput
// FEC mode. - Choices: `fc-fec`, `rs-fec`, `fec-off`, `auto`, `rs-ieee`, `rs-cons16`, `kp-fec` - Default value: `auto`
FecMode pulumi.StringPtrInput
// Must match first field in the output of `show intf brief`. Example: `eth1/1`.
InterfaceId pulumi.StringInput
// Administrative port layer. - Choices: `Layer2`, `Layer3` - Default value: `Layer2`
Layer pulumi.StringPtrInput
// Administrative port link debounce interval. - Range: `0`-`20000` - Default value: `100`
LinkDebounceDown pulumi.IntPtrInput
// Link Debounce Interval - LinkUp Event. - Range: `0`-`20000` - Default value: `0`
LinkDebounceUp pulumi.IntPtrInput
// Administrative link logging. - Choices: `default`, `enable`, `disable` - Default value: `default`
LinkLogging pulumi.StringPtrInput
// The administrative port medium type. - Choices: `broadcast`, `p2p` - Default value: `broadcast`
Medium pulumi.StringPtrInput
// Administrative port mode. - Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`,
// `trunk_secondary`, `trunk_promiscuous`, `vntag` - Default value: `access`
Mode pulumi.StringPtrInput
// Administrative port MTU. - Range: `576`-`9216` - Default value: `1500`
Mtu pulumi.IntPtrInput
// Native VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
NativeVlan pulumi.StringPtrInput
// 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 pulumi.StringPtrInput
// Speed group. - Choices: `unknown`, `1000`, `10000`, `40000`, `auto`, `25000` - Default value: `auto`
SpeedGroup pulumi.StringPtrInput
// List of trunk VLANs. - Default value: `1-4094`
TrunkVlans pulumi.StringPtrInput
// UDE (Uni-Directional Ethernet). - Choices: `disable`, `send-only`, `receive-only` - Default value: `disable`
UniDirectionalEthernet pulumi.StringPtrInput
// Port User Config Flags.
UserConfiguredFlags pulumi.StringPtrInput
}
func (PhysicalInterfaceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*physicalInterfaceArgs)(nil)).Elem()
}
type PhysicalInterfaceInput interface {
pulumi.Input
ToPhysicalInterfaceOutput() PhysicalInterfaceOutput
ToPhysicalInterfaceOutputWithContext(ctx context.Context) PhysicalInterfaceOutput
}
func (*PhysicalInterface) ElementType() reflect.Type {
return reflect.TypeOf((**PhysicalInterface)(nil)).Elem()
}
func (i *PhysicalInterface) ToPhysicalInterfaceOutput() PhysicalInterfaceOutput {
return i.ToPhysicalInterfaceOutputWithContext(context.Background())
}
func (i *PhysicalInterface) ToPhysicalInterfaceOutputWithContext(ctx context.Context) PhysicalInterfaceOutput {
return pulumi.ToOutputWithContext(ctx, i).(PhysicalInterfaceOutput)
}
func (i *PhysicalInterface) ToOutput(ctx context.Context) pulumix.Output[*PhysicalInterface] {
return pulumix.Output[*PhysicalInterface]{
OutputState: i.ToPhysicalInterfaceOutputWithContext(ctx).OutputState,
}
}
// PhysicalInterfaceArrayInput is an input type that accepts PhysicalInterfaceArray and PhysicalInterfaceArrayOutput values.
// You can construct a concrete instance of `PhysicalInterfaceArrayInput` via:
//
// PhysicalInterfaceArray{ PhysicalInterfaceArgs{...} }
type PhysicalInterfaceArrayInput interface {
pulumi.Input
ToPhysicalInterfaceArrayOutput() PhysicalInterfaceArrayOutput
ToPhysicalInterfaceArrayOutputWithContext(context.Context) PhysicalInterfaceArrayOutput
}
type PhysicalInterfaceArray []PhysicalInterfaceInput
func (PhysicalInterfaceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PhysicalInterface)(nil)).Elem()
}
func (i PhysicalInterfaceArray) ToPhysicalInterfaceArrayOutput() PhysicalInterfaceArrayOutput {
return i.ToPhysicalInterfaceArrayOutputWithContext(context.Background())
}
func (i PhysicalInterfaceArray) ToPhysicalInterfaceArrayOutputWithContext(ctx context.Context) PhysicalInterfaceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PhysicalInterfaceArrayOutput)
}
func (i PhysicalInterfaceArray) ToOutput(ctx context.Context) pulumix.Output[[]*PhysicalInterface] {
return pulumix.Output[[]*PhysicalInterface]{
OutputState: i.ToPhysicalInterfaceArrayOutputWithContext(ctx).OutputState,
}
}
// PhysicalInterfaceMapInput is an input type that accepts PhysicalInterfaceMap and PhysicalInterfaceMapOutput values.
// You can construct a concrete instance of `PhysicalInterfaceMapInput` via:
//
// PhysicalInterfaceMap{ "key": PhysicalInterfaceArgs{...} }
type PhysicalInterfaceMapInput interface {
pulumi.Input
ToPhysicalInterfaceMapOutput() PhysicalInterfaceMapOutput
ToPhysicalInterfaceMapOutputWithContext(context.Context) PhysicalInterfaceMapOutput
}
type PhysicalInterfaceMap map[string]PhysicalInterfaceInput
func (PhysicalInterfaceMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PhysicalInterface)(nil)).Elem()
}
func (i PhysicalInterfaceMap) ToPhysicalInterfaceMapOutput() PhysicalInterfaceMapOutput {
return i.ToPhysicalInterfaceMapOutputWithContext(context.Background())
}
func (i PhysicalInterfaceMap) ToPhysicalInterfaceMapOutputWithContext(ctx context.Context) PhysicalInterfaceMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PhysicalInterfaceMapOutput)
}
func (i PhysicalInterfaceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*PhysicalInterface] {
return pulumix.Output[map[string]*PhysicalInterface]{
OutputState: i.ToPhysicalInterfaceMapOutputWithContext(ctx).OutputState,
}
}
type PhysicalInterfaceOutput struct{ *pulumi.OutputState }
func (PhysicalInterfaceOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PhysicalInterface)(nil)).Elem()
}
func (o PhysicalInterfaceOutput) ToPhysicalInterfaceOutput() PhysicalInterfaceOutput {
return o
}
func (o PhysicalInterfaceOutput) ToPhysicalInterfaceOutputWithContext(ctx context.Context) PhysicalInterfaceOutput {
return o
}
func (o PhysicalInterfaceOutput) ToOutput(ctx context.Context) pulumix.Output[*PhysicalInterface] {
return pulumix.Output[*PhysicalInterface]{
OutputState: o.OutputState,
}
}
// Access VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
func (o PhysicalInterfaceOutput) AccessVlan() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.AccessVlan }).(pulumi.StringOutput)
}
// Administrative port state. - Choices: `up`, `down` - Default value: `up`
func (o PhysicalInterfaceOutput) AdminState() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.AdminState }).(pulumi.StringOutput)
}
// Administrative port auto-negotiation. - Choices: `on`, `off`, `25G` - Default value: `on`
func (o PhysicalInterfaceOutput) AutoNegotiation() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.AutoNegotiation }).(pulumi.StringOutput)
}
// The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: `0`-`3200000000` - Default
// value: `0`
func (o PhysicalInterfaceOutput) Bandwidth() pulumi.IntOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.IntOutput { return v.Bandwidth }).(pulumi.IntOutput)
}
// The administrative port delay time. - Range: `1`-`16777215` - Default value: `1`
func (o PhysicalInterfaceOutput) Delay() pulumi.IntOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.IntOutput { return v.Delay }).(pulumi.IntOutput)
}
// Interface description.
func (o PhysicalInterfaceOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// A device name from the provider configuration.
func (o PhysicalInterfaceOutput) Device() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringPtrOutput { return v.Device }).(pulumi.StringPtrOutput)
}
// Duplex. - Choices: `auto`, `full`, `half` - Default value: `auto`
func (o PhysicalInterfaceOutput) Duplex() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.Duplex }).(pulumi.StringOutput)
}
// FEC mode. - Choices: `fc-fec`, `rs-fec`, `fec-off`, `auto`, `rs-ieee`, `rs-cons16`, `kp-fec` - Default value: `auto`
func (o PhysicalInterfaceOutput) FecMode() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.FecMode }).(pulumi.StringOutput)
}
// Must match first field in the output of `show intf brief`. Example: `eth1/1`.
func (o PhysicalInterfaceOutput) InterfaceId() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.InterfaceId }).(pulumi.StringOutput)
}
// Administrative port layer. - Choices: `Layer2`, `Layer3` - Default value: `Layer2`
func (o PhysicalInterfaceOutput) Layer() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.Layer }).(pulumi.StringOutput)
}
// Administrative port link debounce interval. - Range: `0`-`20000` - Default value: `100`
func (o PhysicalInterfaceOutput) LinkDebounceDown() pulumi.IntOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.IntOutput { return v.LinkDebounceDown }).(pulumi.IntOutput)
}
// Link Debounce Interval - LinkUp Event. - Range: `0`-`20000` - Default value: `0`
func (o PhysicalInterfaceOutput) LinkDebounceUp() pulumi.IntOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.IntOutput { return v.LinkDebounceUp }).(pulumi.IntOutput)
}
// Administrative link logging. - Choices: `default`, `enable`, `disable` - Default value: `default`
func (o PhysicalInterfaceOutput) LinkLogging() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.LinkLogging }).(pulumi.StringOutput)
}
// The administrative port medium type. - Choices: `broadcast`, `p2p` - Default value: `broadcast`
func (o PhysicalInterfaceOutput) Medium() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.Medium }).(pulumi.StringOutput)
}
// Administrative port mode. - Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`,
// `trunk_secondary`, `trunk_promiscuous`, `vntag` - Default value: `access`
func (o PhysicalInterfaceOutput) Mode() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.Mode }).(pulumi.StringOutput)
}
// Administrative port MTU. - Range: `576`-`9216` - Default value: `1500`
func (o PhysicalInterfaceOutput) Mtu() pulumi.IntOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.IntOutput { return v.Mtu }).(pulumi.IntOutput)
}
// Native VLAN. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`. - Default value: `vlan-1`
func (o PhysicalInterfaceOutput) NativeVlan() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.NativeVlan }).(pulumi.StringOutput)
}
// 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`
func (o PhysicalInterfaceOutput) Speed() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.Speed }).(pulumi.StringOutput)
}
// Speed group. - Choices: `unknown`, `1000`, `10000`, `40000`, `auto`, `25000` - Default value: `auto`
func (o PhysicalInterfaceOutput) SpeedGroup() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.SpeedGroup }).(pulumi.StringOutput)
}
// List of trunk VLANs. - Default value: `1-4094`
func (o PhysicalInterfaceOutput) TrunkVlans() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.TrunkVlans }).(pulumi.StringOutput)
}
// UDE (Uni-Directional Ethernet). - Choices: `disable`, `send-only`, `receive-only` - Default value: `disable`
func (o PhysicalInterfaceOutput) UniDirectionalEthernet() pulumi.StringOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringOutput { return v.UniDirectionalEthernet }).(pulumi.StringOutput)
}
// Port User Config Flags.
func (o PhysicalInterfaceOutput) UserConfiguredFlags() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PhysicalInterface) pulumi.StringPtrOutput { return v.UserConfiguredFlags }).(pulumi.StringPtrOutput)
}
type PhysicalInterfaceArrayOutput struct{ *pulumi.OutputState }
func (PhysicalInterfaceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PhysicalInterface)(nil)).Elem()
}
func (o PhysicalInterfaceArrayOutput) ToPhysicalInterfaceArrayOutput() PhysicalInterfaceArrayOutput {
return o
}
func (o PhysicalInterfaceArrayOutput) ToPhysicalInterfaceArrayOutputWithContext(ctx context.Context) PhysicalInterfaceArrayOutput {
return o
}
func (o PhysicalInterfaceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*PhysicalInterface] {
return pulumix.Output[[]*PhysicalInterface]{
OutputState: o.OutputState,
}
}
func (o PhysicalInterfaceArrayOutput) Index(i pulumi.IntInput) PhysicalInterfaceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PhysicalInterface {
return vs[0].([]*PhysicalInterface)[vs[1].(int)]
}).(PhysicalInterfaceOutput)
}
type PhysicalInterfaceMapOutput struct{ *pulumi.OutputState }
func (PhysicalInterfaceMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PhysicalInterface)(nil)).Elem()
}
func (o PhysicalInterfaceMapOutput) ToPhysicalInterfaceMapOutput() PhysicalInterfaceMapOutput {
return o
}
func (o PhysicalInterfaceMapOutput) ToPhysicalInterfaceMapOutputWithContext(ctx context.Context) PhysicalInterfaceMapOutput {
return o
}
func (o PhysicalInterfaceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*PhysicalInterface] {
return pulumix.Output[map[string]*PhysicalInterface]{
OutputState: o.OutputState,
}
}
func (o PhysicalInterfaceMapOutput) MapIndex(k pulumi.StringInput) PhysicalInterfaceOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PhysicalInterface {
return vs[0].(map[string]*PhysicalInterface)[vs[1].(string)]
}).(PhysicalInterfaceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PhysicalInterfaceInput)(nil)).Elem(), &PhysicalInterface{})
pulumi.RegisterInputType(reflect.TypeOf((*PhysicalInterfaceArrayInput)(nil)).Elem(), PhysicalInterfaceArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PhysicalInterfaceMapInput)(nil)).Elem(), PhysicalInterfaceMap{})
pulumi.RegisterOutputType(PhysicalInterfaceOutput{})
pulumi.RegisterOutputType(PhysicalInterfaceArrayOutput{})
pulumi.RegisterOutputType(PhysicalInterfaceMapOutput{})
}