Documentation ¶
Overview ¶
A Pulumi package for creating and managing OpenWRT resources
Index ¶
- type DhcpDhcp
- type DhcpDhcpArgs
- type DhcpDhcpArray
- type DhcpDhcpArrayInput
- type DhcpDhcpArrayOutput
- func (DhcpDhcpArrayOutput) ElementType() reflect.Type
- func (o DhcpDhcpArrayOutput) Index(i pulumi.IntInput) DhcpDhcpOutput
- func (o DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutput() DhcpDhcpArrayOutput
- func (o DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutputWithContext(ctx context.Context) DhcpDhcpArrayOutput
- func (o DhcpDhcpArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDhcp]
- type DhcpDhcpInput
- type DhcpDhcpMap
- type DhcpDhcpMapInput
- type DhcpDhcpMapOutput
- func (DhcpDhcpMapOutput) ElementType() reflect.Type
- func (o DhcpDhcpMapOutput) MapIndex(k pulumi.StringInput) DhcpDhcpOutput
- func (o DhcpDhcpMapOutput) ToDhcpDhcpMapOutput() DhcpDhcpMapOutput
- func (o DhcpDhcpMapOutput) ToDhcpDhcpMapOutputWithContext(ctx context.Context) DhcpDhcpMapOutput
- func (o DhcpDhcpMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDhcp]
- type DhcpDhcpOutput
- func (o DhcpDhcpOutput) Dhcpv4() pulumi.StringOutput
- func (o DhcpDhcpOutput) Dhcpv6() pulumi.StringOutput
- func (DhcpDhcpOutput) ElementType() reflect.Type
- func (o DhcpDhcpOutput) Force() pulumi.BoolOutput
- func (o DhcpDhcpOutput) Ignore() pulumi.BoolOutput
- func (o DhcpDhcpOutput) Interface() pulumi.StringOutput
- func (o DhcpDhcpOutput) Leasetime() pulumi.StringOutput
- func (o DhcpDhcpOutput) Limit() pulumi.IntOutput
- func (o DhcpDhcpOutput) Ra() pulumi.StringOutput
- func (o DhcpDhcpOutput) RaFlags() pulumi.StringArrayOutput
- func (o DhcpDhcpOutput) Start() pulumi.IntOutput
- func (o DhcpDhcpOutput) ToDhcpDhcpOutput() DhcpDhcpOutput
- func (o DhcpDhcpOutput) ToDhcpDhcpOutputWithContext(ctx context.Context) DhcpDhcpOutput
- func (o DhcpDhcpOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpDhcp]
- type DhcpDhcpState
- type DhcpDnsmasq
- type DhcpDnsmasqArgs
- type DhcpDnsmasqArray
- func (DhcpDnsmasqArray) ElementType() reflect.Type
- func (i DhcpDnsmasqArray) ToDhcpDnsmasqArrayOutput() DhcpDnsmasqArrayOutput
- func (i DhcpDnsmasqArray) ToDhcpDnsmasqArrayOutputWithContext(ctx context.Context) DhcpDnsmasqArrayOutput
- func (i DhcpDnsmasqArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDnsmasq]
- type DhcpDnsmasqArrayInput
- type DhcpDnsmasqArrayOutput
- func (DhcpDnsmasqArrayOutput) ElementType() reflect.Type
- func (o DhcpDnsmasqArrayOutput) Index(i pulumi.IntInput) DhcpDnsmasqOutput
- func (o DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutput() DhcpDnsmasqArrayOutput
- func (o DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutputWithContext(ctx context.Context) DhcpDnsmasqArrayOutput
- func (o DhcpDnsmasqArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDnsmasq]
- type DhcpDnsmasqInput
- type DhcpDnsmasqMap
- func (DhcpDnsmasqMap) ElementType() reflect.Type
- func (i DhcpDnsmasqMap) ToDhcpDnsmasqMapOutput() DhcpDnsmasqMapOutput
- func (i DhcpDnsmasqMap) ToDhcpDnsmasqMapOutputWithContext(ctx context.Context) DhcpDnsmasqMapOutput
- func (i DhcpDnsmasqMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDnsmasq]
- type DhcpDnsmasqMapInput
- type DhcpDnsmasqMapOutput
- func (DhcpDnsmasqMapOutput) ElementType() reflect.Type
- func (o DhcpDnsmasqMapOutput) MapIndex(k pulumi.StringInput) DhcpDnsmasqOutput
- func (o DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutput() DhcpDnsmasqMapOutput
- func (o DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutputWithContext(ctx context.Context) DhcpDnsmasqMapOutput
- func (o DhcpDnsmasqMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDnsmasq]
- type DhcpDnsmasqOutput
- func (o DhcpDnsmasqOutput) Authoritative() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) Domain() pulumi.StringOutput
- func (o DhcpDnsmasqOutput) Domainneeded() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) EdnspacketMax() pulumi.IntOutput
- func (DhcpDnsmasqOutput) ElementType() reflect.Type
- func (o DhcpDnsmasqOutput) Expandhosts() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) Leasefile() pulumi.StringOutput
- func (o DhcpDnsmasqOutput) Local() pulumi.StringOutput
- func (o DhcpDnsmasqOutput) LocaliseQueries() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) Localservice() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) Readethers() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) RebindLocalhost() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) RebindProtection() pulumi.BoolOutput
- func (o DhcpDnsmasqOutput) Resolvfile() pulumi.StringOutput
- func (o DhcpDnsmasqOutput) ToDhcpDnsmasqOutput() DhcpDnsmasqOutput
- func (o DhcpDnsmasqOutput) ToDhcpDnsmasqOutputWithContext(ctx context.Context) DhcpDnsmasqOutput
- func (o DhcpDnsmasqOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpDnsmasq]
- type DhcpDnsmasqState
- type DhcpDomain
- type DhcpDomainArgs
- type DhcpDomainArray
- func (DhcpDomainArray) ElementType() reflect.Type
- func (i DhcpDomainArray) ToDhcpDomainArrayOutput() DhcpDomainArrayOutput
- func (i DhcpDomainArray) ToDhcpDomainArrayOutputWithContext(ctx context.Context) DhcpDomainArrayOutput
- func (i DhcpDomainArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDomain]
- type DhcpDomainArrayInput
- type DhcpDomainArrayOutput
- func (DhcpDomainArrayOutput) ElementType() reflect.Type
- func (o DhcpDomainArrayOutput) Index(i pulumi.IntInput) DhcpDomainOutput
- func (o DhcpDomainArrayOutput) ToDhcpDomainArrayOutput() DhcpDomainArrayOutput
- func (o DhcpDomainArrayOutput) ToDhcpDomainArrayOutputWithContext(ctx context.Context) DhcpDomainArrayOutput
- func (o DhcpDomainArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDomain]
- type DhcpDomainInput
- type DhcpDomainMap
- func (DhcpDomainMap) ElementType() reflect.Type
- func (i DhcpDomainMap) ToDhcpDomainMapOutput() DhcpDomainMapOutput
- func (i DhcpDomainMap) ToDhcpDomainMapOutputWithContext(ctx context.Context) DhcpDomainMapOutput
- func (i DhcpDomainMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDomain]
- type DhcpDomainMapInput
- type DhcpDomainMapOutput
- func (DhcpDomainMapOutput) ElementType() reflect.Type
- func (o DhcpDomainMapOutput) MapIndex(k pulumi.StringInput) DhcpDomainOutput
- func (o DhcpDomainMapOutput) ToDhcpDomainMapOutput() DhcpDomainMapOutput
- func (o DhcpDomainMapOutput) ToDhcpDomainMapOutputWithContext(ctx context.Context) DhcpDomainMapOutput
- func (o DhcpDomainMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDomain]
- type DhcpDomainOutput
- func (DhcpDomainOutput) ElementType() reflect.Type
- func (o DhcpDomainOutput) Ip() pulumi.StringOutput
- func (o DhcpDomainOutput) Name() pulumi.StringOutput
- func (o DhcpDomainOutput) ToDhcpDomainOutput() DhcpDomainOutput
- func (o DhcpDomainOutput) ToDhcpDomainOutputWithContext(ctx context.Context) DhcpDomainOutput
- func (o DhcpDomainOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpDomain]
- type DhcpDomainState
- type DhcpHost
- type DhcpHostArgs
- type DhcpHostArray
- type DhcpHostArrayInput
- type DhcpHostArrayOutput
- func (DhcpHostArrayOutput) ElementType() reflect.Type
- func (o DhcpHostArrayOutput) Index(i pulumi.IntInput) DhcpHostOutput
- func (o DhcpHostArrayOutput) ToDhcpHostArrayOutput() DhcpHostArrayOutput
- func (o DhcpHostArrayOutput) ToDhcpHostArrayOutputWithContext(ctx context.Context) DhcpHostArrayOutput
- func (o DhcpHostArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpHost]
- type DhcpHostInput
- type DhcpHostMap
- type DhcpHostMapInput
- type DhcpHostMapOutput
- func (DhcpHostMapOutput) ElementType() reflect.Type
- func (o DhcpHostMapOutput) MapIndex(k pulumi.StringInput) DhcpHostOutput
- func (o DhcpHostMapOutput) ToDhcpHostMapOutput() DhcpHostMapOutput
- func (o DhcpHostMapOutput) ToDhcpHostMapOutputWithContext(ctx context.Context) DhcpHostMapOutput
- func (o DhcpHostMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpHost]
- type DhcpHostOutput
- func (o DhcpHostOutput) Dns() pulumi.BoolOutput
- func (DhcpHostOutput) ElementType() reflect.Type
- func (o DhcpHostOutput) Ip() pulumi.StringOutput
- func (o DhcpHostOutput) Mac() pulumi.StringOutput
- func (o DhcpHostOutput) Name() pulumi.StringOutput
- func (o DhcpHostOutput) ToDhcpHostOutput() DhcpHostOutput
- func (o DhcpHostOutput) ToDhcpHostOutputWithContext(ctx context.Context) DhcpHostOutput
- func (o DhcpHostOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpHost]
- type DhcpHostState
- type DhcpOdhcpd
- type DhcpOdhcpdArgs
- type DhcpOdhcpdArray
- func (DhcpOdhcpdArray) ElementType() reflect.Type
- func (i DhcpOdhcpdArray) ToDhcpOdhcpdArrayOutput() DhcpOdhcpdArrayOutput
- func (i DhcpOdhcpdArray) ToDhcpOdhcpdArrayOutputWithContext(ctx context.Context) DhcpOdhcpdArrayOutput
- func (i DhcpOdhcpdArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpOdhcpd]
- type DhcpOdhcpdArrayInput
- type DhcpOdhcpdArrayOutput
- func (DhcpOdhcpdArrayOutput) ElementType() reflect.Type
- func (o DhcpOdhcpdArrayOutput) Index(i pulumi.IntInput) DhcpOdhcpdOutput
- func (o DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutput() DhcpOdhcpdArrayOutput
- func (o DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutputWithContext(ctx context.Context) DhcpOdhcpdArrayOutput
- func (o DhcpOdhcpdArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpOdhcpd]
- type DhcpOdhcpdInput
- type DhcpOdhcpdMap
- func (DhcpOdhcpdMap) ElementType() reflect.Type
- func (i DhcpOdhcpdMap) ToDhcpOdhcpdMapOutput() DhcpOdhcpdMapOutput
- func (i DhcpOdhcpdMap) ToDhcpOdhcpdMapOutputWithContext(ctx context.Context) DhcpOdhcpdMapOutput
- func (i DhcpOdhcpdMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpOdhcpd]
- type DhcpOdhcpdMapInput
- type DhcpOdhcpdMapOutput
- func (DhcpOdhcpdMapOutput) ElementType() reflect.Type
- func (o DhcpOdhcpdMapOutput) MapIndex(k pulumi.StringInput) DhcpOdhcpdOutput
- func (o DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutput() DhcpOdhcpdMapOutput
- func (o DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutputWithContext(ctx context.Context) DhcpOdhcpdMapOutput
- func (o DhcpOdhcpdMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpOdhcpd]
- type DhcpOdhcpdOutput
- func (DhcpOdhcpdOutput) ElementType() reflect.Type
- func (o DhcpOdhcpdOutput) Leasefile() pulumi.StringOutput
- func (o DhcpOdhcpdOutput) Leasetrigger() pulumi.StringOutput
- func (o DhcpOdhcpdOutput) Legacy() pulumi.BoolOutput
- func (o DhcpOdhcpdOutput) Loglevel() pulumi.IntOutput
- func (o DhcpOdhcpdOutput) Maindhcp() pulumi.BoolOutput
- func (o DhcpOdhcpdOutput) ToDhcpOdhcpdOutput() DhcpOdhcpdOutput
- func (o DhcpOdhcpdOutput) ToDhcpOdhcpdOutputWithContext(ctx context.Context) DhcpOdhcpdOutput
- func (o DhcpOdhcpdOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpOdhcpd]
- type DhcpOdhcpdState
- type LookupDhcpDhcpArgs
- type LookupDhcpDhcpOutputArgs
- type LookupDhcpDhcpResult
- type LookupDhcpDhcpResultOutput
- func (o LookupDhcpDhcpResultOutput) Dhcpv4() pulumi.StringOutput
- func (o LookupDhcpDhcpResultOutput) Dhcpv6() pulumi.StringOutput
- func (LookupDhcpDhcpResultOutput) ElementType() reflect.Type
- func (o LookupDhcpDhcpResultOutput) Force() pulumi.BoolOutput
- func (o LookupDhcpDhcpResultOutput) Id() pulumi.StringOutput
- func (o LookupDhcpDhcpResultOutput) Ignore() pulumi.BoolOutput
- func (o LookupDhcpDhcpResultOutput) Interface() pulumi.StringOutput
- func (o LookupDhcpDhcpResultOutput) Leasetime() pulumi.StringOutput
- func (o LookupDhcpDhcpResultOutput) Limit() pulumi.IntOutput
- func (o LookupDhcpDhcpResultOutput) Ra() pulumi.StringOutput
- func (o LookupDhcpDhcpResultOutput) RaFlags() pulumi.StringArrayOutput
- func (o LookupDhcpDhcpResultOutput) Start() pulumi.IntOutput
- func (o LookupDhcpDhcpResultOutput) ToLookupDhcpDhcpResultOutput() LookupDhcpDhcpResultOutput
- func (o LookupDhcpDhcpResultOutput) ToLookupDhcpDhcpResultOutputWithContext(ctx context.Context) LookupDhcpDhcpResultOutput
- func (o LookupDhcpDhcpResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpDhcpResult]
- type LookupDhcpDnsmasqArgs
- type LookupDhcpDnsmasqOutputArgs
- type LookupDhcpDnsmasqResult
- type LookupDhcpDnsmasqResultOutput
- func (o LookupDhcpDnsmasqResultOutput) Authoritative() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) Domain() pulumi.StringOutput
- func (o LookupDhcpDnsmasqResultOutput) Domainneeded() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) EdnspacketMax() pulumi.IntOutput
- func (LookupDhcpDnsmasqResultOutput) ElementType() reflect.Type
- func (o LookupDhcpDnsmasqResultOutput) Expandhosts() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) Id() pulumi.StringOutput
- func (o LookupDhcpDnsmasqResultOutput) Leasefile() pulumi.StringOutput
- func (o LookupDhcpDnsmasqResultOutput) Local() pulumi.StringOutput
- func (o LookupDhcpDnsmasqResultOutput) LocaliseQueries() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) Localservice() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) Readethers() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) RebindLocalhost() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) RebindProtection() pulumi.BoolOutput
- func (o LookupDhcpDnsmasqResultOutput) Resolvfile() pulumi.StringOutput
- func (o LookupDhcpDnsmasqResultOutput) ToLookupDhcpDnsmasqResultOutput() LookupDhcpDnsmasqResultOutput
- func (o LookupDhcpDnsmasqResultOutput) ToLookupDhcpDnsmasqResultOutputWithContext(ctx context.Context) LookupDhcpDnsmasqResultOutput
- func (o LookupDhcpDnsmasqResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpDnsmasqResult]
- type LookupDhcpDomainArgs
- type LookupDhcpDomainOutputArgs
- type LookupDhcpDomainResult
- type LookupDhcpDomainResultOutput
- func (LookupDhcpDomainResultOutput) ElementType() reflect.Type
- func (o LookupDhcpDomainResultOutput) Id() pulumi.StringOutput
- func (o LookupDhcpDomainResultOutput) Ip() pulumi.StringOutput
- func (o LookupDhcpDomainResultOutput) Name() pulumi.StringOutput
- func (o LookupDhcpDomainResultOutput) ToLookupDhcpDomainResultOutput() LookupDhcpDomainResultOutput
- func (o LookupDhcpDomainResultOutput) ToLookupDhcpDomainResultOutputWithContext(ctx context.Context) LookupDhcpDomainResultOutput
- func (o LookupDhcpDomainResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpDomainResult]
- type LookupDhcpHostArgs
- type LookupDhcpHostOutputArgs
- type LookupDhcpHostResult
- type LookupDhcpHostResultOutput
- func (o LookupDhcpHostResultOutput) Dns() pulumi.BoolOutput
- func (LookupDhcpHostResultOutput) ElementType() reflect.Type
- func (o LookupDhcpHostResultOutput) Id() pulumi.StringOutput
- func (o LookupDhcpHostResultOutput) Ip() pulumi.StringOutput
- func (o LookupDhcpHostResultOutput) Mac() pulumi.StringOutput
- func (o LookupDhcpHostResultOutput) Name() pulumi.StringOutput
- func (o LookupDhcpHostResultOutput) ToLookupDhcpHostResultOutput() LookupDhcpHostResultOutput
- func (o LookupDhcpHostResultOutput) ToLookupDhcpHostResultOutputWithContext(ctx context.Context) LookupDhcpHostResultOutput
- func (o LookupDhcpHostResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpHostResult]
- type LookupDhcpOdhcpdArgs
- type LookupDhcpOdhcpdOutputArgs
- type LookupDhcpOdhcpdResult
- type LookupDhcpOdhcpdResultOutput
- func (LookupDhcpOdhcpdResultOutput) ElementType() reflect.Type
- func (o LookupDhcpOdhcpdResultOutput) Id() pulumi.StringOutput
- func (o LookupDhcpOdhcpdResultOutput) Leasefile() pulumi.StringOutput
- func (o LookupDhcpOdhcpdResultOutput) Leasetrigger() pulumi.StringOutput
- func (o LookupDhcpOdhcpdResultOutput) Legacy() pulumi.BoolOutput
- func (o LookupDhcpOdhcpdResultOutput) Loglevel() pulumi.IntOutput
- func (o LookupDhcpOdhcpdResultOutput) Maindhcp() pulumi.BoolOutput
- func (o LookupDhcpOdhcpdResultOutput) ToLookupDhcpOdhcpdResultOutput() LookupDhcpOdhcpdResultOutput
- func (o LookupDhcpOdhcpdResultOutput) ToLookupDhcpOdhcpdResultOutputWithContext(ctx context.Context) LookupDhcpOdhcpdResultOutput
- func (o LookupDhcpOdhcpdResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpOdhcpdResult]
- type LookupNetworkDeviceArgs
- type LookupNetworkDeviceOutputArgs
- type LookupNetworkDeviceResult
- type LookupNetworkDeviceResultOutput
- func (o LookupNetworkDeviceResultOutput) BridgeEmpty() pulumi.BoolOutput
- func (o LookupNetworkDeviceResultOutput) Dadtransmits() pulumi.IntOutput
- func (LookupNetworkDeviceResultOutput) ElementType() reflect.Type
- func (o LookupNetworkDeviceResultOutput) Id() pulumi.StringOutput
- func (o LookupNetworkDeviceResultOutput) Ipv6() pulumi.BoolOutput
- func (o LookupNetworkDeviceResultOutput) Macaddr() pulumi.StringOutput
- func (o LookupNetworkDeviceResultOutput) Mtu() pulumi.IntOutput
- func (o LookupNetworkDeviceResultOutput) Mtu6() pulumi.IntOutput
- func (o LookupNetworkDeviceResultOutput) Name() pulumi.StringOutput
- func (o LookupNetworkDeviceResultOutput) Ports() pulumi.StringArrayOutput
- func (o LookupNetworkDeviceResultOutput) ToLookupNetworkDeviceResultOutput() LookupNetworkDeviceResultOutput
- func (o LookupNetworkDeviceResultOutput) ToLookupNetworkDeviceResultOutputWithContext(ctx context.Context) LookupNetworkDeviceResultOutput
- func (o LookupNetworkDeviceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkDeviceResult]
- func (o LookupNetworkDeviceResultOutput) Txqueuelen() pulumi.IntOutput
- func (o LookupNetworkDeviceResultOutput) Type() pulumi.StringOutput
- type LookupNetworkGlobalsArgs
- type LookupNetworkGlobalsOutputArgs
- type LookupNetworkGlobalsResult
- type LookupNetworkGlobalsResultOutput
- func (LookupNetworkGlobalsResultOutput) ElementType() reflect.Type
- func (o LookupNetworkGlobalsResultOutput) Id() pulumi.StringOutput
- func (o LookupNetworkGlobalsResultOutput) PacketSteering() pulumi.BoolOutput
- func (o LookupNetworkGlobalsResultOutput) ToLookupNetworkGlobalsResultOutput() LookupNetworkGlobalsResultOutput
- func (o LookupNetworkGlobalsResultOutput) ToLookupNetworkGlobalsResultOutputWithContext(ctx context.Context) LookupNetworkGlobalsResultOutput
- func (o LookupNetworkGlobalsResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkGlobalsResult]
- func (o LookupNetworkGlobalsResultOutput) UlaPrefix() pulumi.StringOutput
- type LookupNetworkInterfaceArgs
- type LookupNetworkInterfaceOutputArgs
- type LookupNetworkInterfaceResult
- type LookupNetworkInterfaceResultOutput
- func (o LookupNetworkInterfaceResultOutput) Auto() pulumi.BoolOutput
- func (o LookupNetworkInterfaceResultOutput) Device() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Disabled() pulumi.BoolOutput
- func (o LookupNetworkInterfaceResultOutput) Dns() pulumi.StringArrayOutput
- func (LookupNetworkInterfaceResultOutput) ElementType() reflect.Type
- func (o LookupNetworkInterfaceResultOutput) Gateway() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Id() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Ip6assign() pulumi.IntOutput
- func (o LookupNetworkInterfaceResultOutput) Ipaddr() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Macaddr() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Mtu() pulumi.IntOutput
- func (o LookupNetworkInterfaceResultOutput) Netmask() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Peerdns() pulumi.BoolOutput
- func (o LookupNetworkInterfaceResultOutput) Proto() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Reqaddress() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) Reqprefix() pulumi.StringOutput
- func (o LookupNetworkInterfaceResultOutput) ToLookupNetworkInterfaceResultOutput() LookupNetworkInterfaceResultOutput
- func (o LookupNetworkInterfaceResultOutput) ToLookupNetworkInterfaceResultOutputWithContext(ctx context.Context) LookupNetworkInterfaceResultOutput
- func (o LookupNetworkInterfaceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkInterfaceResult]
- type LookupNetworkSwitchArgs
- type LookupNetworkSwitchOutputArgs
- type LookupNetworkSwitchResult
- type LookupNetworkSwitchResultOutput
- func (LookupNetworkSwitchResultOutput) ElementType() reflect.Type
- func (o LookupNetworkSwitchResultOutput) EnableMirrorRx() pulumi.BoolOutput
- func (o LookupNetworkSwitchResultOutput) EnableMirrorTx() pulumi.BoolOutput
- func (o LookupNetworkSwitchResultOutput) EnableVlan() pulumi.BoolOutput
- func (o LookupNetworkSwitchResultOutput) Id() pulumi.StringOutput
- func (o LookupNetworkSwitchResultOutput) MirrorMonitorPort() pulumi.IntOutput
- func (o LookupNetworkSwitchResultOutput) MirrorSourcePort() pulumi.IntOutput
- func (o LookupNetworkSwitchResultOutput) Name() pulumi.StringOutput
- func (o LookupNetworkSwitchResultOutput) Reset() pulumi.BoolOutput
- func (o LookupNetworkSwitchResultOutput) ToLookupNetworkSwitchResultOutput() LookupNetworkSwitchResultOutput
- func (o LookupNetworkSwitchResultOutput) ToLookupNetworkSwitchResultOutputWithContext(ctx context.Context) LookupNetworkSwitchResultOutput
- func (o LookupNetworkSwitchResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkSwitchResult]
- type LookupNetworkSwitchVlanArgs
- type LookupNetworkSwitchVlanOutputArgs
- type LookupNetworkSwitchVlanResult
- type LookupNetworkSwitchVlanResultOutput
- func (o LookupNetworkSwitchVlanResultOutput) Description() pulumi.StringOutput
- func (o LookupNetworkSwitchVlanResultOutput) Device() pulumi.StringOutput
- func (LookupNetworkSwitchVlanResultOutput) ElementType() reflect.Type
- func (o LookupNetworkSwitchVlanResultOutput) Id() pulumi.StringOutput
- func (o LookupNetworkSwitchVlanResultOutput) Ports() pulumi.StringOutput
- func (o LookupNetworkSwitchVlanResultOutput) ToLookupNetworkSwitchVlanResultOutput() LookupNetworkSwitchVlanResultOutput
- func (o LookupNetworkSwitchVlanResultOutput) ToLookupNetworkSwitchVlanResultOutputWithContext(ctx context.Context) LookupNetworkSwitchVlanResultOutput
- func (o LookupNetworkSwitchVlanResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkSwitchVlanResult]
- func (o LookupNetworkSwitchVlanResultOutput) Vid() pulumi.IntOutput
- func (o LookupNetworkSwitchVlanResultOutput) Vlan() pulumi.IntOutput
- type LookupSystemSystemArgs
- type LookupSystemSystemOutputArgs
- type LookupSystemSystemResult
- type LookupSystemSystemResultOutput
- func (o LookupSystemSystemResultOutput) Conloglevel() pulumi.IntOutput
- func (o LookupSystemSystemResultOutput) Cronloglevel() pulumi.IntOutput
- func (o LookupSystemSystemResultOutput) Description() pulumi.StringOutput
- func (LookupSystemSystemResultOutput) ElementType() reflect.Type
- func (o LookupSystemSystemResultOutput) Hostname() pulumi.StringOutput
- func (o LookupSystemSystemResultOutput) Id() pulumi.StringOutput
- func (o LookupSystemSystemResultOutput) LogSize() pulumi.IntOutput
- func (o LookupSystemSystemResultOutput) Notes() pulumi.StringOutput
- func (o LookupSystemSystemResultOutput) Timezone() pulumi.StringOutput
- func (o LookupSystemSystemResultOutput) ToLookupSystemSystemResultOutput() LookupSystemSystemResultOutput
- func (o LookupSystemSystemResultOutput) ToLookupSystemSystemResultOutputWithContext(ctx context.Context) LookupSystemSystemResultOutput
- func (o LookupSystemSystemResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupSystemSystemResult]
- func (o LookupSystemSystemResultOutput) Ttylogin() pulumi.BoolOutput
- func (o LookupSystemSystemResultOutput) Zonename() pulumi.StringOutput
- type LookupWirelessWifiDeviceArgs
- type LookupWirelessWifiDeviceOutputArgs
- type LookupWirelessWifiDeviceResult
- type LookupWirelessWifiDeviceResultOutput
- func (o LookupWirelessWifiDeviceResultOutput) Band() pulumi.StringOutput
- func (o LookupWirelessWifiDeviceResultOutput) CellDensity() pulumi.IntOutput
- func (o LookupWirelessWifiDeviceResultOutput) Channel() pulumi.StringOutput
- func (o LookupWirelessWifiDeviceResultOutput) Country() pulumi.StringOutput
- func (LookupWirelessWifiDeviceResultOutput) ElementType() reflect.Type
- func (o LookupWirelessWifiDeviceResultOutput) Htmode() pulumi.StringOutput
- func (o LookupWirelessWifiDeviceResultOutput) Id() pulumi.StringOutput
- func (o LookupWirelessWifiDeviceResultOutput) Path() pulumi.StringOutput
- func (o LookupWirelessWifiDeviceResultOutput) ToLookupWirelessWifiDeviceResultOutput() LookupWirelessWifiDeviceResultOutput
- func (o LookupWirelessWifiDeviceResultOutput) ToLookupWirelessWifiDeviceResultOutputWithContext(ctx context.Context) LookupWirelessWifiDeviceResultOutput
- func (o LookupWirelessWifiDeviceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupWirelessWifiDeviceResult]
- func (o LookupWirelessWifiDeviceResultOutput) Type() pulumi.StringOutput
- type LookupWirelessWifiIfaceArgs
- type LookupWirelessWifiIfaceOutputArgs
- type LookupWirelessWifiIfaceResult
- type LookupWirelessWifiIfaceResultOutput
- func (o LookupWirelessWifiIfaceResultOutput) Device() pulumi.StringOutput
- func (LookupWirelessWifiIfaceResultOutput) ElementType() reflect.Type
- func (o LookupWirelessWifiIfaceResultOutput) Encryption() pulumi.StringOutput
- func (o LookupWirelessWifiIfaceResultOutput) Id() pulumi.StringOutput
- func (o LookupWirelessWifiIfaceResultOutput) Isolate() pulumi.BoolOutput
- func (o LookupWirelessWifiIfaceResultOutput) Key() pulumi.StringOutput
- func (o LookupWirelessWifiIfaceResultOutput) Mode() pulumi.StringOutput
- func (o LookupWirelessWifiIfaceResultOutput) Network() pulumi.StringOutput
- func (o LookupWirelessWifiIfaceResultOutput) Ssid() pulumi.StringOutput
- func (o LookupWirelessWifiIfaceResultOutput) ToLookupWirelessWifiIfaceResultOutput() LookupWirelessWifiIfaceResultOutput
- func (o LookupWirelessWifiIfaceResultOutput) ToLookupWirelessWifiIfaceResultOutputWithContext(ctx context.Context) LookupWirelessWifiIfaceResultOutput
- func (o LookupWirelessWifiIfaceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupWirelessWifiIfaceResult]
- func (o LookupWirelessWifiIfaceResultOutput) WpaDisableEapolKeyRetries() pulumi.BoolOutput
- type NetworkDevice
- type NetworkDeviceArgs
- type NetworkDeviceArray
- func (NetworkDeviceArray) ElementType() reflect.Type
- func (i NetworkDeviceArray) ToNetworkDeviceArrayOutput() NetworkDeviceArrayOutput
- func (i NetworkDeviceArray) ToNetworkDeviceArrayOutputWithContext(ctx context.Context) NetworkDeviceArrayOutput
- func (i NetworkDeviceArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkDevice]
- type NetworkDeviceArrayInput
- type NetworkDeviceArrayOutput
- func (NetworkDeviceArrayOutput) ElementType() reflect.Type
- func (o NetworkDeviceArrayOutput) Index(i pulumi.IntInput) NetworkDeviceOutput
- func (o NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutput() NetworkDeviceArrayOutput
- func (o NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutputWithContext(ctx context.Context) NetworkDeviceArrayOutput
- func (o NetworkDeviceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkDevice]
- type NetworkDeviceInput
- type NetworkDeviceMap
- func (NetworkDeviceMap) ElementType() reflect.Type
- func (i NetworkDeviceMap) ToNetworkDeviceMapOutput() NetworkDeviceMapOutput
- func (i NetworkDeviceMap) ToNetworkDeviceMapOutputWithContext(ctx context.Context) NetworkDeviceMapOutput
- func (i NetworkDeviceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkDevice]
- type NetworkDeviceMapInput
- type NetworkDeviceMapOutput
- func (NetworkDeviceMapOutput) ElementType() reflect.Type
- func (o NetworkDeviceMapOutput) MapIndex(k pulumi.StringInput) NetworkDeviceOutput
- func (o NetworkDeviceMapOutput) ToNetworkDeviceMapOutput() NetworkDeviceMapOutput
- func (o NetworkDeviceMapOutput) ToNetworkDeviceMapOutputWithContext(ctx context.Context) NetworkDeviceMapOutput
- func (o NetworkDeviceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkDevice]
- type NetworkDeviceOutput
- func (o NetworkDeviceOutput) BridgeEmpty() pulumi.BoolOutput
- func (o NetworkDeviceOutput) Dadtransmits() pulumi.IntOutput
- func (NetworkDeviceOutput) ElementType() reflect.Type
- func (o NetworkDeviceOutput) Ipv6() pulumi.BoolOutput
- func (o NetworkDeviceOutput) Macaddr() pulumi.StringOutput
- func (o NetworkDeviceOutput) Mtu() pulumi.IntOutput
- func (o NetworkDeviceOutput) Mtu6() pulumi.IntOutput
- func (o NetworkDeviceOutput) Name() pulumi.StringOutput
- func (o NetworkDeviceOutput) Ports() pulumi.StringArrayOutput
- func (o NetworkDeviceOutput) ToNetworkDeviceOutput() NetworkDeviceOutput
- func (o NetworkDeviceOutput) ToNetworkDeviceOutputWithContext(ctx context.Context) NetworkDeviceOutput
- func (o NetworkDeviceOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkDevice]
- func (o NetworkDeviceOutput) Txqueuelen() pulumi.IntOutput
- func (o NetworkDeviceOutput) Type() pulumi.StringOutput
- type NetworkDeviceState
- type NetworkGlobals
- func (*NetworkGlobals) ElementType() reflect.Type
- func (i *NetworkGlobals) ToNetworkGlobalsOutput() NetworkGlobalsOutput
- func (i *NetworkGlobals) ToNetworkGlobalsOutputWithContext(ctx context.Context) NetworkGlobalsOutput
- func (i *NetworkGlobals) ToOutput(ctx context.Context) pulumix.Output[*NetworkGlobals]
- type NetworkGlobalsArgs
- type NetworkGlobalsArray
- func (NetworkGlobalsArray) ElementType() reflect.Type
- func (i NetworkGlobalsArray) ToNetworkGlobalsArrayOutput() NetworkGlobalsArrayOutput
- func (i NetworkGlobalsArray) ToNetworkGlobalsArrayOutputWithContext(ctx context.Context) NetworkGlobalsArrayOutput
- func (i NetworkGlobalsArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkGlobals]
- type NetworkGlobalsArrayInput
- type NetworkGlobalsArrayOutput
- func (NetworkGlobalsArrayOutput) ElementType() reflect.Type
- func (o NetworkGlobalsArrayOutput) Index(i pulumi.IntInput) NetworkGlobalsOutput
- func (o NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutput() NetworkGlobalsArrayOutput
- func (o NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutputWithContext(ctx context.Context) NetworkGlobalsArrayOutput
- func (o NetworkGlobalsArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkGlobals]
- type NetworkGlobalsInput
- type NetworkGlobalsMap
- func (NetworkGlobalsMap) ElementType() reflect.Type
- func (i NetworkGlobalsMap) ToNetworkGlobalsMapOutput() NetworkGlobalsMapOutput
- func (i NetworkGlobalsMap) ToNetworkGlobalsMapOutputWithContext(ctx context.Context) NetworkGlobalsMapOutput
- func (i NetworkGlobalsMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkGlobals]
- type NetworkGlobalsMapInput
- type NetworkGlobalsMapOutput
- func (NetworkGlobalsMapOutput) ElementType() reflect.Type
- func (o NetworkGlobalsMapOutput) MapIndex(k pulumi.StringInput) NetworkGlobalsOutput
- func (o NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutput() NetworkGlobalsMapOutput
- func (o NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutputWithContext(ctx context.Context) NetworkGlobalsMapOutput
- func (o NetworkGlobalsMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkGlobals]
- type NetworkGlobalsOutput
- func (NetworkGlobalsOutput) ElementType() reflect.Type
- func (o NetworkGlobalsOutput) PacketSteering() pulumi.BoolOutput
- func (o NetworkGlobalsOutput) ToNetworkGlobalsOutput() NetworkGlobalsOutput
- func (o NetworkGlobalsOutput) ToNetworkGlobalsOutputWithContext(ctx context.Context) NetworkGlobalsOutput
- func (o NetworkGlobalsOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkGlobals]
- func (o NetworkGlobalsOutput) UlaPrefix() pulumi.StringOutput
- type NetworkGlobalsState
- type NetworkInterface
- func (*NetworkInterface) ElementType() reflect.Type
- func (i *NetworkInterface) ToNetworkInterfaceOutput() NetworkInterfaceOutput
- func (i *NetworkInterface) ToNetworkInterfaceOutputWithContext(ctx context.Context) NetworkInterfaceOutput
- func (i *NetworkInterface) ToOutput(ctx context.Context) pulumix.Output[*NetworkInterface]
- type NetworkInterfaceArgs
- type NetworkInterfaceArray
- func (NetworkInterfaceArray) ElementType() reflect.Type
- func (i NetworkInterfaceArray) ToNetworkInterfaceArrayOutput() NetworkInterfaceArrayOutput
- func (i NetworkInterfaceArray) ToNetworkInterfaceArrayOutputWithContext(ctx context.Context) NetworkInterfaceArrayOutput
- func (i NetworkInterfaceArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkInterface]
- type NetworkInterfaceArrayInput
- type NetworkInterfaceArrayOutput
- func (NetworkInterfaceArrayOutput) ElementType() reflect.Type
- func (o NetworkInterfaceArrayOutput) Index(i pulumi.IntInput) NetworkInterfaceOutput
- func (o NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutput() NetworkInterfaceArrayOutput
- func (o NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutputWithContext(ctx context.Context) NetworkInterfaceArrayOutput
- func (o NetworkInterfaceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkInterface]
- type NetworkInterfaceInput
- type NetworkInterfaceMap
- func (NetworkInterfaceMap) ElementType() reflect.Type
- func (i NetworkInterfaceMap) ToNetworkInterfaceMapOutput() NetworkInterfaceMapOutput
- func (i NetworkInterfaceMap) ToNetworkInterfaceMapOutputWithContext(ctx context.Context) NetworkInterfaceMapOutput
- func (i NetworkInterfaceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkInterface]
- type NetworkInterfaceMapInput
- type NetworkInterfaceMapOutput
- func (NetworkInterfaceMapOutput) ElementType() reflect.Type
- func (o NetworkInterfaceMapOutput) MapIndex(k pulumi.StringInput) NetworkInterfaceOutput
- func (o NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutput() NetworkInterfaceMapOutput
- func (o NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutputWithContext(ctx context.Context) NetworkInterfaceMapOutput
- func (o NetworkInterfaceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkInterface]
- type NetworkInterfaceOutput
- func (o NetworkInterfaceOutput) Auto() pulumi.BoolOutput
- func (o NetworkInterfaceOutput) Device() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Disabled() pulumi.BoolOutput
- func (o NetworkInterfaceOutput) Dns() pulumi.StringArrayOutput
- func (NetworkInterfaceOutput) ElementType() reflect.Type
- func (o NetworkInterfaceOutput) Gateway() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Ip6assign() pulumi.IntOutput
- func (o NetworkInterfaceOutput) Ipaddr() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Macaddr() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Mtu() pulumi.IntOutput
- func (o NetworkInterfaceOutput) Netmask() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Peerdns() pulumi.BoolOutput
- func (o NetworkInterfaceOutput) Proto() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Reqaddress() pulumi.StringOutput
- func (o NetworkInterfaceOutput) Reqprefix() pulumi.StringOutput
- func (o NetworkInterfaceOutput) ToNetworkInterfaceOutput() NetworkInterfaceOutput
- func (o NetworkInterfaceOutput) ToNetworkInterfaceOutputWithContext(ctx context.Context) NetworkInterfaceOutput
- func (o NetworkInterfaceOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkInterface]
- type NetworkInterfaceState
- type NetworkSwitch
- type NetworkSwitchArgs
- type NetworkSwitchArray
- func (NetworkSwitchArray) ElementType() reflect.Type
- func (i NetworkSwitchArray) ToNetworkSwitchArrayOutput() NetworkSwitchArrayOutput
- func (i NetworkSwitchArray) ToNetworkSwitchArrayOutputWithContext(ctx context.Context) NetworkSwitchArrayOutput
- func (i NetworkSwitchArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitch]
- type NetworkSwitchArrayInput
- type NetworkSwitchArrayOutput
- func (NetworkSwitchArrayOutput) ElementType() reflect.Type
- func (o NetworkSwitchArrayOutput) Index(i pulumi.IntInput) NetworkSwitchOutput
- func (o NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutput() NetworkSwitchArrayOutput
- func (o NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutputWithContext(ctx context.Context) NetworkSwitchArrayOutput
- func (o NetworkSwitchArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitch]
- type NetworkSwitchInput
- type NetworkSwitchMap
- func (NetworkSwitchMap) ElementType() reflect.Type
- func (i NetworkSwitchMap) ToNetworkSwitchMapOutput() NetworkSwitchMapOutput
- func (i NetworkSwitchMap) ToNetworkSwitchMapOutputWithContext(ctx context.Context) NetworkSwitchMapOutput
- func (i NetworkSwitchMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitch]
- type NetworkSwitchMapInput
- type NetworkSwitchMapOutput
- func (NetworkSwitchMapOutput) ElementType() reflect.Type
- func (o NetworkSwitchMapOutput) MapIndex(k pulumi.StringInput) NetworkSwitchOutput
- func (o NetworkSwitchMapOutput) ToNetworkSwitchMapOutput() NetworkSwitchMapOutput
- func (o NetworkSwitchMapOutput) ToNetworkSwitchMapOutputWithContext(ctx context.Context) NetworkSwitchMapOutput
- func (o NetworkSwitchMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitch]
- type NetworkSwitchOutput
- func (NetworkSwitchOutput) ElementType() reflect.Type
- func (o NetworkSwitchOutput) EnableMirrorRx() pulumi.BoolOutput
- func (o NetworkSwitchOutput) EnableMirrorTx() pulumi.BoolOutput
- func (o NetworkSwitchOutput) EnableVlan() pulumi.BoolOutput
- func (o NetworkSwitchOutput) MirrorMonitorPort() pulumi.IntOutput
- func (o NetworkSwitchOutput) MirrorSourcePort() pulumi.IntOutput
- func (o NetworkSwitchOutput) Name() pulumi.StringOutput
- func (o NetworkSwitchOutput) Reset() pulumi.BoolOutput
- func (o NetworkSwitchOutput) ToNetworkSwitchOutput() NetworkSwitchOutput
- func (o NetworkSwitchOutput) ToNetworkSwitchOutputWithContext(ctx context.Context) NetworkSwitchOutput
- func (o NetworkSwitchOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitch]
- type NetworkSwitchState
- type NetworkSwitchVlan
- func (*NetworkSwitchVlan) ElementType() reflect.Type
- func (i *NetworkSwitchVlan) ToNetworkSwitchVlanOutput() NetworkSwitchVlanOutput
- func (i *NetworkSwitchVlan) ToNetworkSwitchVlanOutputWithContext(ctx context.Context) NetworkSwitchVlanOutput
- func (i *NetworkSwitchVlan) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitchVlan]
- type NetworkSwitchVlanArgs
- type NetworkSwitchVlanArray
- func (NetworkSwitchVlanArray) ElementType() reflect.Type
- func (i NetworkSwitchVlanArray) ToNetworkSwitchVlanArrayOutput() NetworkSwitchVlanArrayOutput
- func (i NetworkSwitchVlanArray) ToNetworkSwitchVlanArrayOutputWithContext(ctx context.Context) NetworkSwitchVlanArrayOutput
- func (i NetworkSwitchVlanArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitchVlan]
- type NetworkSwitchVlanArrayInput
- type NetworkSwitchVlanArrayOutput
- func (NetworkSwitchVlanArrayOutput) ElementType() reflect.Type
- func (o NetworkSwitchVlanArrayOutput) Index(i pulumi.IntInput) NetworkSwitchVlanOutput
- func (o NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutput() NetworkSwitchVlanArrayOutput
- func (o NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutputWithContext(ctx context.Context) NetworkSwitchVlanArrayOutput
- func (o NetworkSwitchVlanArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitchVlan]
- type NetworkSwitchVlanInput
- type NetworkSwitchVlanMap
- func (NetworkSwitchVlanMap) ElementType() reflect.Type
- func (i NetworkSwitchVlanMap) ToNetworkSwitchVlanMapOutput() NetworkSwitchVlanMapOutput
- func (i NetworkSwitchVlanMap) ToNetworkSwitchVlanMapOutputWithContext(ctx context.Context) NetworkSwitchVlanMapOutput
- func (i NetworkSwitchVlanMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitchVlan]
- type NetworkSwitchVlanMapInput
- type NetworkSwitchVlanMapOutput
- func (NetworkSwitchVlanMapOutput) ElementType() reflect.Type
- func (o NetworkSwitchVlanMapOutput) MapIndex(k pulumi.StringInput) NetworkSwitchVlanOutput
- func (o NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutput() NetworkSwitchVlanMapOutput
- func (o NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutputWithContext(ctx context.Context) NetworkSwitchVlanMapOutput
- func (o NetworkSwitchVlanMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitchVlan]
- type NetworkSwitchVlanOutput
- func (o NetworkSwitchVlanOutput) Description() pulumi.StringOutput
- func (o NetworkSwitchVlanOutput) Device() pulumi.StringOutput
- func (NetworkSwitchVlanOutput) ElementType() reflect.Type
- func (o NetworkSwitchVlanOutput) Ports() pulumi.StringOutput
- func (o NetworkSwitchVlanOutput) ToNetworkSwitchVlanOutput() NetworkSwitchVlanOutput
- func (o NetworkSwitchVlanOutput) ToNetworkSwitchVlanOutputWithContext(ctx context.Context) NetworkSwitchVlanOutput
- func (o NetworkSwitchVlanOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitchVlan]
- func (o NetworkSwitchVlanOutput) Vid() pulumi.IntOutput
- func (o NetworkSwitchVlanOutput) Vlan() pulumi.IntOutput
- type NetworkSwitchVlanState
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
- func (ProviderOutput) ElementType() reflect.Type
- func (o ProviderOutput) Hostname() pulumi.StringPtrOutput
- func (o ProviderOutput) Password() pulumi.StringPtrOutput
- func (o ProviderOutput) Scheme() pulumi.StringPtrOutput
- func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[*Provider]
- func (o ProviderOutput) ToProviderOutput() ProviderOutput
- func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (o ProviderOutput) Username() pulumi.StringPtrOutput
- type SystemSystem
- type SystemSystemArgs
- type SystemSystemArray
- func (SystemSystemArray) ElementType() reflect.Type
- func (i SystemSystemArray) ToOutput(ctx context.Context) pulumix.Output[[]*SystemSystem]
- func (i SystemSystemArray) ToSystemSystemArrayOutput() SystemSystemArrayOutput
- func (i SystemSystemArray) ToSystemSystemArrayOutputWithContext(ctx context.Context) SystemSystemArrayOutput
- type SystemSystemArrayInput
- type SystemSystemArrayOutput
- func (SystemSystemArrayOutput) ElementType() reflect.Type
- func (o SystemSystemArrayOutput) Index(i pulumi.IntInput) SystemSystemOutput
- func (o SystemSystemArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SystemSystem]
- func (o SystemSystemArrayOutput) ToSystemSystemArrayOutput() SystemSystemArrayOutput
- func (o SystemSystemArrayOutput) ToSystemSystemArrayOutputWithContext(ctx context.Context) SystemSystemArrayOutput
- type SystemSystemInput
- type SystemSystemMap
- func (SystemSystemMap) ElementType() reflect.Type
- func (i SystemSystemMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SystemSystem]
- func (i SystemSystemMap) ToSystemSystemMapOutput() SystemSystemMapOutput
- func (i SystemSystemMap) ToSystemSystemMapOutputWithContext(ctx context.Context) SystemSystemMapOutput
- type SystemSystemMapInput
- type SystemSystemMapOutput
- func (SystemSystemMapOutput) ElementType() reflect.Type
- func (o SystemSystemMapOutput) MapIndex(k pulumi.StringInput) SystemSystemOutput
- func (o SystemSystemMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SystemSystem]
- func (o SystemSystemMapOutput) ToSystemSystemMapOutput() SystemSystemMapOutput
- func (o SystemSystemMapOutput) ToSystemSystemMapOutputWithContext(ctx context.Context) SystemSystemMapOutput
- type SystemSystemOutput
- func (o SystemSystemOutput) Conloglevel() pulumi.IntOutput
- func (o SystemSystemOutput) Cronloglevel() pulumi.IntOutput
- func (o SystemSystemOutput) Description() pulumi.StringOutput
- func (SystemSystemOutput) ElementType() reflect.Type
- func (o SystemSystemOutput) Hostname() pulumi.StringOutput
- func (o SystemSystemOutput) LogSize() pulumi.IntOutput
- func (o SystemSystemOutput) Notes() pulumi.StringOutput
- func (o SystemSystemOutput) Timezone() pulumi.StringOutput
- func (o SystemSystemOutput) ToOutput(ctx context.Context) pulumix.Output[*SystemSystem]
- func (o SystemSystemOutput) ToSystemSystemOutput() SystemSystemOutput
- func (o SystemSystemOutput) ToSystemSystemOutputWithContext(ctx context.Context) SystemSystemOutput
- func (o SystemSystemOutput) Ttylogin() pulumi.BoolOutput
- func (o SystemSystemOutput) Zonename() pulumi.StringOutput
- type SystemSystemState
- type WirelessWifiDevice
- func (*WirelessWifiDevice) ElementType() reflect.Type
- func (i *WirelessWifiDevice) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiDevice]
- func (i *WirelessWifiDevice) ToWirelessWifiDeviceOutput() WirelessWifiDeviceOutput
- func (i *WirelessWifiDevice) ToWirelessWifiDeviceOutputWithContext(ctx context.Context) WirelessWifiDeviceOutput
- type WirelessWifiDeviceArgs
- type WirelessWifiDeviceArray
- func (WirelessWifiDeviceArray) ElementType() reflect.Type
- func (i WirelessWifiDeviceArray) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiDevice]
- func (i WirelessWifiDeviceArray) ToWirelessWifiDeviceArrayOutput() WirelessWifiDeviceArrayOutput
- func (i WirelessWifiDeviceArray) ToWirelessWifiDeviceArrayOutputWithContext(ctx context.Context) WirelessWifiDeviceArrayOutput
- type WirelessWifiDeviceArrayInput
- type WirelessWifiDeviceArrayOutput
- func (WirelessWifiDeviceArrayOutput) ElementType() reflect.Type
- func (o WirelessWifiDeviceArrayOutput) Index(i pulumi.IntInput) WirelessWifiDeviceOutput
- func (o WirelessWifiDeviceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiDevice]
- func (o WirelessWifiDeviceArrayOutput) ToWirelessWifiDeviceArrayOutput() WirelessWifiDeviceArrayOutput
- func (o WirelessWifiDeviceArrayOutput) ToWirelessWifiDeviceArrayOutputWithContext(ctx context.Context) WirelessWifiDeviceArrayOutput
- type WirelessWifiDeviceInput
- type WirelessWifiDeviceMap
- func (WirelessWifiDeviceMap) ElementType() reflect.Type
- func (i WirelessWifiDeviceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiDevice]
- func (i WirelessWifiDeviceMap) ToWirelessWifiDeviceMapOutput() WirelessWifiDeviceMapOutput
- func (i WirelessWifiDeviceMap) ToWirelessWifiDeviceMapOutputWithContext(ctx context.Context) WirelessWifiDeviceMapOutput
- type WirelessWifiDeviceMapInput
- type WirelessWifiDeviceMapOutput
- func (WirelessWifiDeviceMapOutput) ElementType() reflect.Type
- func (o WirelessWifiDeviceMapOutput) MapIndex(k pulumi.StringInput) WirelessWifiDeviceOutput
- func (o WirelessWifiDeviceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiDevice]
- func (o WirelessWifiDeviceMapOutput) ToWirelessWifiDeviceMapOutput() WirelessWifiDeviceMapOutput
- func (o WirelessWifiDeviceMapOutput) ToWirelessWifiDeviceMapOutputWithContext(ctx context.Context) WirelessWifiDeviceMapOutput
- type WirelessWifiDeviceOutput
- func (o WirelessWifiDeviceOutput) Band() pulumi.StringOutput
- func (o WirelessWifiDeviceOutput) CellDensity() pulumi.IntOutput
- func (o WirelessWifiDeviceOutput) Channel() pulumi.StringOutput
- func (o WirelessWifiDeviceOutput) Country() pulumi.StringOutput
- func (WirelessWifiDeviceOutput) ElementType() reflect.Type
- func (o WirelessWifiDeviceOutput) Htmode() pulumi.StringOutput
- func (o WirelessWifiDeviceOutput) Path() pulumi.StringOutput
- func (o WirelessWifiDeviceOutput) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiDevice]
- func (o WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutput() WirelessWifiDeviceOutput
- func (o WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutputWithContext(ctx context.Context) WirelessWifiDeviceOutput
- func (o WirelessWifiDeviceOutput) Type() pulumi.StringOutput
- type WirelessWifiDeviceState
- type WirelessWifiIface
- func (*WirelessWifiIface) ElementType() reflect.Type
- func (i *WirelessWifiIface) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiIface]
- func (i *WirelessWifiIface) ToWirelessWifiIfaceOutput() WirelessWifiIfaceOutput
- func (i *WirelessWifiIface) ToWirelessWifiIfaceOutputWithContext(ctx context.Context) WirelessWifiIfaceOutput
- type WirelessWifiIfaceArgs
- type WirelessWifiIfaceArray
- func (WirelessWifiIfaceArray) ElementType() reflect.Type
- func (i WirelessWifiIfaceArray) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiIface]
- func (i WirelessWifiIfaceArray) ToWirelessWifiIfaceArrayOutput() WirelessWifiIfaceArrayOutput
- func (i WirelessWifiIfaceArray) ToWirelessWifiIfaceArrayOutputWithContext(ctx context.Context) WirelessWifiIfaceArrayOutput
- type WirelessWifiIfaceArrayInput
- type WirelessWifiIfaceArrayOutput
- func (WirelessWifiIfaceArrayOutput) ElementType() reflect.Type
- func (o WirelessWifiIfaceArrayOutput) Index(i pulumi.IntInput) WirelessWifiIfaceOutput
- func (o WirelessWifiIfaceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiIface]
- func (o WirelessWifiIfaceArrayOutput) ToWirelessWifiIfaceArrayOutput() WirelessWifiIfaceArrayOutput
- func (o WirelessWifiIfaceArrayOutput) ToWirelessWifiIfaceArrayOutputWithContext(ctx context.Context) WirelessWifiIfaceArrayOutput
- type WirelessWifiIfaceInput
- type WirelessWifiIfaceMap
- func (WirelessWifiIfaceMap) ElementType() reflect.Type
- func (i WirelessWifiIfaceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiIface]
- func (i WirelessWifiIfaceMap) ToWirelessWifiIfaceMapOutput() WirelessWifiIfaceMapOutput
- func (i WirelessWifiIfaceMap) ToWirelessWifiIfaceMapOutputWithContext(ctx context.Context) WirelessWifiIfaceMapOutput
- type WirelessWifiIfaceMapInput
- type WirelessWifiIfaceMapOutput
- func (WirelessWifiIfaceMapOutput) ElementType() reflect.Type
- func (o WirelessWifiIfaceMapOutput) MapIndex(k pulumi.StringInput) WirelessWifiIfaceOutput
- func (o WirelessWifiIfaceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiIface]
- func (o WirelessWifiIfaceMapOutput) ToWirelessWifiIfaceMapOutput() WirelessWifiIfaceMapOutput
- func (o WirelessWifiIfaceMapOutput) ToWirelessWifiIfaceMapOutputWithContext(ctx context.Context) WirelessWifiIfaceMapOutput
- type WirelessWifiIfaceOutput
- func (o WirelessWifiIfaceOutput) Device() pulumi.StringOutput
- func (WirelessWifiIfaceOutput) ElementType() reflect.Type
- func (o WirelessWifiIfaceOutput) Encryption() pulumi.StringOutput
- func (o WirelessWifiIfaceOutput) Isolate() pulumi.BoolOutput
- func (o WirelessWifiIfaceOutput) Key() pulumi.StringOutput
- func (o WirelessWifiIfaceOutput) Mode() pulumi.StringOutput
- func (o WirelessWifiIfaceOutput) Network() pulumi.StringOutput
- func (o WirelessWifiIfaceOutput) Ssid() pulumi.StringOutput
- func (o WirelessWifiIfaceOutput) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiIface]
- func (o WirelessWifiIfaceOutput) ToWirelessWifiIfaceOutput() WirelessWifiIfaceOutput
- func (o WirelessWifiIfaceOutput) ToWirelessWifiIfaceOutputWithContext(ctx context.Context) WirelessWifiIfaceOutput
- func (o WirelessWifiIfaceOutput) WpaDisableEapolKeyRetries() pulumi.BoolOutput
- type WirelessWifiIfaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DhcpDhcp ¶
type DhcpDhcp struct { pulumi.CustomResourceState // The mode of the DHCPv4 server. Must be one of: "disabled", "server". Dhcpv4 pulumi.StringOutput `pulumi:"dhcpv4"` // The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server". Dhcpv6 pulumi.StringOutput `pulumi:"dhcpv6"` // Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment. Force pulumi.BoolOutput `pulumi:"force"` // Specifies whether dnsmasq should ignore this pool. Ignore pulumi.BoolOutput `pulumi:"ignore"` // The interface associated with this DHCP address pool. This name is what the interface is known as in UCI, or the `id` // field in Terraform. Required if `ignore` is not `true`. Interface pulumi.StringOutput `pulumi:"interface"` // The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`. Leasetime pulumi.StringOutput `pulumi:"leasetime"` // Specifies the size of the address pool. E.g. With start = 100, and limit = 150, the maximum address will be 249. Required if `ignore` is not `true`. Limit pulumi.IntOutput `pulumi:"limit"` // The mode of Router Advertisements. Must be one of: "disabled", "relay", "server". Ra pulumi.StringOutput `pulumi:"ra"` // Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config". RaFlags pulumi.StringArrayOutput `pulumi:"raFlags"` // Specifies the offset from the network address of the underlying interface to calculate the minimum address that may be leased to clients. It may be greater than 255 to span subnets. Required if `ignore` is not `true`. Start pulumi.IntOutput `pulumi:"start"` }
Per interface lease pools and settings for serving DHCP requests.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["dhcp", "dhcp"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({name.[".name"]})' # This command will output something like# [ { "name""lan", }, { "name""guest", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/dhcpDhcp:DhcpDhcp lan lan
```
func GetDhcpDhcp ¶
func GetDhcpDhcp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DhcpDhcpState, opts ...pulumi.ResourceOption) (*DhcpDhcp, error)
GetDhcpDhcp gets an existing DhcpDhcp 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 NewDhcpDhcp ¶
func NewDhcpDhcp(ctx *pulumi.Context, name string, args *DhcpDhcpArgs, opts ...pulumi.ResourceOption) (*DhcpDhcp, error)
NewDhcpDhcp registers a new resource with the given unique name, arguments, and options.
func (*DhcpDhcp) ElementType ¶
func (*DhcpDhcp) ToDhcpDhcpOutput ¶
func (i *DhcpDhcp) ToDhcpDhcpOutput() DhcpDhcpOutput
func (*DhcpDhcp) ToDhcpDhcpOutputWithContext ¶
func (i *DhcpDhcp) ToDhcpDhcpOutputWithContext(ctx context.Context) DhcpDhcpOutput
type DhcpDhcpArgs ¶
type DhcpDhcpArgs struct { // The mode of the DHCPv4 server. Must be one of: "disabled", "server". Dhcpv4 pulumi.StringPtrInput // The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server". Dhcpv6 pulumi.StringPtrInput // Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment. Force pulumi.BoolPtrInput // Specifies whether dnsmasq should ignore this pool. Ignore pulumi.BoolPtrInput // The interface associated with this DHCP address pool. This name is what the interface is known as in UCI, or the `id` // field in Terraform. Required if `ignore` is not `true`. Interface pulumi.StringPtrInput // The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`. Leasetime pulumi.StringPtrInput // Specifies the size of the address pool. E.g. With start = 100, and limit = 150, the maximum address will be 249. Required if `ignore` is not `true`. Limit pulumi.IntPtrInput // The mode of Router Advertisements. Must be one of: "disabled", "relay", "server". Ra pulumi.StringPtrInput // Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config". RaFlags pulumi.StringArrayInput // Specifies the offset from the network address of the underlying interface to calculate the minimum address that may be leased to clients. It may be greater than 255 to span subnets. Required if `ignore` is not `true`. Start pulumi.IntPtrInput }
The set of arguments for constructing a DhcpDhcp resource.
func (DhcpDhcpArgs) ElementType ¶
func (DhcpDhcpArgs) ElementType() reflect.Type
type DhcpDhcpArray ¶
type DhcpDhcpArray []DhcpDhcpInput
func (DhcpDhcpArray) ElementType ¶
func (DhcpDhcpArray) ElementType() reflect.Type
func (DhcpDhcpArray) ToDhcpDhcpArrayOutput ¶
func (i DhcpDhcpArray) ToDhcpDhcpArrayOutput() DhcpDhcpArrayOutput
func (DhcpDhcpArray) ToDhcpDhcpArrayOutputWithContext ¶
func (i DhcpDhcpArray) ToDhcpDhcpArrayOutputWithContext(ctx context.Context) DhcpDhcpArrayOutput
type DhcpDhcpArrayInput ¶
type DhcpDhcpArrayInput interface { pulumi.Input ToDhcpDhcpArrayOutput() DhcpDhcpArrayOutput ToDhcpDhcpArrayOutputWithContext(context.Context) DhcpDhcpArrayOutput }
DhcpDhcpArrayInput is an input type that accepts DhcpDhcpArray and DhcpDhcpArrayOutput values. You can construct a concrete instance of `DhcpDhcpArrayInput` via:
DhcpDhcpArray{ DhcpDhcpArgs{...} }
type DhcpDhcpArrayOutput ¶
type DhcpDhcpArrayOutput struct{ *pulumi.OutputState }
func (DhcpDhcpArrayOutput) ElementType ¶
func (DhcpDhcpArrayOutput) ElementType() reflect.Type
func (DhcpDhcpArrayOutput) Index ¶
func (o DhcpDhcpArrayOutput) Index(i pulumi.IntInput) DhcpDhcpOutput
func (DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutput ¶
func (o DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutput() DhcpDhcpArrayOutput
func (DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutputWithContext ¶
func (o DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutputWithContext(ctx context.Context) DhcpDhcpArrayOutput
type DhcpDhcpInput ¶
type DhcpDhcpInput interface { pulumi.Input ToDhcpDhcpOutput() DhcpDhcpOutput ToDhcpDhcpOutputWithContext(ctx context.Context) DhcpDhcpOutput }
type DhcpDhcpMap ¶
type DhcpDhcpMap map[string]DhcpDhcpInput
func (DhcpDhcpMap) ElementType ¶
func (DhcpDhcpMap) ElementType() reflect.Type
func (DhcpDhcpMap) ToDhcpDhcpMapOutput ¶
func (i DhcpDhcpMap) ToDhcpDhcpMapOutput() DhcpDhcpMapOutput
func (DhcpDhcpMap) ToDhcpDhcpMapOutputWithContext ¶
func (i DhcpDhcpMap) ToDhcpDhcpMapOutputWithContext(ctx context.Context) DhcpDhcpMapOutput
type DhcpDhcpMapInput ¶
type DhcpDhcpMapInput interface { pulumi.Input ToDhcpDhcpMapOutput() DhcpDhcpMapOutput ToDhcpDhcpMapOutputWithContext(context.Context) DhcpDhcpMapOutput }
DhcpDhcpMapInput is an input type that accepts DhcpDhcpMap and DhcpDhcpMapOutput values. You can construct a concrete instance of `DhcpDhcpMapInput` via:
DhcpDhcpMap{ "key": DhcpDhcpArgs{...} }
type DhcpDhcpMapOutput ¶
type DhcpDhcpMapOutput struct{ *pulumi.OutputState }
func (DhcpDhcpMapOutput) ElementType ¶
func (DhcpDhcpMapOutput) ElementType() reflect.Type
func (DhcpDhcpMapOutput) MapIndex ¶
func (o DhcpDhcpMapOutput) MapIndex(k pulumi.StringInput) DhcpDhcpOutput
func (DhcpDhcpMapOutput) ToDhcpDhcpMapOutput ¶
func (o DhcpDhcpMapOutput) ToDhcpDhcpMapOutput() DhcpDhcpMapOutput
func (DhcpDhcpMapOutput) ToDhcpDhcpMapOutputWithContext ¶
func (o DhcpDhcpMapOutput) ToDhcpDhcpMapOutputWithContext(ctx context.Context) DhcpDhcpMapOutput
type DhcpDhcpOutput ¶
type DhcpDhcpOutput struct{ *pulumi.OutputState }
func (DhcpDhcpOutput) Dhcpv4 ¶
func (o DhcpDhcpOutput) Dhcpv4() pulumi.StringOutput
The mode of the DHCPv4 server. Must be one of: "disabled", "server".
func (DhcpDhcpOutput) Dhcpv6 ¶
func (o DhcpDhcpOutput) Dhcpv6() pulumi.StringOutput
The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server".
func (DhcpDhcpOutput) ElementType ¶
func (DhcpDhcpOutput) ElementType() reflect.Type
func (DhcpDhcpOutput) Force ¶
func (o DhcpDhcpOutput) Force() pulumi.BoolOutput
Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment.
func (DhcpDhcpOutput) Ignore ¶
func (o DhcpDhcpOutput) Ignore() pulumi.BoolOutput
Specifies whether dnsmasq should ignore this pool.
func (DhcpDhcpOutput) Interface ¶
func (o DhcpDhcpOutput) Interface() pulumi.StringOutput
The interface associated with this DHCP address pool. This name is what the interface is known as in UCI, or the `id` field in Terraform. Required if `ignore` is not `true`.
func (DhcpDhcpOutput) Leasetime ¶
func (o DhcpDhcpOutput) Leasetime() pulumi.StringOutput
The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`.
func (DhcpDhcpOutput) Limit ¶
func (o DhcpDhcpOutput) Limit() pulumi.IntOutput
Specifies the size of the address pool. E.g. With start = 100, and limit = 150, the maximum address will be 249. Required if `ignore` is not `true`.
func (DhcpDhcpOutput) Ra ¶
func (o DhcpDhcpOutput) Ra() pulumi.StringOutput
The mode of Router Advertisements. Must be one of: "disabled", "relay", "server".
func (DhcpDhcpOutput) RaFlags ¶
func (o DhcpDhcpOutput) RaFlags() pulumi.StringArrayOutput
Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config".
func (DhcpDhcpOutput) Start ¶
func (o DhcpDhcpOutput) Start() pulumi.IntOutput
Specifies the offset from the network address of the underlying interface to calculate the minimum address that may be leased to clients. It may be greater than 255 to span subnets. Required if `ignore` is not `true`.
func (DhcpDhcpOutput) ToDhcpDhcpOutput ¶
func (o DhcpDhcpOutput) ToDhcpDhcpOutput() DhcpDhcpOutput
func (DhcpDhcpOutput) ToDhcpDhcpOutputWithContext ¶
func (o DhcpDhcpOutput) ToDhcpDhcpOutputWithContext(ctx context.Context) DhcpDhcpOutput
type DhcpDhcpState ¶
type DhcpDhcpState struct { // The mode of the DHCPv4 server. Must be one of: "disabled", "server". Dhcpv4 pulumi.StringPtrInput // The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server". Dhcpv6 pulumi.StringPtrInput // Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment. Force pulumi.BoolPtrInput // Specifies whether dnsmasq should ignore this pool. Ignore pulumi.BoolPtrInput // The interface associated with this DHCP address pool. This name is what the interface is known as in UCI, or the `id` // field in Terraform. Required if `ignore` is not `true`. Interface pulumi.StringPtrInput // The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`. Leasetime pulumi.StringPtrInput // Specifies the size of the address pool. E.g. With start = 100, and limit = 150, the maximum address will be 249. Required if `ignore` is not `true`. Limit pulumi.IntPtrInput // The mode of Router Advertisements. Must be one of: "disabled", "relay", "server". Ra pulumi.StringPtrInput // Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config". RaFlags pulumi.StringArrayInput // Specifies the offset from the network address of the underlying interface to calculate the minimum address that may be leased to clients. It may be greater than 255 to span subnets. Required if `ignore` is not `true`. Start pulumi.IntPtrInput }
func (DhcpDhcpState) ElementType ¶
func (DhcpDhcpState) ElementType() reflect.Type
type DhcpDnsmasq ¶
type DhcpDnsmasq struct { pulumi.CustomResourceState // Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network. Authoritative pulumi.BoolOutput `pulumi:"authoritative"` // DNS domain handed out to DHCP clients. Domain pulumi.StringOutput `pulumi:"domain"` // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Domainneeded pulumi.BoolOutput `pulumi:"domainneeded"` // Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder. EdnspacketMax pulumi.IntOutput `pulumi:"ednspacketMax"` // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Expandhosts pulumi.BoolOutput `pulumi:"expandhosts"` // Store DHCP leases in this file. Leasefile pulumi.StringOutput `pulumi:"leasefile"` // Look up DNS entries for this domain from `/etc/hosts`. Local pulumi.StringOutput `pulumi:"local"` // Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in `/etc/hosts`. LocaliseQueries pulumi.BoolOutput `pulumi:"localiseQueries"` // Accept DNS queries only from hosts whose address is on a local subnet. Localservice pulumi.BoolOutput `pulumi:"localservice"` // Read static lease entries from `/etc/ethers`, re-read on SIGHUP. Readethers pulumi.BoolOutput `pulumi:"readethers"` // Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled. RebindLocalhost pulumi.BoolOutput `pulumi:"rebindLocalhost"` // Enables DNS rebind attack protection by discarding upstream RFC1918 responses. RebindProtection pulumi.BoolOutput `pulumi:"rebindProtection"` // Specifies an alternative resolv file. Resolvfile pulumi.StringOutput `pulumi:"resolvfile"` }
A lightweight DHCP and caching DNS server.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["dhcp", "dnsmasq"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/dhcpDnsmasq:DhcpDnsmasq this cfg123456
```
func GetDhcpDnsmasq ¶
func GetDhcpDnsmasq(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DhcpDnsmasqState, opts ...pulumi.ResourceOption) (*DhcpDnsmasq, error)
GetDhcpDnsmasq gets an existing DhcpDnsmasq 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 NewDhcpDnsmasq ¶
func NewDhcpDnsmasq(ctx *pulumi.Context, name string, args *DhcpDnsmasqArgs, opts ...pulumi.ResourceOption) (*DhcpDnsmasq, error)
NewDhcpDnsmasq registers a new resource with the given unique name, arguments, and options.
func (*DhcpDnsmasq) ElementType ¶
func (*DhcpDnsmasq) ElementType() reflect.Type
func (*DhcpDnsmasq) ToDhcpDnsmasqOutput ¶
func (i *DhcpDnsmasq) ToDhcpDnsmasqOutput() DhcpDnsmasqOutput
func (*DhcpDnsmasq) ToDhcpDnsmasqOutputWithContext ¶
func (i *DhcpDnsmasq) ToDhcpDnsmasqOutputWithContext(ctx context.Context) DhcpDnsmasqOutput
func (*DhcpDnsmasq) ToOutput ¶
func (i *DhcpDnsmasq) ToOutput(ctx context.Context) pulumix.Output[*DhcpDnsmasq]
type DhcpDnsmasqArgs ¶
type DhcpDnsmasqArgs struct { // Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network. Authoritative pulumi.BoolPtrInput // DNS domain handed out to DHCP clients. Domain pulumi.StringPtrInput // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Domainneeded pulumi.BoolPtrInput // Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder. EdnspacketMax pulumi.IntPtrInput // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Expandhosts pulumi.BoolPtrInput // Store DHCP leases in this file. Leasefile pulumi.StringPtrInput // Look up DNS entries for this domain from `/etc/hosts`. Local pulumi.StringPtrInput // Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in `/etc/hosts`. LocaliseQueries pulumi.BoolPtrInput // Accept DNS queries only from hosts whose address is on a local subnet. Localservice pulumi.BoolPtrInput // Read static lease entries from `/etc/ethers`, re-read on SIGHUP. Readethers pulumi.BoolPtrInput // Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled. RebindLocalhost pulumi.BoolPtrInput // Enables DNS rebind attack protection by discarding upstream RFC1918 responses. RebindProtection pulumi.BoolPtrInput // Specifies an alternative resolv file. Resolvfile pulumi.StringPtrInput }
The set of arguments for constructing a DhcpDnsmasq resource.
func (DhcpDnsmasqArgs) ElementType ¶
func (DhcpDnsmasqArgs) ElementType() reflect.Type
type DhcpDnsmasqArray ¶
type DhcpDnsmasqArray []DhcpDnsmasqInput
func (DhcpDnsmasqArray) ElementType ¶
func (DhcpDnsmasqArray) ElementType() reflect.Type
func (DhcpDnsmasqArray) ToDhcpDnsmasqArrayOutput ¶
func (i DhcpDnsmasqArray) ToDhcpDnsmasqArrayOutput() DhcpDnsmasqArrayOutput
func (DhcpDnsmasqArray) ToDhcpDnsmasqArrayOutputWithContext ¶
func (i DhcpDnsmasqArray) ToDhcpDnsmasqArrayOutputWithContext(ctx context.Context) DhcpDnsmasqArrayOutput
func (DhcpDnsmasqArray) ToOutput ¶
func (i DhcpDnsmasqArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDnsmasq]
type DhcpDnsmasqArrayInput ¶
type DhcpDnsmasqArrayInput interface { pulumi.Input ToDhcpDnsmasqArrayOutput() DhcpDnsmasqArrayOutput ToDhcpDnsmasqArrayOutputWithContext(context.Context) DhcpDnsmasqArrayOutput }
DhcpDnsmasqArrayInput is an input type that accepts DhcpDnsmasqArray and DhcpDnsmasqArrayOutput values. You can construct a concrete instance of `DhcpDnsmasqArrayInput` via:
DhcpDnsmasqArray{ DhcpDnsmasqArgs{...} }
type DhcpDnsmasqArrayOutput ¶
type DhcpDnsmasqArrayOutput struct{ *pulumi.OutputState }
func (DhcpDnsmasqArrayOutput) ElementType ¶
func (DhcpDnsmasqArrayOutput) ElementType() reflect.Type
func (DhcpDnsmasqArrayOutput) Index ¶
func (o DhcpDnsmasqArrayOutput) Index(i pulumi.IntInput) DhcpDnsmasqOutput
func (DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutput ¶
func (o DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutput() DhcpDnsmasqArrayOutput
func (DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutputWithContext ¶
func (o DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutputWithContext(ctx context.Context) DhcpDnsmasqArrayOutput
func (DhcpDnsmasqArrayOutput) ToOutput ¶
func (o DhcpDnsmasqArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDnsmasq]
type DhcpDnsmasqInput ¶
type DhcpDnsmasqInput interface { pulumi.Input ToDhcpDnsmasqOutput() DhcpDnsmasqOutput ToDhcpDnsmasqOutputWithContext(ctx context.Context) DhcpDnsmasqOutput }
type DhcpDnsmasqMap ¶
type DhcpDnsmasqMap map[string]DhcpDnsmasqInput
func (DhcpDnsmasqMap) ElementType ¶
func (DhcpDnsmasqMap) ElementType() reflect.Type
func (DhcpDnsmasqMap) ToDhcpDnsmasqMapOutput ¶
func (i DhcpDnsmasqMap) ToDhcpDnsmasqMapOutput() DhcpDnsmasqMapOutput
func (DhcpDnsmasqMap) ToDhcpDnsmasqMapOutputWithContext ¶
func (i DhcpDnsmasqMap) ToDhcpDnsmasqMapOutputWithContext(ctx context.Context) DhcpDnsmasqMapOutput
func (DhcpDnsmasqMap) ToOutput ¶
func (i DhcpDnsmasqMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDnsmasq]
type DhcpDnsmasqMapInput ¶
type DhcpDnsmasqMapInput interface { pulumi.Input ToDhcpDnsmasqMapOutput() DhcpDnsmasqMapOutput ToDhcpDnsmasqMapOutputWithContext(context.Context) DhcpDnsmasqMapOutput }
DhcpDnsmasqMapInput is an input type that accepts DhcpDnsmasqMap and DhcpDnsmasqMapOutput values. You can construct a concrete instance of `DhcpDnsmasqMapInput` via:
DhcpDnsmasqMap{ "key": DhcpDnsmasqArgs{...} }
type DhcpDnsmasqMapOutput ¶
type DhcpDnsmasqMapOutput struct{ *pulumi.OutputState }
func (DhcpDnsmasqMapOutput) ElementType ¶
func (DhcpDnsmasqMapOutput) ElementType() reflect.Type
func (DhcpDnsmasqMapOutput) MapIndex ¶
func (o DhcpDnsmasqMapOutput) MapIndex(k pulumi.StringInput) DhcpDnsmasqOutput
func (DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutput ¶
func (o DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutput() DhcpDnsmasqMapOutput
func (DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutputWithContext ¶
func (o DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutputWithContext(ctx context.Context) DhcpDnsmasqMapOutput
func (DhcpDnsmasqMapOutput) ToOutput ¶
func (o DhcpDnsmasqMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDnsmasq]
type DhcpDnsmasqOutput ¶
type DhcpDnsmasqOutput struct{ *pulumi.OutputState }
func (DhcpDnsmasqOutput) Authoritative ¶
func (o DhcpDnsmasqOutput) Authoritative() pulumi.BoolOutput
Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
func (DhcpDnsmasqOutput) Domain ¶
func (o DhcpDnsmasqOutput) Domain() pulumi.StringOutput
DNS domain handed out to DHCP clients.
func (DhcpDnsmasqOutput) Domainneeded ¶
func (o DhcpDnsmasqOutput) Domainneeded() pulumi.BoolOutput
Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
func (DhcpDnsmasqOutput) EdnspacketMax ¶
func (o DhcpDnsmasqOutput) EdnspacketMax() pulumi.IntOutput
Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
func (DhcpDnsmasqOutput) ElementType ¶
func (DhcpDnsmasqOutput) ElementType() reflect.Type
func (DhcpDnsmasqOutput) Expandhosts ¶
func (o DhcpDnsmasqOutput) Expandhosts() pulumi.BoolOutput
Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
func (DhcpDnsmasqOutput) Leasefile ¶
func (o DhcpDnsmasqOutput) Leasefile() pulumi.StringOutput
Store DHCP leases in this file.
func (DhcpDnsmasqOutput) Local ¶
func (o DhcpDnsmasqOutput) Local() pulumi.StringOutput
Look up DNS entries for this domain from `/etc/hosts`.
func (DhcpDnsmasqOutput) LocaliseQueries ¶
func (o DhcpDnsmasqOutput) LocaliseQueries() pulumi.BoolOutput
Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in `/etc/hosts`.
func (DhcpDnsmasqOutput) Localservice ¶
func (o DhcpDnsmasqOutput) Localservice() pulumi.BoolOutput
Accept DNS queries only from hosts whose address is on a local subnet.
func (DhcpDnsmasqOutput) Readethers ¶
func (o DhcpDnsmasqOutput) Readethers() pulumi.BoolOutput
Read static lease entries from `/etc/ethers`, re-read on SIGHUP.
func (DhcpDnsmasqOutput) RebindLocalhost ¶
func (o DhcpDnsmasqOutput) RebindLocalhost() pulumi.BoolOutput
Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
func (DhcpDnsmasqOutput) RebindProtection ¶
func (o DhcpDnsmasqOutput) RebindProtection() pulumi.BoolOutput
Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
func (DhcpDnsmasqOutput) Resolvfile ¶
func (o DhcpDnsmasqOutput) Resolvfile() pulumi.StringOutput
Specifies an alternative resolv file.
func (DhcpDnsmasqOutput) ToDhcpDnsmasqOutput ¶
func (o DhcpDnsmasqOutput) ToDhcpDnsmasqOutput() DhcpDnsmasqOutput
func (DhcpDnsmasqOutput) ToDhcpDnsmasqOutputWithContext ¶
func (o DhcpDnsmasqOutput) ToDhcpDnsmasqOutputWithContext(ctx context.Context) DhcpDnsmasqOutput
func (DhcpDnsmasqOutput) ToOutput ¶
func (o DhcpDnsmasqOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpDnsmasq]
type DhcpDnsmasqState ¶
type DhcpDnsmasqState struct { // Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network. Authoritative pulumi.BoolPtrInput // DNS domain handed out to DHCP clients. Domain pulumi.StringPtrInput // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Domainneeded pulumi.BoolPtrInput // Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder. EdnspacketMax pulumi.IntPtrInput // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Expandhosts pulumi.BoolPtrInput // Store DHCP leases in this file. Leasefile pulumi.StringPtrInput // Look up DNS entries for this domain from `/etc/hosts`. Local pulumi.StringPtrInput // Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in `/etc/hosts`. LocaliseQueries pulumi.BoolPtrInput // Accept DNS queries only from hosts whose address is on a local subnet. Localservice pulumi.BoolPtrInput // Read static lease entries from `/etc/ethers`, re-read on SIGHUP. Readethers pulumi.BoolPtrInput // Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled. RebindLocalhost pulumi.BoolPtrInput // Enables DNS rebind attack protection by discarding upstream RFC1918 responses. RebindProtection pulumi.BoolPtrInput // Specifies an alternative resolv file. Resolvfile pulumi.StringPtrInput }
func (DhcpDnsmasqState) ElementType ¶
func (DhcpDnsmasqState) ElementType() reflect.Type
type DhcpDomain ¶
type DhcpDomain struct { pulumi.CustomResourceState // The IP address to be used for this domain. Ip pulumi.StringOutput `pulumi:"ip"` // Hostname to assign. Name pulumi.StringOutput `pulumi:"name"` }
Binds a domain name to an IP address.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["dhcp", "domain"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/dhcpDomain:DhcpDomain this cfg123456
```
func GetDhcpDomain ¶
func GetDhcpDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DhcpDomainState, opts ...pulumi.ResourceOption) (*DhcpDomain, error)
GetDhcpDomain gets an existing DhcpDomain 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 NewDhcpDomain ¶
func NewDhcpDomain(ctx *pulumi.Context, name string, args *DhcpDomainArgs, opts ...pulumi.ResourceOption) (*DhcpDomain, error)
NewDhcpDomain registers a new resource with the given unique name, arguments, and options.
func (*DhcpDomain) ElementType ¶
func (*DhcpDomain) ElementType() reflect.Type
func (*DhcpDomain) ToDhcpDomainOutput ¶
func (i *DhcpDomain) ToDhcpDomainOutput() DhcpDomainOutput
func (*DhcpDomain) ToDhcpDomainOutputWithContext ¶
func (i *DhcpDomain) ToDhcpDomainOutputWithContext(ctx context.Context) DhcpDomainOutput
func (*DhcpDomain) ToOutput ¶
func (i *DhcpDomain) ToOutput(ctx context.Context) pulumix.Output[*DhcpDomain]
type DhcpDomainArgs ¶
type DhcpDomainArgs struct { // The IP address to be used for this domain. Ip pulumi.StringInput // Hostname to assign. Name pulumi.StringPtrInput }
The set of arguments for constructing a DhcpDomain resource.
func (DhcpDomainArgs) ElementType ¶
func (DhcpDomainArgs) ElementType() reflect.Type
type DhcpDomainArray ¶
type DhcpDomainArray []DhcpDomainInput
func (DhcpDomainArray) ElementType ¶
func (DhcpDomainArray) ElementType() reflect.Type
func (DhcpDomainArray) ToDhcpDomainArrayOutput ¶
func (i DhcpDomainArray) ToDhcpDomainArrayOutput() DhcpDomainArrayOutput
func (DhcpDomainArray) ToDhcpDomainArrayOutputWithContext ¶
func (i DhcpDomainArray) ToDhcpDomainArrayOutputWithContext(ctx context.Context) DhcpDomainArrayOutput
func (DhcpDomainArray) ToOutput ¶
func (i DhcpDomainArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDomain]
type DhcpDomainArrayInput ¶
type DhcpDomainArrayInput interface { pulumi.Input ToDhcpDomainArrayOutput() DhcpDomainArrayOutput ToDhcpDomainArrayOutputWithContext(context.Context) DhcpDomainArrayOutput }
DhcpDomainArrayInput is an input type that accepts DhcpDomainArray and DhcpDomainArrayOutput values. You can construct a concrete instance of `DhcpDomainArrayInput` via:
DhcpDomainArray{ DhcpDomainArgs{...} }
type DhcpDomainArrayOutput ¶
type DhcpDomainArrayOutput struct{ *pulumi.OutputState }
func (DhcpDomainArrayOutput) ElementType ¶
func (DhcpDomainArrayOutput) ElementType() reflect.Type
func (DhcpDomainArrayOutput) Index ¶
func (o DhcpDomainArrayOutput) Index(i pulumi.IntInput) DhcpDomainOutput
func (DhcpDomainArrayOutput) ToDhcpDomainArrayOutput ¶
func (o DhcpDomainArrayOutput) ToDhcpDomainArrayOutput() DhcpDomainArrayOutput
func (DhcpDomainArrayOutput) ToDhcpDomainArrayOutputWithContext ¶
func (o DhcpDomainArrayOutput) ToDhcpDomainArrayOutputWithContext(ctx context.Context) DhcpDomainArrayOutput
func (DhcpDomainArrayOutput) ToOutput ¶
func (o DhcpDomainArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDomain]
type DhcpDomainInput ¶
type DhcpDomainInput interface { pulumi.Input ToDhcpDomainOutput() DhcpDomainOutput ToDhcpDomainOutputWithContext(ctx context.Context) DhcpDomainOutput }
type DhcpDomainMap ¶
type DhcpDomainMap map[string]DhcpDomainInput
func (DhcpDomainMap) ElementType ¶
func (DhcpDomainMap) ElementType() reflect.Type
func (DhcpDomainMap) ToDhcpDomainMapOutput ¶
func (i DhcpDomainMap) ToDhcpDomainMapOutput() DhcpDomainMapOutput
func (DhcpDomainMap) ToDhcpDomainMapOutputWithContext ¶
func (i DhcpDomainMap) ToDhcpDomainMapOutputWithContext(ctx context.Context) DhcpDomainMapOutput
func (DhcpDomainMap) ToOutput ¶
func (i DhcpDomainMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDomain]
type DhcpDomainMapInput ¶
type DhcpDomainMapInput interface { pulumi.Input ToDhcpDomainMapOutput() DhcpDomainMapOutput ToDhcpDomainMapOutputWithContext(context.Context) DhcpDomainMapOutput }
DhcpDomainMapInput is an input type that accepts DhcpDomainMap and DhcpDomainMapOutput values. You can construct a concrete instance of `DhcpDomainMapInput` via:
DhcpDomainMap{ "key": DhcpDomainArgs{...} }
type DhcpDomainMapOutput ¶
type DhcpDomainMapOutput struct{ *pulumi.OutputState }
func (DhcpDomainMapOutput) ElementType ¶
func (DhcpDomainMapOutput) ElementType() reflect.Type
func (DhcpDomainMapOutput) MapIndex ¶
func (o DhcpDomainMapOutput) MapIndex(k pulumi.StringInput) DhcpDomainOutput
func (DhcpDomainMapOutput) ToDhcpDomainMapOutput ¶
func (o DhcpDomainMapOutput) ToDhcpDomainMapOutput() DhcpDomainMapOutput
func (DhcpDomainMapOutput) ToDhcpDomainMapOutputWithContext ¶
func (o DhcpDomainMapOutput) ToDhcpDomainMapOutputWithContext(ctx context.Context) DhcpDomainMapOutput
func (DhcpDomainMapOutput) ToOutput ¶
func (o DhcpDomainMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDomain]
type DhcpDomainOutput ¶
type DhcpDomainOutput struct{ *pulumi.OutputState }
func (DhcpDomainOutput) ElementType ¶
func (DhcpDomainOutput) ElementType() reflect.Type
func (DhcpDomainOutput) Ip ¶
func (o DhcpDomainOutput) Ip() pulumi.StringOutput
The IP address to be used for this domain.
func (DhcpDomainOutput) Name ¶
func (o DhcpDomainOutput) Name() pulumi.StringOutput
Hostname to assign.
func (DhcpDomainOutput) ToDhcpDomainOutput ¶
func (o DhcpDomainOutput) ToDhcpDomainOutput() DhcpDomainOutput
func (DhcpDomainOutput) ToDhcpDomainOutputWithContext ¶
func (o DhcpDomainOutput) ToDhcpDomainOutputWithContext(ctx context.Context) DhcpDomainOutput
func (DhcpDomainOutput) ToOutput ¶
func (o DhcpDomainOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpDomain]
type DhcpDomainState ¶
type DhcpDomainState struct { // The IP address to be used for this domain. Ip pulumi.StringPtrInput // Hostname to assign. Name pulumi.StringPtrInput }
func (DhcpDomainState) ElementType ¶
func (DhcpDomainState) ElementType() reflect.Type
type DhcpHost ¶
type DhcpHost struct { pulumi.CustomResourceState // Add static forward and reverse DNS entries for this host. Dns pulumi.BoolOutput `pulumi:"dns"` // The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host. Ip pulumi.StringOutput `pulumi:"ip"` // The hardware address(es) of this host, separated by spaces. Mac pulumi.StringOutput `pulumi:"mac"` // Hostname to assign. Name pulumi.StringOutput `pulumi:"name"` }
Assign a fixed IP address to hosts.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["dhcp", "host"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/dhcpHost:DhcpHost this cfg123456
```
func GetDhcpHost ¶
func GetDhcpHost(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DhcpHostState, opts ...pulumi.ResourceOption) (*DhcpHost, error)
GetDhcpHost gets an existing DhcpHost 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 NewDhcpHost ¶
func NewDhcpHost(ctx *pulumi.Context, name string, args *DhcpHostArgs, opts ...pulumi.ResourceOption) (*DhcpHost, error)
NewDhcpHost registers a new resource with the given unique name, arguments, and options.
func (*DhcpHost) ElementType ¶
func (*DhcpHost) ToDhcpHostOutput ¶
func (i *DhcpHost) ToDhcpHostOutput() DhcpHostOutput
func (*DhcpHost) ToDhcpHostOutputWithContext ¶
func (i *DhcpHost) ToDhcpHostOutputWithContext(ctx context.Context) DhcpHostOutput
type DhcpHostArgs ¶
type DhcpHostArgs struct { // Add static forward and reverse DNS entries for this host. Dns pulumi.BoolPtrInput // The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host. Ip pulumi.StringPtrInput // The hardware address(es) of this host, separated by spaces. Mac pulumi.StringPtrInput // Hostname to assign. Name pulumi.StringPtrInput }
The set of arguments for constructing a DhcpHost resource.
func (DhcpHostArgs) ElementType ¶
func (DhcpHostArgs) ElementType() reflect.Type
type DhcpHostArray ¶
type DhcpHostArray []DhcpHostInput
func (DhcpHostArray) ElementType ¶
func (DhcpHostArray) ElementType() reflect.Type
func (DhcpHostArray) ToDhcpHostArrayOutput ¶
func (i DhcpHostArray) ToDhcpHostArrayOutput() DhcpHostArrayOutput
func (DhcpHostArray) ToDhcpHostArrayOutputWithContext ¶
func (i DhcpHostArray) ToDhcpHostArrayOutputWithContext(ctx context.Context) DhcpHostArrayOutput
type DhcpHostArrayInput ¶
type DhcpHostArrayInput interface { pulumi.Input ToDhcpHostArrayOutput() DhcpHostArrayOutput ToDhcpHostArrayOutputWithContext(context.Context) DhcpHostArrayOutput }
DhcpHostArrayInput is an input type that accepts DhcpHostArray and DhcpHostArrayOutput values. You can construct a concrete instance of `DhcpHostArrayInput` via:
DhcpHostArray{ DhcpHostArgs{...} }
type DhcpHostArrayOutput ¶
type DhcpHostArrayOutput struct{ *pulumi.OutputState }
func (DhcpHostArrayOutput) ElementType ¶
func (DhcpHostArrayOutput) ElementType() reflect.Type
func (DhcpHostArrayOutput) Index ¶
func (o DhcpHostArrayOutput) Index(i pulumi.IntInput) DhcpHostOutput
func (DhcpHostArrayOutput) ToDhcpHostArrayOutput ¶
func (o DhcpHostArrayOutput) ToDhcpHostArrayOutput() DhcpHostArrayOutput
func (DhcpHostArrayOutput) ToDhcpHostArrayOutputWithContext ¶
func (o DhcpHostArrayOutput) ToDhcpHostArrayOutputWithContext(ctx context.Context) DhcpHostArrayOutput
type DhcpHostInput ¶
type DhcpHostInput interface { pulumi.Input ToDhcpHostOutput() DhcpHostOutput ToDhcpHostOutputWithContext(ctx context.Context) DhcpHostOutput }
type DhcpHostMap ¶
type DhcpHostMap map[string]DhcpHostInput
func (DhcpHostMap) ElementType ¶
func (DhcpHostMap) ElementType() reflect.Type
func (DhcpHostMap) ToDhcpHostMapOutput ¶
func (i DhcpHostMap) ToDhcpHostMapOutput() DhcpHostMapOutput
func (DhcpHostMap) ToDhcpHostMapOutputWithContext ¶
func (i DhcpHostMap) ToDhcpHostMapOutputWithContext(ctx context.Context) DhcpHostMapOutput
type DhcpHostMapInput ¶
type DhcpHostMapInput interface { pulumi.Input ToDhcpHostMapOutput() DhcpHostMapOutput ToDhcpHostMapOutputWithContext(context.Context) DhcpHostMapOutput }
DhcpHostMapInput is an input type that accepts DhcpHostMap and DhcpHostMapOutput values. You can construct a concrete instance of `DhcpHostMapInput` via:
DhcpHostMap{ "key": DhcpHostArgs{...} }
type DhcpHostMapOutput ¶
type DhcpHostMapOutput struct{ *pulumi.OutputState }
func (DhcpHostMapOutput) ElementType ¶
func (DhcpHostMapOutput) ElementType() reflect.Type
func (DhcpHostMapOutput) MapIndex ¶
func (o DhcpHostMapOutput) MapIndex(k pulumi.StringInput) DhcpHostOutput
func (DhcpHostMapOutput) ToDhcpHostMapOutput ¶
func (o DhcpHostMapOutput) ToDhcpHostMapOutput() DhcpHostMapOutput
func (DhcpHostMapOutput) ToDhcpHostMapOutputWithContext ¶
func (o DhcpHostMapOutput) ToDhcpHostMapOutputWithContext(ctx context.Context) DhcpHostMapOutput
type DhcpHostOutput ¶
type DhcpHostOutput struct{ *pulumi.OutputState }
func (DhcpHostOutput) Dns ¶
func (o DhcpHostOutput) Dns() pulumi.BoolOutput
Add static forward and reverse DNS entries for this host.
func (DhcpHostOutput) ElementType ¶
func (DhcpHostOutput) ElementType() reflect.Type
func (DhcpHostOutput) Ip ¶
func (o DhcpHostOutput) Ip() pulumi.StringOutput
The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host.
func (DhcpHostOutput) Mac ¶
func (o DhcpHostOutput) Mac() pulumi.StringOutput
The hardware address(es) of this host, separated by spaces.
func (DhcpHostOutput) ToDhcpHostOutput ¶
func (o DhcpHostOutput) ToDhcpHostOutput() DhcpHostOutput
func (DhcpHostOutput) ToDhcpHostOutputWithContext ¶
func (o DhcpHostOutput) ToDhcpHostOutputWithContext(ctx context.Context) DhcpHostOutput
type DhcpHostState ¶
type DhcpHostState struct { // Add static forward and reverse DNS entries for this host. Dns pulumi.BoolPtrInput // The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host. Ip pulumi.StringPtrInput // The hardware address(es) of this host, separated by spaces. Mac pulumi.StringPtrInput // Hostname to assign. Name pulumi.StringPtrInput }
func (DhcpHostState) ElementType ¶
func (DhcpHostState) ElementType() reflect.Type
type DhcpOdhcpd ¶
type DhcpOdhcpd struct { pulumi.CustomResourceState // Location of the lease/hostfile for DHCPv4 and DHCPv6. Leasefile pulumi.StringOutput `pulumi:"leasefile"` // Location of the lease trigger script. Leasetrigger pulumi.StringOutput `pulumi:"leasetrigger"` // Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set. Legacy pulumi.BoolOutput `pulumi:"legacy"` // Syslog level priority (0-7). Loglevel pulumi.IntOutput `pulumi:"loglevel"` // Use odhcpd as the main DHCPv4 service. Maindhcp pulumi.BoolOutput `pulumi:"maindhcp"` }
An embedded DHCP/DHCPv6/RA server & NDP relay.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["dhcp", "odhcpd"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/dhcpOdhcpd:DhcpOdhcpd this cfg123456
```
func GetDhcpOdhcpd ¶
func GetDhcpOdhcpd(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DhcpOdhcpdState, opts ...pulumi.ResourceOption) (*DhcpOdhcpd, error)
GetDhcpOdhcpd gets an existing DhcpOdhcpd 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 NewDhcpOdhcpd ¶
func NewDhcpOdhcpd(ctx *pulumi.Context, name string, args *DhcpOdhcpdArgs, opts ...pulumi.ResourceOption) (*DhcpOdhcpd, error)
NewDhcpOdhcpd registers a new resource with the given unique name, arguments, and options.
func (*DhcpOdhcpd) ElementType ¶
func (*DhcpOdhcpd) ElementType() reflect.Type
func (*DhcpOdhcpd) ToDhcpOdhcpdOutput ¶
func (i *DhcpOdhcpd) ToDhcpOdhcpdOutput() DhcpOdhcpdOutput
func (*DhcpOdhcpd) ToDhcpOdhcpdOutputWithContext ¶
func (i *DhcpOdhcpd) ToDhcpOdhcpdOutputWithContext(ctx context.Context) DhcpOdhcpdOutput
func (*DhcpOdhcpd) ToOutput ¶
func (i *DhcpOdhcpd) ToOutput(ctx context.Context) pulumix.Output[*DhcpOdhcpd]
type DhcpOdhcpdArgs ¶
type DhcpOdhcpdArgs struct { // Location of the lease/hostfile for DHCPv4 and DHCPv6. Leasefile pulumi.StringPtrInput // Location of the lease trigger script. Leasetrigger pulumi.StringPtrInput // Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set. Legacy pulumi.BoolPtrInput // Syslog level priority (0-7). Loglevel pulumi.IntPtrInput // Use odhcpd as the main DHCPv4 service. Maindhcp pulumi.BoolPtrInput }
The set of arguments for constructing a DhcpOdhcpd resource.
func (DhcpOdhcpdArgs) ElementType ¶
func (DhcpOdhcpdArgs) ElementType() reflect.Type
type DhcpOdhcpdArray ¶
type DhcpOdhcpdArray []DhcpOdhcpdInput
func (DhcpOdhcpdArray) ElementType ¶
func (DhcpOdhcpdArray) ElementType() reflect.Type
func (DhcpOdhcpdArray) ToDhcpOdhcpdArrayOutput ¶
func (i DhcpOdhcpdArray) ToDhcpOdhcpdArrayOutput() DhcpOdhcpdArrayOutput
func (DhcpOdhcpdArray) ToDhcpOdhcpdArrayOutputWithContext ¶
func (i DhcpOdhcpdArray) ToDhcpOdhcpdArrayOutputWithContext(ctx context.Context) DhcpOdhcpdArrayOutput
func (DhcpOdhcpdArray) ToOutput ¶
func (i DhcpOdhcpdArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpOdhcpd]
type DhcpOdhcpdArrayInput ¶
type DhcpOdhcpdArrayInput interface { pulumi.Input ToDhcpOdhcpdArrayOutput() DhcpOdhcpdArrayOutput ToDhcpOdhcpdArrayOutputWithContext(context.Context) DhcpOdhcpdArrayOutput }
DhcpOdhcpdArrayInput is an input type that accepts DhcpOdhcpdArray and DhcpOdhcpdArrayOutput values. You can construct a concrete instance of `DhcpOdhcpdArrayInput` via:
DhcpOdhcpdArray{ DhcpOdhcpdArgs{...} }
type DhcpOdhcpdArrayOutput ¶
type DhcpOdhcpdArrayOutput struct{ *pulumi.OutputState }
func (DhcpOdhcpdArrayOutput) ElementType ¶
func (DhcpOdhcpdArrayOutput) ElementType() reflect.Type
func (DhcpOdhcpdArrayOutput) Index ¶
func (o DhcpOdhcpdArrayOutput) Index(i pulumi.IntInput) DhcpOdhcpdOutput
func (DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutput ¶
func (o DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutput() DhcpOdhcpdArrayOutput
func (DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutputWithContext ¶
func (o DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutputWithContext(ctx context.Context) DhcpOdhcpdArrayOutput
func (DhcpOdhcpdArrayOutput) ToOutput ¶
func (o DhcpOdhcpdArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpOdhcpd]
type DhcpOdhcpdInput ¶
type DhcpOdhcpdInput interface { pulumi.Input ToDhcpOdhcpdOutput() DhcpOdhcpdOutput ToDhcpOdhcpdOutputWithContext(ctx context.Context) DhcpOdhcpdOutput }
type DhcpOdhcpdMap ¶
type DhcpOdhcpdMap map[string]DhcpOdhcpdInput
func (DhcpOdhcpdMap) ElementType ¶
func (DhcpOdhcpdMap) ElementType() reflect.Type
func (DhcpOdhcpdMap) ToDhcpOdhcpdMapOutput ¶
func (i DhcpOdhcpdMap) ToDhcpOdhcpdMapOutput() DhcpOdhcpdMapOutput
func (DhcpOdhcpdMap) ToDhcpOdhcpdMapOutputWithContext ¶
func (i DhcpOdhcpdMap) ToDhcpOdhcpdMapOutputWithContext(ctx context.Context) DhcpOdhcpdMapOutput
func (DhcpOdhcpdMap) ToOutput ¶
func (i DhcpOdhcpdMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpOdhcpd]
type DhcpOdhcpdMapInput ¶
type DhcpOdhcpdMapInput interface { pulumi.Input ToDhcpOdhcpdMapOutput() DhcpOdhcpdMapOutput ToDhcpOdhcpdMapOutputWithContext(context.Context) DhcpOdhcpdMapOutput }
DhcpOdhcpdMapInput is an input type that accepts DhcpOdhcpdMap and DhcpOdhcpdMapOutput values. You can construct a concrete instance of `DhcpOdhcpdMapInput` via:
DhcpOdhcpdMap{ "key": DhcpOdhcpdArgs{...} }
type DhcpOdhcpdMapOutput ¶
type DhcpOdhcpdMapOutput struct{ *pulumi.OutputState }
func (DhcpOdhcpdMapOutput) ElementType ¶
func (DhcpOdhcpdMapOutput) ElementType() reflect.Type
func (DhcpOdhcpdMapOutput) MapIndex ¶
func (o DhcpOdhcpdMapOutput) MapIndex(k pulumi.StringInput) DhcpOdhcpdOutput
func (DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutput ¶
func (o DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutput() DhcpOdhcpdMapOutput
func (DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutputWithContext ¶
func (o DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutputWithContext(ctx context.Context) DhcpOdhcpdMapOutput
func (DhcpOdhcpdMapOutput) ToOutput ¶
func (o DhcpOdhcpdMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpOdhcpd]
type DhcpOdhcpdOutput ¶
type DhcpOdhcpdOutput struct{ *pulumi.OutputState }
func (DhcpOdhcpdOutput) ElementType ¶
func (DhcpOdhcpdOutput) ElementType() reflect.Type
func (DhcpOdhcpdOutput) Leasefile ¶
func (o DhcpOdhcpdOutput) Leasefile() pulumi.StringOutput
Location of the lease/hostfile for DHCPv4 and DHCPv6.
func (DhcpOdhcpdOutput) Leasetrigger ¶
func (o DhcpOdhcpdOutput) Leasetrigger() pulumi.StringOutput
Location of the lease trigger script.
func (DhcpOdhcpdOutput) Legacy ¶
func (o DhcpOdhcpdOutput) Legacy() pulumi.BoolOutput
Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set.
func (DhcpOdhcpdOutput) Loglevel ¶
func (o DhcpOdhcpdOutput) Loglevel() pulumi.IntOutput
Syslog level priority (0-7).
func (DhcpOdhcpdOutput) Maindhcp ¶
func (o DhcpOdhcpdOutput) Maindhcp() pulumi.BoolOutput
Use odhcpd as the main DHCPv4 service.
func (DhcpOdhcpdOutput) ToDhcpOdhcpdOutput ¶
func (o DhcpOdhcpdOutput) ToDhcpOdhcpdOutput() DhcpOdhcpdOutput
func (DhcpOdhcpdOutput) ToDhcpOdhcpdOutputWithContext ¶
func (o DhcpOdhcpdOutput) ToDhcpOdhcpdOutputWithContext(ctx context.Context) DhcpOdhcpdOutput
func (DhcpOdhcpdOutput) ToOutput ¶
func (o DhcpOdhcpdOutput) ToOutput(ctx context.Context) pulumix.Output[*DhcpOdhcpd]
type DhcpOdhcpdState ¶
type DhcpOdhcpdState struct { // Location of the lease/hostfile for DHCPv4 and DHCPv6. Leasefile pulumi.StringPtrInput // Location of the lease trigger script. Leasetrigger pulumi.StringPtrInput // Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set. Legacy pulumi.BoolPtrInput // Syslog level priority (0-7). Loglevel pulumi.IntPtrInput // Use odhcpd as the main DHCPv4 service. Maindhcp pulumi.BoolPtrInput }
func (DhcpOdhcpdState) ElementType ¶
func (DhcpOdhcpdState) ElementType() reflect.Type
type LookupDhcpDhcpArgs ¶
type LookupDhcpDhcpArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getDhcpDhcp.
type LookupDhcpDhcpOutputArgs ¶
type LookupDhcpDhcpOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getDhcpDhcp.
func (LookupDhcpDhcpOutputArgs) ElementType ¶
func (LookupDhcpDhcpOutputArgs) ElementType() reflect.Type
type LookupDhcpDhcpResult ¶
type LookupDhcpDhcpResult struct { // The mode of the DHCPv4 server. Must be one of: "disabled", "server". Dhcpv4 string `pulumi:"dhcpv4"` // The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server". Dhcpv6 string `pulumi:"dhcpv6"` // Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment. Force bool `pulumi:"force"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Specifies whether dnsmasq should ignore this pool. Ignore bool `pulumi:"ignore"` Interface string `pulumi:"interface"` // The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`. Leasetime string `pulumi:"leasetime"` // Specifies the size of the address pool. E.g. With start = 100, and limit = 150, the maximum address will be 249. Required if `ignore` is not `true`. Limit int `pulumi:"limit"` // The mode of Router Advertisements. Must be one of: "disabled", "relay", "server". Ra string `pulumi:"ra"` // Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config". RaFlags []string `pulumi:"raFlags"` // Specifies the offset from the network address of the underlying interface to calculate the minimum address that may be leased to clients. It may be greater than 255 to span subnets. Required if `ignore` is not `true`. Start int `pulumi:"start"` }
A collection of values returned by getDhcpDhcp.
func LookupDhcpDhcp ¶
func LookupDhcpDhcp(ctx *pulumi.Context, args *LookupDhcpDhcpArgs, opts ...pulumi.InvokeOption) (*LookupDhcpDhcpResult, error)
Per interface lease pools and settings for serving DHCP requests.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupDhcpDhcp(ctx, &openwrt.LookupDhcpDhcpArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupDhcpDhcpResultOutput ¶
type LookupDhcpDhcpResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDhcpDhcp.
func LookupDhcpDhcpOutput ¶
func LookupDhcpDhcpOutput(ctx *pulumi.Context, args LookupDhcpDhcpOutputArgs, opts ...pulumi.InvokeOption) LookupDhcpDhcpResultOutput
func (LookupDhcpDhcpResultOutput) Dhcpv4 ¶
func (o LookupDhcpDhcpResultOutput) Dhcpv4() pulumi.StringOutput
The mode of the DHCPv4 server. Must be one of: "disabled", "server".
func (LookupDhcpDhcpResultOutput) Dhcpv6 ¶
func (o LookupDhcpDhcpResultOutput) Dhcpv6() pulumi.StringOutput
The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server".
func (LookupDhcpDhcpResultOutput) ElementType ¶
func (LookupDhcpDhcpResultOutput) ElementType() reflect.Type
func (LookupDhcpDhcpResultOutput) Force ¶
func (o LookupDhcpDhcpResultOutput) Force() pulumi.BoolOutput
Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment.
func (LookupDhcpDhcpResultOutput) Id ¶
func (o LookupDhcpDhcpResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupDhcpDhcpResultOutput) Ignore ¶
func (o LookupDhcpDhcpResultOutput) Ignore() pulumi.BoolOutput
Specifies whether dnsmasq should ignore this pool.
func (LookupDhcpDhcpResultOutput) Interface ¶
func (o LookupDhcpDhcpResultOutput) Interface() pulumi.StringOutput
func (LookupDhcpDhcpResultOutput) Leasetime ¶
func (o LookupDhcpDhcpResultOutput) Leasetime() pulumi.StringOutput
The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`.
func (LookupDhcpDhcpResultOutput) Limit ¶
func (o LookupDhcpDhcpResultOutput) Limit() pulumi.IntOutput
Specifies the size of the address pool. E.g. With start = 100, and limit = 150, the maximum address will be 249. Required if `ignore` is not `true`.
func (LookupDhcpDhcpResultOutput) Ra ¶
func (o LookupDhcpDhcpResultOutput) Ra() pulumi.StringOutput
The mode of Router Advertisements. Must be one of: "disabled", "relay", "server".
func (LookupDhcpDhcpResultOutput) RaFlags ¶
func (o LookupDhcpDhcpResultOutput) RaFlags() pulumi.StringArrayOutput
Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config".
func (LookupDhcpDhcpResultOutput) Start ¶
func (o LookupDhcpDhcpResultOutput) Start() pulumi.IntOutput
Specifies the offset from the network address of the underlying interface to calculate the minimum address that may be leased to clients. It may be greater than 255 to span subnets. Required if `ignore` is not `true`.
func (LookupDhcpDhcpResultOutput) ToLookupDhcpDhcpResultOutput ¶
func (o LookupDhcpDhcpResultOutput) ToLookupDhcpDhcpResultOutput() LookupDhcpDhcpResultOutput
func (LookupDhcpDhcpResultOutput) ToLookupDhcpDhcpResultOutputWithContext ¶
func (o LookupDhcpDhcpResultOutput) ToLookupDhcpDhcpResultOutputWithContext(ctx context.Context) LookupDhcpDhcpResultOutput
func (LookupDhcpDhcpResultOutput) ToOutput ¶
func (o LookupDhcpDhcpResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpDhcpResult]
type LookupDhcpDnsmasqArgs ¶
type LookupDhcpDnsmasqArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getDhcpDnsmasq.
type LookupDhcpDnsmasqOutputArgs ¶
type LookupDhcpDnsmasqOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getDhcpDnsmasq.
func (LookupDhcpDnsmasqOutputArgs) ElementType ¶
func (LookupDhcpDnsmasqOutputArgs) ElementType() reflect.Type
type LookupDhcpDnsmasqResult ¶
type LookupDhcpDnsmasqResult struct { // Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network. Authoritative bool `pulumi:"authoritative"` // DNS domain handed out to DHCP clients. Domain string `pulumi:"domain"` // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Domainneeded bool `pulumi:"domainneeded"` // Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder. EdnspacketMax int `pulumi:"ednspacketMax"` // Never forward queries for plain names, without dots or domain parts, to upstream nameservers. Expandhosts bool `pulumi:"expandhosts"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Store DHCP leases in this file. Leasefile string `pulumi:"leasefile"` // Look up DNS entries for this domain from `/etc/hosts`. Local string `pulumi:"local"` // Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in `/etc/hosts`. LocaliseQueries bool `pulumi:"localiseQueries"` // Accept DNS queries only from hosts whose address is on a local subnet. Localservice bool `pulumi:"localservice"` // Read static lease entries from `/etc/ethers`, re-read on SIGHUP. Readethers bool `pulumi:"readethers"` // Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled. RebindLocalhost bool `pulumi:"rebindLocalhost"` // Enables DNS rebind attack protection by discarding upstream RFC1918 responses. RebindProtection bool `pulumi:"rebindProtection"` // Specifies an alternative resolv file. Resolvfile string `pulumi:"resolvfile"` }
A collection of values returned by getDhcpDnsmasq.
func LookupDhcpDnsmasq ¶
func LookupDhcpDnsmasq(ctx *pulumi.Context, args *LookupDhcpDnsmasqArgs, opts ...pulumi.InvokeOption) (*LookupDhcpDnsmasqResult, error)
A lightweight DHCP and caching DNS server.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupDhcpDnsmasq(ctx, &openwrt.LookupDhcpDnsmasqArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupDhcpDnsmasqResultOutput ¶
type LookupDhcpDnsmasqResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDhcpDnsmasq.
func LookupDhcpDnsmasqOutput ¶
func LookupDhcpDnsmasqOutput(ctx *pulumi.Context, args LookupDhcpDnsmasqOutputArgs, opts ...pulumi.InvokeOption) LookupDhcpDnsmasqResultOutput
func (LookupDhcpDnsmasqResultOutput) Authoritative ¶
func (o LookupDhcpDnsmasqResultOutput) Authoritative() pulumi.BoolOutput
Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
func (LookupDhcpDnsmasqResultOutput) Domain ¶
func (o LookupDhcpDnsmasqResultOutput) Domain() pulumi.StringOutput
DNS domain handed out to DHCP clients.
func (LookupDhcpDnsmasqResultOutput) Domainneeded ¶
func (o LookupDhcpDnsmasqResultOutput) Domainneeded() pulumi.BoolOutput
Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
func (LookupDhcpDnsmasqResultOutput) EdnspacketMax ¶
func (o LookupDhcpDnsmasqResultOutput) EdnspacketMax() pulumi.IntOutput
Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
func (LookupDhcpDnsmasqResultOutput) ElementType ¶
func (LookupDhcpDnsmasqResultOutput) ElementType() reflect.Type
func (LookupDhcpDnsmasqResultOutput) Expandhosts ¶
func (o LookupDhcpDnsmasqResultOutput) Expandhosts() pulumi.BoolOutput
Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
func (LookupDhcpDnsmasqResultOutput) Id ¶
func (o LookupDhcpDnsmasqResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupDhcpDnsmasqResultOutput) Leasefile ¶
func (o LookupDhcpDnsmasqResultOutput) Leasefile() pulumi.StringOutput
Store DHCP leases in this file.
func (LookupDhcpDnsmasqResultOutput) Local ¶
func (o LookupDhcpDnsmasqResultOutput) Local() pulumi.StringOutput
Look up DNS entries for this domain from `/etc/hosts`.
func (LookupDhcpDnsmasqResultOutput) LocaliseQueries ¶
func (o LookupDhcpDnsmasqResultOutput) LocaliseQueries() pulumi.BoolOutput
Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in `/etc/hosts`.
func (LookupDhcpDnsmasqResultOutput) Localservice ¶
func (o LookupDhcpDnsmasqResultOutput) Localservice() pulumi.BoolOutput
Accept DNS queries only from hosts whose address is on a local subnet.
func (LookupDhcpDnsmasqResultOutput) Readethers ¶
func (o LookupDhcpDnsmasqResultOutput) Readethers() pulumi.BoolOutput
Read static lease entries from `/etc/ethers`, re-read on SIGHUP.
func (LookupDhcpDnsmasqResultOutput) RebindLocalhost ¶
func (o LookupDhcpDnsmasqResultOutput) RebindLocalhost() pulumi.BoolOutput
Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
func (LookupDhcpDnsmasqResultOutput) RebindProtection ¶
func (o LookupDhcpDnsmasqResultOutput) RebindProtection() pulumi.BoolOutput
Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
func (LookupDhcpDnsmasqResultOutput) Resolvfile ¶
func (o LookupDhcpDnsmasqResultOutput) Resolvfile() pulumi.StringOutput
Specifies an alternative resolv file.
func (LookupDhcpDnsmasqResultOutput) ToLookupDhcpDnsmasqResultOutput ¶
func (o LookupDhcpDnsmasqResultOutput) ToLookupDhcpDnsmasqResultOutput() LookupDhcpDnsmasqResultOutput
func (LookupDhcpDnsmasqResultOutput) ToLookupDhcpDnsmasqResultOutputWithContext ¶
func (o LookupDhcpDnsmasqResultOutput) ToLookupDhcpDnsmasqResultOutputWithContext(ctx context.Context) LookupDhcpDnsmasqResultOutput
func (LookupDhcpDnsmasqResultOutput) ToOutput ¶
func (o LookupDhcpDnsmasqResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpDnsmasqResult]
type LookupDhcpDomainArgs ¶
type LookupDhcpDomainArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getDhcpDomain.
type LookupDhcpDomainOutputArgs ¶
type LookupDhcpDomainOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getDhcpDomain.
func (LookupDhcpDomainOutputArgs) ElementType ¶
func (LookupDhcpDomainOutputArgs) ElementType() reflect.Type
type LookupDhcpDomainResult ¶
type LookupDhcpDomainResult struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // The IP address to be used for this domain. Ip string `pulumi:"ip"` // Hostname to assign. Name string `pulumi:"name"` }
A collection of values returned by getDhcpDomain.
func LookupDhcpDomain ¶
func LookupDhcpDomain(ctx *pulumi.Context, args *LookupDhcpDomainArgs, opts ...pulumi.InvokeOption) (*LookupDhcpDomainResult, error)
Binds a domain name to an IP address.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupDhcpDomain(ctx, &openwrt.LookupDhcpDomainArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupDhcpDomainResultOutput ¶
type LookupDhcpDomainResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDhcpDomain.
func LookupDhcpDomainOutput ¶
func LookupDhcpDomainOutput(ctx *pulumi.Context, args LookupDhcpDomainOutputArgs, opts ...pulumi.InvokeOption) LookupDhcpDomainResultOutput
func (LookupDhcpDomainResultOutput) ElementType ¶
func (LookupDhcpDomainResultOutput) ElementType() reflect.Type
func (LookupDhcpDomainResultOutput) Id ¶
func (o LookupDhcpDomainResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupDhcpDomainResultOutput) Ip ¶
func (o LookupDhcpDomainResultOutput) Ip() pulumi.StringOutput
The IP address to be used for this domain.
func (LookupDhcpDomainResultOutput) Name ¶
func (o LookupDhcpDomainResultOutput) Name() pulumi.StringOutput
Hostname to assign.
func (LookupDhcpDomainResultOutput) ToLookupDhcpDomainResultOutput ¶
func (o LookupDhcpDomainResultOutput) ToLookupDhcpDomainResultOutput() LookupDhcpDomainResultOutput
func (LookupDhcpDomainResultOutput) ToLookupDhcpDomainResultOutputWithContext ¶
func (o LookupDhcpDomainResultOutput) ToLookupDhcpDomainResultOutputWithContext(ctx context.Context) LookupDhcpDomainResultOutput
func (LookupDhcpDomainResultOutput) ToOutput ¶
func (o LookupDhcpDomainResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpDomainResult]
type LookupDhcpHostArgs ¶
type LookupDhcpHostArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getDhcpHost.
type LookupDhcpHostOutputArgs ¶
type LookupDhcpHostOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getDhcpHost.
func (LookupDhcpHostOutputArgs) ElementType ¶
func (LookupDhcpHostOutputArgs) ElementType() reflect.Type
type LookupDhcpHostResult ¶
type LookupDhcpHostResult struct { // Add static forward and reverse DNS entries for this host. Dns bool `pulumi:"dns"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host. Ip string `pulumi:"ip"` // The hardware address(es) of this host, separated by spaces. Mac string `pulumi:"mac"` // Hostname to assign. Name string `pulumi:"name"` }
A collection of values returned by getDhcpHost.
func LookupDhcpHost ¶
func LookupDhcpHost(ctx *pulumi.Context, args *LookupDhcpHostArgs, opts ...pulumi.InvokeOption) (*LookupDhcpHostResult, error)
Assign a fixed IP address to hosts.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupDhcpHost(ctx, &openwrt.LookupDhcpHostArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupDhcpHostResultOutput ¶
type LookupDhcpHostResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDhcpHost.
func LookupDhcpHostOutput ¶
func LookupDhcpHostOutput(ctx *pulumi.Context, args LookupDhcpHostOutputArgs, opts ...pulumi.InvokeOption) LookupDhcpHostResultOutput
func (LookupDhcpHostResultOutput) Dns ¶
func (o LookupDhcpHostResultOutput) Dns() pulumi.BoolOutput
Add static forward and reverse DNS entries for this host.
func (LookupDhcpHostResultOutput) ElementType ¶
func (LookupDhcpHostResultOutput) ElementType() reflect.Type
func (LookupDhcpHostResultOutput) Id ¶
func (o LookupDhcpHostResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupDhcpHostResultOutput) Ip ¶
func (o LookupDhcpHostResultOutput) Ip() pulumi.StringOutput
The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host.
func (LookupDhcpHostResultOutput) Mac ¶
func (o LookupDhcpHostResultOutput) Mac() pulumi.StringOutput
The hardware address(es) of this host, separated by spaces.
func (LookupDhcpHostResultOutput) Name ¶
func (o LookupDhcpHostResultOutput) Name() pulumi.StringOutput
Hostname to assign.
func (LookupDhcpHostResultOutput) ToLookupDhcpHostResultOutput ¶
func (o LookupDhcpHostResultOutput) ToLookupDhcpHostResultOutput() LookupDhcpHostResultOutput
func (LookupDhcpHostResultOutput) ToLookupDhcpHostResultOutputWithContext ¶
func (o LookupDhcpHostResultOutput) ToLookupDhcpHostResultOutputWithContext(ctx context.Context) LookupDhcpHostResultOutput
func (LookupDhcpHostResultOutput) ToOutput ¶
func (o LookupDhcpHostResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpHostResult]
type LookupDhcpOdhcpdArgs ¶
type LookupDhcpOdhcpdArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getDhcpOdhcpd.
type LookupDhcpOdhcpdOutputArgs ¶
type LookupDhcpOdhcpdOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getDhcpOdhcpd.
func (LookupDhcpOdhcpdOutputArgs) ElementType ¶
func (LookupDhcpOdhcpdOutputArgs) ElementType() reflect.Type
type LookupDhcpOdhcpdResult ¶
type LookupDhcpOdhcpdResult struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Location of the lease/hostfile for DHCPv4 and DHCPv6. Leasefile string `pulumi:"leasefile"` // Location of the lease trigger script. Leasetrigger string `pulumi:"leasetrigger"` // Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set. Legacy bool `pulumi:"legacy"` // Syslog level priority (0-7). Loglevel int `pulumi:"loglevel"` // Use odhcpd as the main DHCPv4 service. Maindhcp bool `pulumi:"maindhcp"` }
A collection of values returned by getDhcpOdhcpd.
func LookupDhcpOdhcpd ¶
func LookupDhcpOdhcpd(ctx *pulumi.Context, args *LookupDhcpOdhcpdArgs, opts ...pulumi.InvokeOption) (*LookupDhcpOdhcpdResult, error)
An embedded DHCP/DHCPv6/RA server & NDP relay.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupDhcpOdhcpd(ctx, &openwrt.LookupDhcpOdhcpdArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupDhcpOdhcpdResultOutput ¶
type LookupDhcpOdhcpdResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDhcpOdhcpd.
func LookupDhcpOdhcpdOutput ¶
func LookupDhcpOdhcpdOutput(ctx *pulumi.Context, args LookupDhcpOdhcpdOutputArgs, opts ...pulumi.InvokeOption) LookupDhcpOdhcpdResultOutput
func (LookupDhcpOdhcpdResultOutput) ElementType ¶
func (LookupDhcpOdhcpdResultOutput) ElementType() reflect.Type
func (LookupDhcpOdhcpdResultOutput) Id ¶
func (o LookupDhcpOdhcpdResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupDhcpOdhcpdResultOutput) Leasefile ¶
func (o LookupDhcpOdhcpdResultOutput) Leasefile() pulumi.StringOutput
Location of the lease/hostfile for DHCPv4 and DHCPv6.
func (LookupDhcpOdhcpdResultOutput) Leasetrigger ¶
func (o LookupDhcpOdhcpdResultOutput) Leasetrigger() pulumi.StringOutput
Location of the lease trigger script.
func (LookupDhcpOdhcpdResultOutput) Legacy ¶
func (o LookupDhcpOdhcpdResultOutput) Legacy() pulumi.BoolOutput
Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set.
func (LookupDhcpOdhcpdResultOutput) Loglevel ¶
func (o LookupDhcpOdhcpdResultOutput) Loglevel() pulumi.IntOutput
Syslog level priority (0-7).
func (LookupDhcpOdhcpdResultOutput) Maindhcp ¶
func (o LookupDhcpOdhcpdResultOutput) Maindhcp() pulumi.BoolOutput
Use odhcpd as the main DHCPv4 service.
func (LookupDhcpOdhcpdResultOutput) ToLookupDhcpOdhcpdResultOutput ¶
func (o LookupDhcpOdhcpdResultOutput) ToLookupDhcpOdhcpdResultOutput() LookupDhcpOdhcpdResultOutput
func (LookupDhcpOdhcpdResultOutput) ToLookupDhcpOdhcpdResultOutputWithContext ¶
func (o LookupDhcpOdhcpdResultOutput) ToLookupDhcpOdhcpdResultOutputWithContext(ctx context.Context) LookupDhcpOdhcpdResultOutput
func (LookupDhcpOdhcpdResultOutput) ToOutput ¶
func (o LookupDhcpOdhcpdResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDhcpOdhcpdResult]
type LookupNetworkDeviceArgs ¶
type LookupNetworkDeviceArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getNetworkDevice.
type LookupNetworkDeviceOutputArgs ¶
type LookupNetworkDeviceOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getNetworkDevice.
func (LookupNetworkDeviceOutputArgs) ElementType ¶
func (LookupNetworkDeviceOutputArgs) ElementType() reflect.Type
type LookupNetworkDeviceResult ¶
type LookupNetworkDeviceResult struct { // Bring up the bridge device even if no ports are attached BridgeEmpty bool `pulumi:"bridgeEmpty"` // Amount of Duplicate Address Detection probes to send Dadtransmits int `pulumi:"dadtransmits"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Enable IPv6 for the device. Ipv6 bool `pulumi:"ipv6"` // MAC Address of the device. Macaddr string `pulumi:"macaddr"` // Maximum Transmissible Unit. Mtu int `pulumi:"mtu"` // Maximum Transmissible Unit for IPv6. Mtu6 int `pulumi:"mtu6"` // Name of the device. This name is referenced in other network configuration. Name string `pulumi:"name"` // Specifies the wired ports to attach to this bridge. Ports []string `pulumi:"ports"` // Transmission queue length. Txqueuelen int `pulumi:"txqueuelen"` // The type of device. Currently, only "bridge" is supported. Type string `pulumi:"type"` }
A collection of values returned by getNetworkDevice.
func LookupNetworkDevice ¶
func LookupNetworkDevice(ctx *pulumi.Context, args *LookupNetworkDeviceArgs, opts ...pulumi.InvokeOption) (*LookupNetworkDeviceResult, error)
A physical or virtual "device" in OpenWrt jargon. Commonly referred to as an "interface" in other networking jargon.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupNetworkDevice(ctx, &openwrt.LookupNetworkDeviceArgs{ Id: "br_testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupNetworkDeviceResultOutput ¶
type LookupNetworkDeviceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNetworkDevice.
func LookupNetworkDeviceOutput ¶
func LookupNetworkDeviceOutput(ctx *pulumi.Context, args LookupNetworkDeviceOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkDeviceResultOutput
func (LookupNetworkDeviceResultOutput) BridgeEmpty ¶
func (o LookupNetworkDeviceResultOutput) BridgeEmpty() pulumi.BoolOutput
Bring up the bridge device even if no ports are attached
func (LookupNetworkDeviceResultOutput) Dadtransmits ¶
func (o LookupNetworkDeviceResultOutput) Dadtransmits() pulumi.IntOutput
Amount of Duplicate Address Detection probes to send
func (LookupNetworkDeviceResultOutput) ElementType ¶
func (LookupNetworkDeviceResultOutput) ElementType() reflect.Type
func (LookupNetworkDeviceResultOutput) Id ¶
func (o LookupNetworkDeviceResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupNetworkDeviceResultOutput) Ipv6 ¶
func (o LookupNetworkDeviceResultOutput) Ipv6() pulumi.BoolOutput
Enable IPv6 for the device.
func (LookupNetworkDeviceResultOutput) Macaddr ¶
func (o LookupNetworkDeviceResultOutput) Macaddr() pulumi.StringOutput
MAC Address of the device.
func (LookupNetworkDeviceResultOutput) Mtu ¶
func (o LookupNetworkDeviceResultOutput) Mtu() pulumi.IntOutput
Maximum Transmissible Unit.
func (LookupNetworkDeviceResultOutput) Mtu6 ¶
func (o LookupNetworkDeviceResultOutput) Mtu6() pulumi.IntOutput
Maximum Transmissible Unit for IPv6.
func (LookupNetworkDeviceResultOutput) Name ¶
func (o LookupNetworkDeviceResultOutput) Name() pulumi.StringOutput
Name of the device. This name is referenced in other network configuration.
func (LookupNetworkDeviceResultOutput) Ports ¶
func (o LookupNetworkDeviceResultOutput) Ports() pulumi.StringArrayOutput
Specifies the wired ports to attach to this bridge.
func (LookupNetworkDeviceResultOutput) ToLookupNetworkDeviceResultOutput ¶
func (o LookupNetworkDeviceResultOutput) ToLookupNetworkDeviceResultOutput() LookupNetworkDeviceResultOutput
func (LookupNetworkDeviceResultOutput) ToLookupNetworkDeviceResultOutputWithContext ¶
func (o LookupNetworkDeviceResultOutput) ToLookupNetworkDeviceResultOutputWithContext(ctx context.Context) LookupNetworkDeviceResultOutput
func (LookupNetworkDeviceResultOutput) ToOutput ¶
func (o LookupNetworkDeviceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkDeviceResult]
func (LookupNetworkDeviceResultOutput) Txqueuelen ¶
func (o LookupNetworkDeviceResultOutput) Txqueuelen() pulumi.IntOutput
Transmission queue length.
func (LookupNetworkDeviceResultOutput) Type ¶
func (o LookupNetworkDeviceResultOutput) Type() pulumi.StringOutput
The type of device. Currently, only "bridge" is supported.
type LookupNetworkGlobalsArgs ¶
type LookupNetworkGlobalsArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getNetworkGlobals.
type LookupNetworkGlobalsOutputArgs ¶
type LookupNetworkGlobalsOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getNetworkGlobals.
func (LookupNetworkGlobalsOutputArgs) ElementType ¶
func (LookupNetworkGlobalsOutputArgs) ElementType() reflect.Type
type LookupNetworkGlobalsResult ¶
type LookupNetworkGlobalsResult struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Use every CPU to handle packet traffic. PacketSteering bool `pulumi:"packetSteering"` // IPv6 ULA prefix for this device. UlaPrefix string `pulumi:"ulaPrefix"` }
A collection of values returned by getNetworkGlobals.
func LookupNetworkGlobals ¶
func LookupNetworkGlobals(ctx *pulumi.Context, args *LookupNetworkGlobalsArgs, opts ...pulumi.InvokeOption) (*LookupNetworkGlobalsResult, error)
Contains interface-independent options affecting the network configuration in general.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupNetworkGlobals(ctx, &openwrt.LookupNetworkGlobalsArgs{ Id: "globals", }, nil) if err != nil { return err } return nil }) }
```
type LookupNetworkGlobalsResultOutput ¶
type LookupNetworkGlobalsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNetworkGlobals.
func LookupNetworkGlobalsOutput ¶
func LookupNetworkGlobalsOutput(ctx *pulumi.Context, args LookupNetworkGlobalsOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkGlobalsResultOutput
func (LookupNetworkGlobalsResultOutput) ElementType ¶
func (LookupNetworkGlobalsResultOutput) ElementType() reflect.Type
func (LookupNetworkGlobalsResultOutput) Id ¶
func (o LookupNetworkGlobalsResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupNetworkGlobalsResultOutput) PacketSteering ¶
func (o LookupNetworkGlobalsResultOutput) PacketSteering() pulumi.BoolOutput
Use every CPU to handle packet traffic.
func (LookupNetworkGlobalsResultOutput) ToLookupNetworkGlobalsResultOutput ¶
func (o LookupNetworkGlobalsResultOutput) ToLookupNetworkGlobalsResultOutput() LookupNetworkGlobalsResultOutput
func (LookupNetworkGlobalsResultOutput) ToLookupNetworkGlobalsResultOutputWithContext ¶
func (o LookupNetworkGlobalsResultOutput) ToLookupNetworkGlobalsResultOutputWithContext(ctx context.Context) LookupNetworkGlobalsResultOutput
func (LookupNetworkGlobalsResultOutput) ToOutput ¶
func (o LookupNetworkGlobalsResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkGlobalsResult]
func (LookupNetworkGlobalsResultOutput) UlaPrefix ¶
func (o LookupNetworkGlobalsResultOutput) UlaPrefix() pulumi.StringOutput
IPv6 ULA prefix for this device.
type LookupNetworkInterfaceArgs ¶
type LookupNetworkInterfaceArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getNetworkInterface.
type LookupNetworkInterfaceOutputArgs ¶
type LookupNetworkInterfaceOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getNetworkInterface.
func (LookupNetworkInterfaceOutputArgs) ElementType ¶
func (LookupNetworkInterfaceOutputArgs) ElementType() reflect.Type
type LookupNetworkInterfaceResult ¶
type LookupNetworkInterfaceResult struct { // Specifies whether to bring up this interface on boot. Auto bool `pulumi:"auto"` Device string `pulumi:"device"` // Disables this interface. Disabled bool `pulumi:"disabled"` // DNS servers Dns []string `pulumi:"dns"` // Gateway of the interface Gateway string `pulumi:"gateway"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Delegate a prefix of given length to this interface Ip6assign int `pulumi:"ip6assign"` // IP address of the interface Ipaddr string `pulumi:"ipaddr"` // Override the MAC Address of this interface. Macaddr string `pulumi:"macaddr"` // Override the default MTU on this interface. Mtu int `pulumi:"mtu"` // Netmask of the interface Netmask string `pulumi:"netmask"` // Use DHCP-provided DNS servers. Peerdns bool `pulumi:"peerdns"` // The protocol type of the interface. Currently, only "dhcp, and "static" are supported. Proto string `pulumi:"proto"` // Behavior for requesting address. Can only be one of "force", "try", or "none". Reqaddress string `pulumi:"reqaddress"` // Behavior for requesting prefixes. Currently, only "auto" is supported. Reqprefix string `pulumi:"reqprefix"` }
A collection of values returned by getNetworkInterface.
func LookupNetworkInterface ¶
func LookupNetworkInterface(ctx *pulumi.Context, args *LookupNetworkInterfaceArgs, opts ...pulumi.InvokeOption) (*LookupNetworkInterfaceResult, error)
A logic network.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupNetworkInterface(ctx, &openwrt.LookupNetworkInterfaceArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupNetworkInterfaceResultOutput ¶
type LookupNetworkInterfaceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNetworkInterface.
func LookupNetworkInterfaceOutput ¶
func LookupNetworkInterfaceOutput(ctx *pulumi.Context, args LookupNetworkInterfaceOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkInterfaceResultOutput
func (LookupNetworkInterfaceResultOutput) Auto ¶
func (o LookupNetworkInterfaceResultOutput) Auto() pulumi.BoolOutput
Specifies whether to bring up this interface on boot.
func (LookupNetworkInterfaceResultOutput) Device ¶
func (o LookupNetworkInterfaceResultOutput) Device() pulumi.StringOutput
func (LookupNetworkInterfaceResultOutput) Disabled ¶
func (o LookupNetworkInterfaceResultOutput) Disabled() pulumi.BoolOutput
Disables this interface.
func (LookupNetworkInterfaceResultOutput) Dns ¶
func (o LookupNetworkInterfaceResultOutput) Dns() pulumi.StringArrayOutput
DNS servers
func (LookupNetworkInterfaceResultOutput) ElementType ¶
func (LookupNetworkInterfaceResultOutput) ElementType() reflect.Type
func (LookupNetworkInterfaceResultOutput) Gateway ¶
func (o LookupNetworkInterfaceResultOutput) Gateway() pulumi.StringOutput
Gateway of the interface
func (LookupNetworkInterfaceResultOutput) Id ¶
func (o LookupNetworkInterfaceResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupNetworkInterfaceResultOutput) Ip6assign ¶
func (o LookupNetworkInterfaceResultOutput) Ip6assign() pulumi.IntOutput
Delegate a prefix of given length to this interface
func (LookupNetworkInterfaceResultOutput) Ipaddr ¶
func (o LookupNetworkInterfaceResultOutput) Ipaddr() pulumi.StringOutput
IP address of the interface
func (LookupNetworkInterfaceResultOutput) Macaddr ¶
func (o LookupNetworkInterfaceResultOutput) Macaddr() pulumi.StringOutput
Override the MAC Address of this interface.
func (LookupNetworkInterfaceResultOutput) Mtu ¶
func (o LookupNetworkInterfaceResultOutput) Mtu() pulumi.IntOutput
Override the default MTU on this interface.
func (LookupNetworkInterfaceResultOutput) Netmask ¶
func (o LookupNetworkInterfaceResultOutput) Netmask() pulumi.StringOutput
Netmask of the interface
func (LookupNetworkInterfaceResultOutput) Peerdns ¶
func (o LookupNetworkInterfaceResultOutput) Peerdns() pulumi.BoolOutput
Use DHCP-provided DNS servers.
func (LookupNetworkInterfaceResultOutput) Proto ¶
func (o LookupNetworkInterfaceResultOutput) Proto() pulumi.StringOutput
The protocol type of the interface. Currently, only "dhcp, and "static" are supported.
func (LookupNetworkInterfaceResultOutput) Reqaddress ¶
func (o LookupNetworkInterfaceResultOutput) Reqaddress() pulumi.StringOutput
Behavior for requesting address. Can only be one of "force", "try", or "none".
func (LookupNetworkInterfaceResultOutput) Reqprefix ¶
func (o LookupNetworkInterfaceResultOutput) Reqprefix() pulumi.StringOutput
Behavior for requesting prefixes. Currently, only "auto" is supported.
func (LookupNetworkInterfaceResultOutput) ToLookupNetworkInterfaceResultOutput ¶
func (o LookupNetworkInterfaceResultOutput) ToLookupNetworkInterfaceResultOutput() LookupNetworkInterfaceResultOutput
func (LookupNetworkInterfaceResultOutput) ToLookupNetworkInterfaceResultOutputWithContext ¶
func (o LookupNetworkInterfaceResultOutput) ToLookupNetworkInterfaceResultOutputWithContext(ctx context.Context) LookupNetworkInterfaceResultOutput
func (LookupNetworkInterfaceResultOutput) ToOutput ¶
func (o LookupNetworkInterfaceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkInterfaceResult]
type LookupNetworkSwitchArgs ¶
type LookupNetworkSwitchArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getNetworkSwitch.
type LookupNetworkSwitchOutputArgs ¶
type LookupNetworkSwitchOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getNetworkSwitch.
func (LookupNetworkSwitchOutputArgs) ElementType ¶
func (LookupNetworkSwitchOutputArgs) ElementType() reflect.Type
type LookupNetworkSwitchResult ¶
type LookupNetworkSwitchResult struct { // Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorRx bool `pulumi:"enableMirrorRx"` // Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorTx bool `pulumi:"enableMirrorTx"` // Enables VLAN functionality. EnableVlan bool `pulumi:"enableVlan"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Switch port to which packets are mirrored. MirrorMonitorPort int `pulumi:"mirrorMonitorPort"` // Switch port from which packets are mirrored. MirrorSourcePort int `pulumi:"mirrorSourcePort"` Name string `pulumi:"name"` // Reset the switch. Reset bool `pulumi:"reset"` }
A collection of values returned by getNetworkSwitch.
func LookupNetworkSwitch ¶
func LookupNetworkSwitch(ctx *pulumi.Context, args *LookupNetworkSwitchArgs, opts ...pulumi.InvokeOption) (*LookupNetworkSwitchResult, error)
Legacy `swconfig` configuration
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupNetworkSwitch(ctx, &openwrt.LookupNetworkSwitchArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupNetworkSwitchResultOutput ¶
type LookupNetworkSwitchResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNetworkSwitch.
func LookupNetworkSwitchOutput ¶
func LookupNetworkSwitchOutput(ctx *pulumi.Context, args LookupNetworkSwitchOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkSwitchResultOutput
func (LookupNetworkSwitchResultOutput) ElementType ¶
func (LookupNetworkSwitchResultOutput) ElementType() reflect.Type
func (LookupNetworkSwitchResultOutput) EnableMirrorRx ¶
func (o LookupNetworkSwitchResultOutput) EnableMirrorRx() pulumi.BoolOutput
Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`.
func (LookupNetworkSwitchResultOutput) EnableMirrorTx ¶
func (o LookupNetworkSwitchResultOutput) EnableMirrorTx() pulumi.BoolOutput
Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`.
func (LookupNetworkSwitchResultOutput) EnableVlan ¶
func (o LookupNetworkSwitchResultOutput) EnableVlan() pulumi.BoolOutput
Enables VLAN functionality.
func (LookupNetworkSwitchResultOutput) Id ¶
func (o LookupNetworkSwitchResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupNetworkSwitchResultOutput) MirrorMonitorPort ¶
func (o LookupNetworkSwitchResultOutput) MirrorMonitorPort() pulumi.IntOutput
Switch port to which packets are mirrored.
func (LookupNetworkSwitchResultOutput) MirrorSourcePort ¶
func (o LookupNetworkSwitchResultOutput) MirrorSourcePort() pulumi.IntOutput
Switch port from which packets are mirrored.
func (LookupNetworkSwitchResultOutput) Name ¶
func (o LookupNetworkSwitchResultOutput) Name() pulumi.StringOutput
func (LookupNetworkSwitchResultOutput) Reset ¶
func (o LookupNetworkSwitchResultOutput) Reset() pulumi.BoolOutput
Reset the switch.
func (LookupNetworkSwitchResultOutput) ToLookupNetworkSwitchResultOutput ¶
func (o LookupNetworkSwitchResultOutput) ToLookupNetworkSwitchResultOutput() LookupNetworkSwitchResultOutput
func (LookupNetworkSwitchResultOutput) ToLookupNetworkSwitchResultOutputWithContext ¶
func (o LookupNetworkSwitchResultOutput) ToLookupNetworkSwitchResultOutputWithContext(ctx context.Context) LookupNetworkSwitchResultOutput
func (LookupNetworkSwitchResultOutput) ToOutput ¶
func (o LookupNetworkSwitchResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkSwitchResult]
type LookupNetworkSwitchVlanArgs ¶
type LookupNetworkSwitchVlanArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getNetworkSwitchVlan.
type LookupNetworkSwitchVlanOutputArgs ¶
type LookupNetworkSwitchVlanOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getNetworkSwitchVlan.
func (LookupNetworkSwitchVlanOutputArgs) ElementType ¶
func (LookupNetworkSwitchVlanOutputArgs) ElementType() reflect.Type
type LookupNetworkSwitchVlanResult ¶
type LookupNetworkSwitchVlanResult struct { // A human-readable description of the VLAN configuration. Description string `pulumi:"description"` // The switch to configure. Device string `pulumi:"device"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix `"t"` to a port indicates that egress packets should be tagged, for example `"0 1 3t 5t"`. Ports string `pulumi:"ports"` // The VLAN tag number to use. Vid int `pulumi:"vid"` // The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI Vlan int `pulumi:"vlan"` }
A collection of values returned by getNetworkSwitchVlan.
func LookupNetworkSwitchVlan ¶
func LookupNetworkSwitchVlan(ctx *pulumi.Context, args *LookupNetworkSwitchVlanArgs, opts ...pulumi.InvokeOption) (*LookupNetworkSwitchVlanResult, error)
Legacy VLAN configuration
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupNetworkSwitchVlan(ctx, &openwrt.LookupNetworkSwitchVlanArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupNetworkSwitchVlanResultOutput ¶
type LookupNetworkSwitchVlanResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNetworkSwitchVlan.
func LookupNetworkSwitchVlanOutput ¶
func LookupNetworkSwitchVlanOutput(ctx *pulumi.Context, args LookupNetworkSwitchVlanOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkSwitchVlanResultOutput
func (LookupNetworkSwitchVlanResultOutput) Description ¶
func (o LookupNetworkSwitchVlanResultOutput) Description() pulumi.StringOutput
A human-readable description of the VLAN configuration.
func (LookupNetworkSwitchVlanResultOutput) Device ¶
func (o LookupNetworkSwitchVlanResultOutput) Device() pulumi.StringOutput
The switch to configure.
func (LookupNetworkSwitchVlanResultOutput) ElementType ¶
func (LookupNetworkSwitchVlanResultOutput) ElementType() reflect.Type
func (LookupNetworkSwitchVlanResultOutput) Id ¶
func (o LookupNetworkSwitchVlanResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupNetworkSwitchVlanResultOutput) Ports ¶
func (o LookupNetworkSwitchVlanResultOutput) Ports() pulumi.StringOutput
A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix `"t"` to a port indicates that egress packets should be tagged, for example `"0 1 3t 5t"`.
func (LookupNetworkSwitchVlanResultOutput) ToLookupNetworkSwitchVlanResultOutput ¶
func (o LookupNetworkSwitchVlanResultOutput) ToLookupNetworkSwitchVlanResultOutput() LookupNetworkSwitchVlanResultOutput
func (LookupNetworkSwitchVlanResultOutput) ToLookupNetworkSwitchVlanResultOutputWithContext ¶
func (o LookupNetworkSwitchVlanResultOutput) ToLookupNetworkSwitchVlanResultOutputWithContext(ctx context.Context) LookupNetworkSwitchVlanResultOutput
func (LookupNetworkSwitchVlanResultOutput) ToOutput ¶
func (o LookupNetworkSwitchVlanResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupNetworkSwitchVlanResult]
func (LookupNetworkSwitchVlanResultOutput) Vid ¶
func (o LookupNetworkSwitchVlanResultOutput) Vid() pulumi.IntOutput
The VLAN tag number to use.
func (LookupNetworkSwitchVlanResultOutput) Vlan ¶
func (o LookupNetworkSwitchVlanResultOutput) Vlan() pulumi.IntOutput
The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
type LookupSystemSystemArgs ¶
type LookupSystemSystemArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getSystemSystem.
type LookupSystemSystemOutputArgs ¶
type LookupSystemSystemOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getSystemSystem.
func (LookupSystemSystemOutputArgs) ElementType ¶
func (LookupSystemSystemOutputArgs) ElementType() reflect.Type
type LookupSystemSystemResult ¶
type LookupSystemSystemResult struct { // The maximum log level for kernel messages to be logged to the console. Conloglevel int `pulumi:"conloglevel"` // The minimum level for cron messages to be logged to syslog. Cronloglevel int `pulumi:"cronloglevel"` // The hostname for the system. Description string `pulumi:"description"` // A short single-line description for the system. Hostname string `pulumi:"hostname"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Size of the file based log buffer in KiB. LogSize int `pulumi:"logSize"` // Multi-line free-form text about the system. Notes string `pulumi:"notes"` // The POSIX.1 time zone string. This has no corresponding value in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Timezone string `pulumi:"timezone"` // Require authentication for local users to log in the system. Ttylogin bool `pulumi:"ttylogin"` // The IANA/Olson time zone string. This corresponds to "Timezone" in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Zonename string `pulumi:"zonename"` }
A collection of values returned by getSystemSystem.
func LookupSystemSystem ¶
func LookupSystemSystem(ctx *pulumi.Context, args *LookupSystemSystemArgs, opts ...pulumi.InvokeOption) (*LookupSystemSystemResult, error)
Provides system data about an OpenWrt device
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupSystemSystem(ctx, &openwrt.LookupSystemSystemArgs{ Id: "cfg01e48a", }, nil) if err != nil { return err } return nil }) }
```
type LookupSystemSystemResultOutput ¶
type LookupSystemSystemResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSystemSystem.
func LookupSystemSystemOutput ¶
func LookupSystemSystemOutput(ctx *pulumi.Context, args LookupSystemSystemOutputArgs, opts ...pulumi.InvokeOption) LookupSystemSystemResultOutput
func (LookupSystemSystemResultOutput) Conloglevel ¶
func (o LookupSystemSystemResultOutput) Conloglevel() pulumi.IntOutput
The maximum log level for kernel messages to be logged to the console.
func (LookupSystemSystemResultOutput) Cronloglevel ¶
func (o LookupSystemSystemResultOutput) Cronloglevel() pulumi.IntOutput
The minimum level for cron messages to be logged to syslog.
func (LookupSystemSystemResultOutput) Description ¶
func (o LookupSystemSystemResultOutput) Description() pulumi.StringOutput
The hostname for the system.
func (LookupSystemSystemResultOutput) ElementType ¶
func (LookupSystemSystemResultOutput) ElementType() reflect.Type
func (LookupSystemSystemResultOutput) Hostname ¶
func (o LookupSystemSystemResultOutput) Hostname() pulumi.StringOutput
A short single-line description for the system.
func (LookupSystemSystemResultOutput) Id ¶
func (o LookupSystemSystemResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupSystemSystemResultOutput) LogSize ¶
func (o LookupSystemSystemResultOutput) LogSize() pulumi.IntOutput
Size of the file based log buffer in KiB.
func (LookupSystemSystemResultOutput) Notes ¶
func (o LookupSystemSystemResultOutput) Notes() pulumi.StringOutput
Multi-line free-form text about the system.
func (LookupSystemSystemResultOutput) Timezone ¶
func (o LookupSystemSystemResultOutput) Timezone() pulumi.StringOutput
The POSIX.1 time zone string. This has no corresponding value in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua.
func (LookupSystemSystemResultOutput) ToLookupSystemSystemResultOutput ¶
func (o LookupSystemSystemResultOutput) ToLookupSystemSystemResultOutput() LookupSystemSystemResultOutput
func (LookupSystemSystemResultOutput) ToLookupSystemSystemResultOutputWithContext ¶
func (o LookupSystemSystemResultOutput) ToLookupSystemSystemResultOutputWithContext(ctx context.Context) LookupSystemSystemResultOutput
func (LookupSystemSystemResultOutput) ToOutput ¶
func (o LookupSystemSystemResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupSystemSystemResult]
func (LookupSystemSystemResultOutput) Ttylogin ¶
func (o LookupSystemSystemResultOutput) Ttylogin() pulumi.BoolOutput
Require authentication for local users to log in the system.
func (LookupSystemSystemResultOutput) Zonename ¶
func (o LookupSystemSystemResultOutput) Zonename() pulumi.StringOutput
The IANA/Olson time zone string. This corresponds to "Timezone" in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua.
type LookupWirelessWifiDeviceArgs ¶
type LookupWirelessWifiDeviceArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getWirelessWifiDevice.
type LookupWirelessWifiDeviceOutputArgs ¶
type LookupWirelessWifiDeviceOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getWirelessWifiDevice.
func (LookupWirelessWifiDeviceOutputArgs) ElementType ¶
func (LookupWirelessWifiDeviceOutputArgs) ElementType() reflect.Type
type LookupWirelessWifiDeviceResult ¶
type LookupWirelessWifiDeviceResult struct { // Channel width. Must be one of: "2g", "5g", "6g". Band string `pulumi:"band"` // Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3. CellDensity int `pulumi:"cellDensity"` // The wireless channel. Currently, only "auto" is supported. Channel string `pulumi:"channel"` // Two-digit country code. E.g. "US". Country string `pulumi:"country"` // Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160". Htmode string `pulumi:"htmode"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Path of the device in `/sys/devices`. Path string `pulumi:"path"` // The type of device. Currently only "mac80211" is supported. Type string `pulumi:"type"` }
A collection of values returned by getWirelessWifiDevice.
func LookupWirelessWifiDevice ¶
func LookupWirelessWifiDevice(ctx *pulumi.Context, args *LookupWirelessWifiDeviceArgs, opts ...pulumi.InvokeOption) (*LookupWirelessWifiDeviceResult, error)
The physical radio device.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupWirelessWifiDevice(ctx, &openwrt.LookupWirelessWifiDeviceArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupWirelessWifiDeviceResultOutput ¶
type LookupWirelessWifiDeviceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getWirelessWifiDevice.
func LookupWirelessWifiDeviceOutput ¶
func LookupWirelessWifiDeviceOutput(ctx *pulumi.Context, args LookupWirelessWifiDeviceOutputArgs, opts ...pulumi.InvokeOption) LookupWirelessWifiDeviceResultOutput
func (LookupWirelessWifiDeviceResultOutput) Band ¶
func (o LookupWirelessWifiDeviceResultOutput) Band() pulumi.StringOutput
Channel width. Must be one of: "2g", "5g", "6g".
func (LookupWirelessWifiDeviceResultOutput) CellDensity ¶
func (o LookupWirelessWifiDeviceResultOutput) CellDensity() pulumi.IntOutput
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
func (LookupWirelessWifiDeviceResultOutput) Channel ¶
func (o LookupWirelessWifiDeviceResultOutput) Channel() pulumi.StringOutput
The wireless channel. Currently, only "auto" is supported.
func (LookupWirelessWifiDeviceResultOutput) Country ¶
func (o LookupWirelessWifiDeviceResultOutput) Country() pulumi.StringOutput
Two-digit country code. E.g. "US".
func (LookupWirelessWifiDeviceResultOutput) ElementType ¶
func (LookupWirelessWifiDeviceResultOutput) ElementType() reflect.Type
func (LookupWirelessWifiDeviceResultOutput) Htmode ¶
func (o LookupWirelessWifiDeviceResultOutput) Htmode() pulumi.StringOutput
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
func (LookupWirelessWifiDeviceResultOutput) Id ¶
func (o LookupWirelessWifiDeviceResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupWirelessWifiDeviceResultOutput) Path ¶
func (o LookupWirelessWifiDeviceResultOutput) Path() pulumi.StringOutput
Path of the device in `/sys/devices`.
func (LookupWirelessWifiDeviceResultOutput) ToLookupWirelessWifiDeviceResultOutput ¶
func (o LookupWirelessWifiDeviceResultOutput) ToLookupWirelessWifiDeviceResultOutput() LookupWirelessWifiDeviceResultOutput
func (LookupWirelessWifiDeviceResultOutput) ToLookupWirelessWifiDeviceResultOutputWithContext ¶
func (o LookupWirelessWifiDeviceResultOutput) ToLookupWirelessWifiDeviceResultOutputWithContext(ctx context.Context) LookupWirelessWifiDeviceResultOutput
func (LookupWirelessWifiDeviceResultOutput) ToOutput ¶
func (o LookupWirelessWifiDeviceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupWirelessWifiDeviceResult]
func (LookupWirelessWifiDeviceResultOutput) Type ¶
func (o LookupWirelessWifiDeviceResultOutput) Type() pulumi.StringOutput
The type of device. Currently only "mac80211" is supported.
type LookupWirelessWifiIfaceArgs ¶
type LookupWirelessWifiIfaceArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` }
A collection of arguments for invoking getWirelessWifiIface.
type LookupWirelessWifiIfaceOutputArgs ¶
type LookupWirelessWifiIfaceOutputArgs struct { // Name of the section. This name is only used when interacting with UCI directly. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking getWirelessWifiIface.
func (LookupWirelessWifiIfaceOutputArgs) ElementType ¶
func (LookupWirelessWifiIfaceOutputArgs) ElementType() reflect.Type
type LookupWirelessWifiIfaceResult ¶
type LookupWirelessWifiIfaceResult struct { Device string `pulumi:"device"` // Encryption method. Currently, only PSK encryption methods are supported. Must be one of: "none", "psk", "psk2", "psk2+aes", "psk2+ccmp", "psk2+tkip", "psk2+tkip+aes", "psk2+tkip+ccmp", "psk+aes", "psk+ccmp", "psk-mixed", "psk-mixed+aes", "psk-mixed+ccmp", "psk-mixed+tkip", "psk-mixed+tkip+aes", "psk-mixed+tkip+ccmp", "psk+tkip", "psk+tkip+aes", "psk+tkip+ccmp", "sae", "sae-mixed". Encryption string `pulumi:"encryption"` // Name of the section. This name is only used when interacting with UCI directly. Id string `pulumi:"id"` // Isolate wireless clients from each other. Isolate bool `pulumi:"isolate"` // The pre-shared passphrase from which the pre-shared key will be derived. The clear text key has to be 8-63 characters long. Key string `pulumi:"key"` // The operation mode of the wireless network interface controller.. Currently only "ap" is supported. Mode string `pulumi:"mode"` Network string `pulumi:"network"` // The broadcasted SSID of the wireless network. This is what actual clients will see the network as. Ssid string `pulumi:"ssid"` // Enable WPA key reinstallation attack (KRACK) workaround. This should be `true` to enable KRACK workaround (you almost surely want this enabled). WpaDisableEapolKeyRetries bool `pulumi:"wpaDisableEapolKeyRetries"` }
A collection of values returned by getWirelessWifiIface.
func LookupWirelessWifiIface ¶
func LookupWirelessWifiIface(ctx *pulumi.Context, args *LookupWirelessWifiIfaceArgs, opts ...pulumi.InvokeOption) (*LookupWirelessWifiIfaceResult, error)
A wireless network.
## Example Usage
```go package main
import (
"github.com/deposition-cloud/pulumi-openwrt/sdk/go/openwrt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := openwrt.LookupWirelessWifiIface(ctx, &openwrt.LookupWirelessWifiIfaceArgs{ Id: "testing", }, nil) if err != nil { return err } return nil }) }
```
type LookupWirelessWifiIfaceResultOutput ¶
type LookupWirelessWifiIfaceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getWirelessWifiIface.
func LookupWirelessWifiIfaceOutput ¶
func LookupWirelessWifiIfaceOutput(ctx *pulumi.Context, args LookupWirelessWifiIfaceOutputArgs, opts ...pulumi.InvokeOption) LookupWirelessWifiIfaceResultOutput
func (LookupWirelessWifiIfaceResultOutput) Device ¶
func (o LookupWirelessWifiIfaceResultOutput) Device() pulumi.StringOutput
func (LookupWirelessWifiIfaceResultOutput) ElementType ¶
func (LookupWirelessWifiIfaceResultOutput) ElementType() reflect.Type
func (LookupWirelessWifiIfaceResultOutput) Encryption ¶
func (o LookupWirelessWifiIfaceResultOutput) Encryption() pulumi.StringOutput
Encryption method. Currently, only PSK encryption methods are supported. Must be one of: "none", "psk", "psk2", "psk2+aes", "psk2+ccmp", "psk2+tkip", "psk2+tkip+aes", "psk2+tkip+ccmp", "psk+aes", "psk+ccmp", "psk-mixed", "psk-mixed+aes", "psk-mixed+ccmp", "psk-mixed+tkip", "psk-mixed+tkip+aes", "psk-mixed+tkip+ccmp", "psk+tkip", "psk+tkip+aes", "psk+tkip+ccmp", "sae", "sae-mixed".
func (LookupWirelessWifiIfaceResultOutput) Id ¶
func (o LookupWirelessWifiIfaceResultOutput) Id() pulumi.StringOutput
Name of the section. This name is only used when interacting with UCI directly.
func (LookupWirelessWifiIfaceResultOutput) Isolate ¶
func (o LookupWirelessWifiIfaceResultOutput) Isolate() pulumi.BoolOutput
Isolate wireless clients from each other.
func (LookupWirelessWifiIfaceResultOutput) Key ¶
func (o LookupWirelessWifiIfaceResultOutput) Key() pulumi.StringOutput
The pre-shared passphrase from which the pre-shared key will be derived. The clear text key has to be 8-63 characters long.
func (LookupWirelessWifiIfaceResultOutput) Mode ¶
func (o LookupWirelessWifiIfaceResultOutput) Mode() pulumi.StringOutput
The operation mode of the wireless network interface controller.. Currently only "ap" is supported.
func (LookupWirelessWifiIfaceResultOutput) Network ¶
func (o LookupWirelessWifiIfaceResultOutput) Network() pulumi.StringOutput
func (LookupWirelessWifiIfaceResultOutput) Ssid ¶
func (o LookupWirelessWifiIfaceResultOutput) Ssid() pulumi.StringOutput
The broadcasted SSID of the wireless network. This is what actual clients will see the network as.
func (LookupWirelessWifiIfaceResultOutput) ToLookupWirelessWifiIfaceResultOutput ¶
func (o LookupWirelessWifiIfaceResultOutput) ToLookupWirelessWifiIfaceResultOutput() LookupWirelessWifiIfaceResultOutput
func (LookupWirelessWifiIfaceResultOutput) ToLookupWirelessWifiIfaceResultOutputWithContext ¶
func (o LookupWirelessWifiIfaceResultOutput) ToLookupWirelessWifiIfaceResultOutputWithContext(ctx context.Context) LookupWirelessWifiIfaceResultOutput
func (LookupWirelessWifiIfaceResultOutput) ToOutput ¶
func (o LookupWirelessWifiIfaceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupWirelessWifiIfaceResult]
func (LookupWirelessWifiIfaceResultOutput) WpaDisableEapolKeyRetries ¶
func (o LookupWirelessWifiIfaceResultOutput) WpaDisableEapolKeyRetries() pulumi.BoolOutput
Enable WPA key reinstallation attack (KRACK) workaround. This should be `true` to enable KRACK workaround (you almost surely want this enabled).
type NetworkDevice ¶
type NetworkDevice struct { pulumi.CustomResourceState // Bring up the bridge device even if no ports are attached BridgeEmpty pulumi.BoolOutput `pulumi:"bridgeEmpty"` // Amount of Duplicate Address Detection probes to send Dadtransmits pulumi.IntOutput `pulumi:"dadtransmits"` // Enable IPv6 for the device. Ipv6 pulumi.BoolOutput `pulumi:"ipv6"` // MAC Address of the device. Macaddr pulumi.StringOutput `pulumi:"macaddr"` // Maximum Transmissible Unit. Mtu pulumi.IntOutput `pulumi:"mtu"` // Maximum Transmissible Unit for IPv6. Mtu6 pulumi.IntOutput `pulumi:"mtu6"` // Name of the device. This name is referenced in other network configuration. Name pulumi.StringOutput `pulumi:"name"` // Specifies the wired ports to attach to this bridge. Ports pulumi.StringArrayOutput `pulumi:"ports"` // Transmission queue length. Txqueuelen pulumi.IntOutput `pulumi:"txqueuelen"` // The type of device. Currently, only "bridge" is supported. Type pulumi.StringOutput `pulumi:"type"` }
A physical or virtual "device" in OpenWrt jargon. Commonly referred to as an "interface" in other networking jargon.
## Import
Find the Terraform id and UCI name from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["network", "device"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"], uciName.name})' # This command will output something like# [ { "terraformId""cfg030f15", "uciName""foo" }, { "terraformId""cfg040f15", "uciName""bar" } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/networkDevice:NetworkDevice foo cfg030f15
```
func GetNetworkDevice ¶
func GetNetworkDevice(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkDeviceState, opts ...pulumi.ResourceOption) (*NetworkDevice, error)
GetNetworkDevice gets an existing NetworkDevice 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 NewNetworkDevice ¶
func NewNetworkDevice(ctx *pulumi.Context, name string, args *NetworkDeviceArgs, opts ...pulumi.ResourceOption) (*NetworkDevice, error)
NewNetworkDevice registers a new resource with the given unique name, arguments, and options.
func (*NetworkDevice) ElementType ¶
func (*NetworkDevice) ElementType() reflect.Type
func (*NetworkDevice) ToNetworkDeviceOutput ¶
func (i *NetworkDevice) ToNetworkDeviceOutput() NetworkDeviceOutput
func (*NetworkDevice) ToNetworkDeviceOutputWithContext ¶
func (i *NetworkDevice) ToNetworkDeviceOutputWithContext(ctx context.Context) NetworkDeviceOutput
func (*NetworkDevice) ToOutput ¶
func (i *NetworkDevice) ToOutput(ctx context.Context) pulumix.Output[*NetworkDevice]
type NetworkDeviceArgs ¶
type NetworkDeviceArgs struct { // Bring up the bridge device even if no ports are attached BridgeEmpty pulumi.BoolPtrInput // Amount of Duplicate Address Detection probes to send Dadtransmits pulumi.IntPtrInput // Enable IPv6 for the device. Ipv6 pulumi.BoolPtrInput // MAC Address of the device. Macaddr pulumi.StringPtrInput // Maximum Transmissible Unit. Mtu pulumi.IntPtrInput // Maximum Transmissible Unit for IPv6. Mtu6 pulumi.IntPtrInput // Name of the device. This name is referenced in other network configuration. Name pulumi.StringPtrInput // Specifies the wired ports to attach to this bridge. Ports pulumi.StringArrayInput // Transmission queue length. Txqueuelen pulumi.IntPtrInput // The type of device. Currently, only "bridge" is supported. Type pulumi.StringInput }
The set of arguments for constructing a NetworkDevice resource.
func (NetworkDeviceArgs) ElementType ¶
func (NetworkDeviceArgs) ElementType() reflect.Type
type NetworkDeviceArray ¶
type NetworkDeviceArray []NetworkDeviceInput
func (NetworkDeviceArray) ElementType ¶
func (NetworkDeviceArray) ElementType() reflect.Type
func (NetworkDeviceArray) ToNetworkDeviceArrayOutput ¶
func (i NetworkDeviceArray) ToNetworkDeviceArrayOutput() NetworkDeviceArrayOutput
func (NetworkDeviceArray) ToNetworkDeviceArrayOutputWithContext ¶
func (i NetworkDeviceArray) ToNetworkDeviceArrayOutputWithContext(ctx context.Context) NetworkDeviceArrayOutput
func (NetworkDeviceArray) ToOutput ¶
func (i NetworkDeviceArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkDevice]
type NetworkDeviceArrayInput ¶
type NetworkDeviceArrayInput interface { pulumi.Input ToNetworkDeviceArrayOutput() NetworkDeviceArrayOutput ToNetworkDeviceArrayOutputWithContext(context.Context) NetworkDeviceArrayOutput }
NetworkDeviceArrayInput is an input type that accepts NetworkDeviceArray and NetworkDeviceArrayOutput values. You can construct a concrete instance of `NetworkDeviceArrayInput` via:
NetworkDeviceArray{ NetworkDeviceArgs{...} }
type NetworkDeviceArrayOutput ¶
type NetworkDeviceArrayOutput struct{ *pulumi.OutputState }
func (NetworkDeviceArrayOutput) ElementType ¶
func (NetworkDeviceArrayOutput) ElementType() reflect.Type
func (NetworkDeviceArrayOutput) Index ¶
func (o NetworkDeviceArrayOutput) Index(i pulumi.IntInput) NetworkDeviceOutput
func (NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutput ¶
func (o NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutput() NetworkDeviceArrayOutput
func (NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutputWithContext ¶
func (o NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutputWithContext(ctx context.Context) NetworkDeviceArrayOutput
func (NetworkDeviceArrayOutput) ToOutput ¶
func (o NetworkDeviceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkDevice]
type NetworkDeviceInput ¶
type NetworkDeviceInput interface { pulumi.Input ToNetworkDeviceOutput() NetworkDeviceOutput ToNetworkDeviceOutputWithContext(ctx context.Context) NetworkDeviceOutput }
type NetworkDeviceMap ¶
type NetworkDeviceMap map[string]NetworkDeviceInput
func (NetworkDeviceMap) ElementType ¶
func (NetworkDeviceMap) ElementType() reflect.Type
func (NetworkDeviceMap) ToNetworkDeviceMapOutput ¶
func (i NetworkDeviceMap) ToNetworkDeviceMapOutput() NetworkDeviceMapOutput
func (NetworkDeviceMap) ToNetworkDeviceMapOutputWithContext ¶
func (i NetworkDeviceMap) ToNetworkDeviceMapOutputWithContext(ctx context.Context) NetworkDeviceMapOutput
func (NetworkDeviceMap) ToOutput ¶
func (i NetworkDeviceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkDevice]
type NetworkDeviceMapInput ¶
type NetworkDeviceMapInput interface { pulumi.Input ToNetworkDeviceMapOutput() NetworkDeviceMapOutput ToNetworkDeviceMapOutputWithContext(context.Context) NetworkDeviceMapOutput }
NetworkDeviceMapInput is an input type that accepts NetworkDeviceMap and NetworkDeviceMapOutput values. You can construct a concrete instance of `NetworkDeviceMapInput` via:
NetworkDeviceMap{ "key": NetworkDeviceArgs{...} }
type NetworkDeviceMapOutput ¶
type NetworkDeviceMapOutput struct{ *pulumi.OutputState }
func (NetworkDeviceMapOutput) ElementType ¶
func (NetworkDeviceMapOutput) ElementType() reflect.Type
func (NetworkDeviceMapOutput) MapIndex ¶
func (o NetworkDeviceMapOutput) MapIndex(k pulumi.StringInput) NetworkDeviceOutput
func (NetworkDeviceMapOutput) ToNetworkDeviceMapOutput ¶
func (o NetworkDeviceMapOutput) ToNetworkDeviceMapOutput() NetworkDeviceMapOutput
func (NetworkDeviceMapOutput) ToNetworkDeviceMapOutputWithContext ¶
func (o NetworkDeviceMapOutput) ToNetworkDeviceMapOutputWithContext(ctx context.Context) NetworkDeviceMapOutput
func (NetworkDeviceMapOutput) ToOutput ¶
func (o NetworkDeviceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkDevice]
type NetworkDeviceOutput ¶
type NetworkDeviceOutput struct{ *pulumi.OutputState }
func (NetworkDeviceOutput) BridgeEmpty ¶
func (o NetworkDeviceOutput) BridgeEmpty() pulumi.BoolOutput
Bring up the bridge device even if no ports are attached
func (NetworkDeviceOutput) Dadtransmits ¶
func (o NetworkDeviceOutput) Dadtransmits() pulumi.IntOutput
Amount of Duplicate Address Detection probes to send
func (NetworkDeviceOutput) ElementType ¶
func (NetworkDeviceOutput) ElementType() reflect.Type
func (NetworkDeviceOutput) Ipv6 ¶
func (o NetworkDeviceOutput) Ipv6() pulumi.BoolOutput
Enable IPv6 for the device.
func (NetworkDeviceOutput) Macaddr ¶
func (o NetworkDeviceOutput) Macaddr() pulumi.StringOutput
MAC Address of the device.
func (NetworkDeviceOutput) Mtu ¶
func (o NetworkDeviceOutput) Mtu() pulumi.IntOutput
Maximum Transmissible Unit.
func (NetworkDeviceOutput) Mtu6 ¶
func (o NetworkDeviceOutput) Mtu6() pulumi.IntOutput
Maximum Transmissible Unit for IPv6.
func (NetworkDeviceOutput) Name ¶
func (o NetworkDeviceOutput) Name() pulumi.StringOutput
Name of the device. This name is referenced in other network configuration.
func (NetworkDeviceOutput) Ports ¶
func (o NetworkDeviceOutput) Ports() pulumi.StringArrayOutput
Specifies the wired ports to attach to this bridge.
func (NetworkDeviceOutput) ToNetworkDeviceOutput ¶
func (o NetworkDeviceOutput) ToNetworkDeviceOutput() NetworkDeviceOutput
func (NetworkDeviceOutput) ToNetworkDeviceOutputWithContext ¶
func (o NetworkDeviceOutput) ToNetworkDeviceOutputWithContext(ctx context.Context) NetworkDeviceOutput
func (NetworkDeviceOutput) ToOutput ¶
func (o NetworkDeviceOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkDevice]
func (NetworkDeviceOutput) Txqueuelen ¶
func (o NetworkDeviceOutput) Txqueuelen() pulumi.IntOutput
Transmission queue length.
func (NetworkDeviceOutput) Type ¶
func (o NetworkDeviceOutput) Type() pulumi.StringOutput
The type of device. Currently, only "bridge" is supported.
type NetworkDeviceState ¶
type NetworkDeviceState struct { // Bring up the bridge device even if no ports are attached BridgeEmpty pulumi.BoolPtrInput // Amount of Duplicate Address Detection probes to send Dadtransmits pulumi.IntPtrInput // Enable IPv6 for the device. Ipv6 pulumi.BoolPtrInput // MAC Address of the device. Macaddr pulumi.StringPtrInput // Maximum Transmissible Unit. Mtu pulumi.IntPtrInput // Maximum Transmissible Unit for IPv6. Mtu6 pulumi.IntPtrInput // Name of the device. This name is referenced in other network configuration. Name pulumi.StringPtrInput // Specifies the wired ports to attach to this bridge. Ports pulumi.StringArrayInput // Transmission queue length. Txqueuelen pulumi.IntPtrInput // The type of device. Currently, only "bridge" is supported. Type pulumi.StringPtrInput }
func (NetworkDeviceState) ElementType ¶
func (NetworkDeviceState) ElementType() reflect.Type
type NetworkGlobals ¶
type NetworkGlobals struct { pulumi.CustomResourceState // Use every CPU to handle packet traffic. PacketSteering pulumi.BoolOutput `pulumi:"packetSteering"` // IPv6 ULA prefix for this device. UlaPrefix pulumi.StringOutput `pulumi:"ulaPrefix"` }
Contains interface-independent options affecting the network configuration in general.
## Import
There should only be one `network.globals` config. It seems to default to the UCI name of `globals`.
```sh
$ pulumi import openwrt:index/networkGlobals:NetworkGlobals this globals
```
func GetNetworkGlobals ¶
func GetNetworkGlobals(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkGlobalsState, opts ...pulumi.ResourceOption) (*NetworkGlobals, error)
GetNetworkGlobals gets an existing NetworkGlobals 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 NewNetworkGlobals ¶
func NewNetworkGlobals(ctx *pulumi.Context, name string, args *NetworkGlobalsArgs, opts ...pulumi.ResourceOption) (*NetworkGlobals, error)
NewNetworkGlobals registers a new resource with the given unique name, arguments, and options.
func (*NetworkGlobals) ElementType ¶
func (*NetworkGlobals) ElementType() reflect.Type
func (*NetworkGlobals) ToNetworkGlobalsOutput ¶
func (i *NetworkGlobals) ToNetworkGlobalsOutput() NetworkGlobalsOutput
func (*NetworkGlobals) ToNetworkGlobalsOutputWithContext ¶
func (i *NetworkGlobals) ToNetworkGlobalsOutputWithContext(ctx context.Context) NetworkGlobalsOutput
func (*NetworkGlobals) ToOutput ¶
func (i *NetworkGlobals) ToOutput(ctx context.Context) pulumix.Output[*NetworkGlobals]
type NetworkGlobalsArgs ¶
type NetworkGlobalsArgs struct { // Use every CPU to handle packet traffic. PacketSteering pulumi.BoolPtrInput // IPv6 ULA prefix for this device. UlaPrefix pulumi.StringPtrInput }
The set of arguments for constructing a NetworkGlobals resource.
func (NetworkGlobalsArgs) ElementType ¶
func (NetworkGlobalsArgs) ElementType() reflect.Type
type NetworkGlobalsArray ¶
type NetworkGlobalsArray []NetworkGlobalsInput
func (NetworkGlobalsArray) ElementType ¶
func (NetworkGlobalsArray) ElementType() reflect.Type
func (NetworkGlobalsArray) ToNetworkGlobalsArrayOutput ¶
func (i NetworkGlobalsArray) ToNetworkGlobalsArrayOutput() NetworkGlobalsArrayOutput
func (NetworkGlobalsArray) ToNetworkGlobalsArrayOutputWithContext ¶
func (i NetworkGlobalsArray) ToNetworkGlobalsArrayOutputWithContext(ctx context.Context) NetworkGlobalsArrayOutput
func (NetworkGlobalsArray) ToOutput ¶
func (i NetworkGlobalsArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkGlobals]
type NetworkGlobalsArrayInput ¶
type NetworkGlobalsArrayInput interface { pulumi.Input ToNetworkGlobalsArrayOutput() NetworkGlobalsArrayOutput ToNetworkGlobalsArrayOutputWithContext(context.Context) NetworkGlobalsArrayOutput }
NetworkGlobalsArrayInput is an input type that accepts NetworkGlobalsArray and NetworkGlobalsArrayOutput values. You can construct a concrete instance of `NetworkGlobalsArrayInput` via:
NetworkGlobalsArray{ NetworkGlobalsArgs{...} }
type NetworkGlobalsArrayOutput ¶
type NetworkGlobalsArrayOutput struct{ *pulumi.OutputState }
func (NetworkGlobalsArrayOutput) ElementType ¶
func (NetworkGlobalsArrayOutput) ElementType() reflect.Type
func (NetworkGlobalsArrayOutput) Index ¶
func (o NetworkGlobalsArrayOutput) Index(i pulumi.IntInput) NetworkGlobalsOutput
func (NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutput ¶
func (o NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutput() NetworkGlobalsArrayOutput
func (NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutputWithContext ¶
func (o NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutputWithContext(ctx context.Context) NetworkGlobalsArrayOutput
func (NetworkGlobalsArrayOutput) ToOutput ¶
func (o NetworkGlobalsArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkGlobals]
type NetworkGlobalsInput ¶
type NetworkGlobalsInput interface { pulumi.Input ToNetworkGlobalsOutput() NetworkGlobalsOutput ToNetworkGlobalsOutputWithContext(ctx context.Context) NetworkGlobalsOutput }
type NetworkGlobalsMap ¶
type NetworkGlobalsMap map[string]NetworkGlobalsInput
func (NetworkGlobalsMap) ElementType ¶
func (NetworkGlobalsMap) ElementType() reflect.Type
func (NetworkGlobalsMap) ToNetworkGlobalsMapOutput ¶
func (i NetworkGlobalsMap) ToNetworkGlobalsMapOutput() NetworkGlobalsMapOutput
func (NetworkGlobalsMap) ToNetworkGlobalsMapOutputWithContext ¶
func (i NetworkGlobalsMap) ToNetworkGlobalsMapOutputWithContext(ctx context.Context) NetworkGlobalsMapOutput
func (NetworkGlobalsMap) ToOutput ¶
func (i NetworkGlobalsMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkGlobals]
type NetworkGlobalsMapInput ¶
type NetworkGlobalsMapInput interface { pulumi.Input ToNetworkGlobalsMapOutput() NetworkGlobalsMapOutput ToNetworkGlobalsMapOutputWithContext(context.Context) NetworkGlobalsMapOutput }
NetworkGlobalsMapInput is an input type that accepts NetworkGlobalsMap and NetworkGlobalsMapOutput values. You can construct a concrete instance of `NetworkGlobalsMapInput` via:
NetworkGlobalsMap{ "key": NetworkGlobalsArgs{...} }
type NetworkGlobalsMapOutput ¶
type NetworkGlobalsMapOutput struct{ *pulumi.OutputState }
func (NetworkGlobalsMapOutput) ElementType ¶
func (NetworkGlobalsMapOutput) ElementType() reflect.Type
func (NetworkGlobalsMapOutput) MapIndex ¶
func (o NetworkGlobalsMapOutput) MapIndex(k pulumi.StringInput) NetworkGlobalsOutput
func (NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutput ¶
func (o NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutput() NetworkGlobalsMapOutput
func (NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutputWithContext ¶
func (o NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutputWithContext(ctx context.Context) NetworkGlobalsMapOutput
func (NetworkGlobalsMapOutput) ToOutput ¶
func (o NetworkGlobalsMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkGlobals]
type NetworkGlobalsOutput ¶
type NetworkGlobalsOutput struct{ *pulumi.OutputState }
func (NetworkGlobalsOutput) ElementType ¶
func (NetworkGlobalsOutput) ElementType() reflect.Type
func (NetworkGlobalsOutput) PacketSteering ¶
func (o NetworkGlobalsOutput) PacketSteering() pulumi.BoolOutput
Use every CPU to handle packet traffic.
func (NetworkGlobalsOutput) ToNetworkGlobalsOutput ¶
func (o NetworkGlobalsOutput) ToNetworkGlobalsOutput() NetworkGlobalsOutput
func (NetworkGlobalsOutput) ToNetworkGlobalsOutputWithContext ¶
func (o NetworkGlobalsOutput) ToNetworkGlobalsOutputWithContext(ctx context.Context) NetworkGlobalsOutput
func (NetworkGlobalsOutput) ToOutput ¶
func (o NetworkGlobalsOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkGlobals]
func (NetworkGlobalsOutput) UlaPrefix ¶
func (o NetworkGlobalsOutput) UlaPrefix() pulumi.StringOutput
IPv6 ULA prefix for this device.
type NetworkGlobalsState ¶
type NetworkGlobalsState struct { // Use every CPU to handle packet traffic. PacketSteering pulumi.BoolPtrInput // IPv6 ULA prefix for this device. UlaPrefix pulumi.StringPtrInput }
func (NetworkGlobalsState) ElementType ¶
func (NetworkGlobalsState) ElementType() reflect.Type
type NetworkInterface ¶
type NetworkInterface struct { pulumi.CustomResourceState // Specifies whether to bring up this interface on boot. Auto pulumi.BoolOutput `pulumi:"auto"` // Name of the (physical or virtual) device. This name is what the device is known as in LuCI or the `name` field in // Terraform. This is not the UCI config name. Device pulumi.StringOutput `pulumi:"device"` // Disables this interface. Disabled pulumi.BoolOutput `pulumi:"disabled"` // DNS servers Dns pulumi.StringArrayOutput `pulumi:"dns"` // Gateway of the interface Gateway pulumi.StringOutput `pulumi:"gateway"` // Delegate a prefix of given length to this interface Ip6assign pulumi.IntOutput `pulumi:"ip6assign"` // IP address of the interface Ipaddr pulumi.StringOutput `pulumi:"ipaddr"` // Override the MAC Address of this interface. Macaddr pulumi.StringOutput `pulumi:"macaddr"` // Override the default MTU on this interface. Mtu pulumi.IntOutput `pulumi:"mtu"` // Netmask of the interface Netmask pulumi.StringOutput `pulumi:"netmask"` // Use DHCP-provided DNS servers. Peerdns pulumi.BoolOutput `pulumi:"peerdns"` // The protocol type of the interface. Currently, only "dhcp, and "static" are supported. Proto pulumi.StringOutput `pulumi:"proto"` // Behavior for requesting address. Can only be one of "force", "try", or "none". Reqaddress pulumi.StringOutput `pulumi:"reqaddress"` // Behavior for requesting prefixes. Currently, only "auto" is supported. Reqprefix pulumi.StringOutput `pulumi:"reqprefix"` }
A logic network.
## Import
Find the Terraform id is the same as the UCI name from LuCI's JSON-RPC API. It is also generally the lower-cased version of the interface name in LuCI's web UI. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["network", "interface"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map(.[".name"])' # This command will output something like# [ "loopback", "wan", "wan6" ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/networkInterface:NetworkInterface loopback loopback
```
func GetNetworkInterface ¶
func GetNetworkInterface(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkInterfaceState, opts ...pulumi.ResourceOption) (*NetworkInterface, error)
GetNetworkInterface gets an existing NetworkInterface 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 NewNetworkInterface ¶
func NewNetworkInterface(ctx *pulumi.Context, name string, args *NetworkInterfaceArgs, opts ...pulumi.ResourceOption) (*NetworkInterface, error)
NewNetworkInterface registers a new resource with the given unique name, arguments, and options.
func (*NetworkInterface) ElementType ¶
func (*NetworkInterface) ElementType() reflect.Type
func (*NetworkInterface) ToNetworkInterfaceOutput ¶
func (i *NetworkInterface) ToNetworkInterfaceOutput() NetworkInterfaceOutput
func (*NetworkInterface) ToNetworkInterfaceOutputWithContext ¶
func (i *NetworkInterface) ToNetworkInterfaceOutputWithContext(ctx context.Context) NetworkInterfaceOutput
func (*NetworkInterface) ToOutput ¶
func (i *NetworkInterface) ToOutput(ctx context.Context) pulumix.Output[*NetworkInterface]
type NetworkInterfaceArgs ¶
type NetworkInterfaceArgs struct { // Specifies whether to bring up this interface on boot. Auto pulumi.BoolPtrInput // Name of the (physical or virtual) device. This name is what the device is known as in LuCI or the `name` field in // Terraform. This is not the UCI config name. Device pulumi.StringInput // Disables this interface. Disabled pulumi.BoolPtrInput // DNS servers Dns pulumi.StringArrayInput // Gateway of the interface Gateway pulumi.StringPtrInput // Delegate a prefix of given length to this interface Ip6assign pulumi.IntPtrInput // IP address of the interface Ipaddr pulumi.StringPtrInput // Override the MAC Address of this interface. Macaddr pulumi.StringPtrInput // Override the default MTU on this interface. Mtu pulumi.IntPtrInput // Netmask of the interface Netmask pulumi.StringPtrInput // Use DHCP-provided DNS servers. Peerdns pulumi.BoolPtrInput // The protocol type of the interface. Currently, only "dhcp, and "static" are supported. Proto pulumi.StringInput // Behavior for requesting address. Can only be one of "force", "try", or "none". Reqaddress pulumi.StringPtrInput // Behavior for requesting prefixes. Currently, only "auto" is supported. Reqprefix pulumi.StringPtrInput }
The set of arguments for constructing a NetworkInterface resource.
func (NetworkInterfaceArgs) ElementType ¶
func (NetworkInterfaceArgs) ElementType() reflect.Type
type NetworkInterfaceArray ¶
type NetworkInterfaceArray []NetworkInterfaceInput
func (NetworkInterfaceArray) ElementType ¶
func (NetworkInterfaceArray) ElementType() reflect.Type
func (NetworkInterfaceArray) ToNetworkInterfaceArrayOutput ¶
func (i NetworkInterfaceArray) ToNetworkInterfaceArrayOutput() NetworkInterfaceArrayOutput
func (NetworkInterfaceArray) ToNetworkInterfaceArrayOutputWithContext ¶
func (i NetworkInterfaceArray) ToNetworkInterfaceArrayOutputWithContext(ctx context.Context) NetworkInterfaceArrayOutput
func (NetworkInterfaceArray) ToOutput ¶
func (i NetworkInterfaceArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkInterface]
type NetworkInterfaceArrayInput ¶
type NetworkInterfaceArrayInput interface { pulumi.Input ToNetworkInterfaceArrayOutput() NetworkInterfaceArrayOutput ToNetworkInterfaceArrayOutputWithContext(context.Context) NetworkInterfaceArrayOutput }
NetworkInterfaceArrayInput is an input type that accepts NetworkInterfaceArray and NetworkInterfaceArrayOutput values. You can construct a concrete instance of `NetworkInterfaceArrayInput` via:
NetworkInterfaceArray{ NetworkInterfaceArgs{...} }
type NetworkInterfaceArrayOutput ¶
type NetworkInterfaceArrayOutput struct{ *pulumi.OutputState }
func (NetworkInterfaceArrayOutput) ElementType ¶
func (NetworkInterfaceArrayOutput) ElementType() reflect.Type
func (NetworkInterfaceArrayOutput) Index ¶
func (o NetworkInterfaceArrayOutput) Index(i pulumi.IntInput) NetworkInterfaceOutput
func (NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutput ¶
func (o NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutput() NetworkInterfaceArrayOutput
func (NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutputWithContext ¶
func (o NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutputWithContext(ctx context.Context) NetworkInterfaceArrayOutput
func (NetworkInterfaceArrayOutput) ToOutput ¶
func (o NetworkInterfaceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkInterface]
type NetworkInterfaceInput ¶
type NetworkInterfaceInput interface { pulumi.Input ToNetworkInterfaceOutput() NetworkInterfaceOutput ToNetworkInterfaceOutputWithContext(ctx context.Context) NetworkInterfaceOutput }
type NetworkInterfaceMap ¶
type NetworkInterfaceMap map[string]NetworkInterfaceInput
func (NetworkInterfaceMap) ElementType ¶
func (NetworkInterfaceMap) ElementType() reflect.Type
func (NetworkInterfaceMap) ToNetworkInterfaceMapOutput ¶
func (i NetworkInterfaceMap) ToNetworkInterfaceMapOutput() NetworkInterfaceMapOutput
func (NetworkInterfaceMap) ToNetworkInterfaceMapOutputWithContext ¶
func (i NetworkInterfaceMap) ToNetworkInterfaceMapOutputWithContext(ctx context.Context) NetworkInterfaceMapOutput
func (NetworkInterfaceMap) ToOutput ¶
func (i NetworkInterfaceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkInterface]
type NetworkInterfaceMapInput ¶
type NetworkInterfaceMapInput interface { pulumi.Input ToNetworkInterfaceMapOutput() NetworkInterfaceMapOutput ToNetworkInterfaceMapOutputWithContext(context.Context) NetworkInterfaceMapOutput }
NetworkInterfaceMapInput is an input type that accepts NetworkInterfaceMap and NetworkInterfaceMapOutput values. You can construct a concrete instance of `NetworkInterfaceMapInput` via:
NetworkInterfaceMap{ "key": NetworkInterfaceArgs{...} }
type NetworkInterfaceMapOutput ¶
type NetworkInterfaceMapOutput struct{ *pulumi.OutputState }
func (NetworkInterfaceMapOutput) ElementType ¶
func (NetworkInterfaceMapOutput) ElementType() reflect.Type
func (NetworkInterfaceMapOutput) MapIndex ¶
func (o NetworkInterfaceMapOutput) MapIndex(k pulumi.StringInput) NetworkInterfaceOutput
func (NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutput ¶
func (o NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutput() NetworkInterfaceMapOutput
func (NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutputWithContext ¶
func (o NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutputWithContext(ctx context.Context) NetworkInterfaceMapOutput
func (NetworkInterfaceMapOutput) ToOutput ¶
func (o NetworkInterfaceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkInterface]
type NetworkInterfaceOutput ¶
type NetworkInterfaceOutput struct{ *pulumi.OutputState }
func (NetworkInterfaceOutput) Auto ¶
func (o NetworkInterfaceOutput) Auto() pulumi.BoolOutput
Specifies whether to bring up this interface on boot.
func (NetworkInterfaceOutput) Device ¶
func (o NetworkInterfaceOutput) Device() pulumi.StringOutput
Name of the (physical or virtual) device. This name is what the device is known as in LuCI or the `name` field in Terraform. This is not the UCI config name.
func (NetworkInterfaceOutput) Disabled ¶
func (o NetworkInterfaceOutput) Disabled() pulumi.BoolOutput
Disables this interface.
func (NetworkInterfaceOutput) Dns ¶
func (o NetworkInterfaceOutput) Dns() pulumi.StringArrayOutput
DNS servers
func (NetworkInterfaceOutput) ElementType ¶
func (NetworkInterfaceOutput) ElementType() reflect.Type
func (NetworkInterfaceOutput) Gateway ¶
func (o NetworkInterfaceOutput) Gateway() pulumi.StringOutput
Gateway of the interface
func (NetworkInterfaceOutput) Ip6assign ¶
func (o NetworkInterfaceOutput) Ip6assign() pulumi.IntOutput
Delegate a prefix of given length to this interface
func (NetworkInterfaceOutput) Ipaddr ¶
func (o NetworkInterfaceOutput) Ipaddr() pulumi.StringOutput
IP address of the interface
func (NetworkInterfaceOutput) Macaddr ¶
func (o NetworkInterfaceOutput) Macaddr() pulumi.StringOutput
Override the MAC Address of this interface.
func (NetworkInterfaceOutput) Mtu ¶
func (o NetworkInterfaceOutput) Mtu() pulumi.IntOutput
Override the default MTU on this interface.
func (NetworkInterfaceOutput) Netmask ¶
func (o NetworkInterfaceOutput) Netmask() pulumi.StringOutput
Netmask of the interface
func (NetworkInterfaceOutput) Peerdns ¶
func (o NetworkInterfaceOutput) Peerdns() pulumi.BoolOutput
Use DHCP-provided DNS servers.
func (NetworkInterfaceOutput) Proto ¶
func (o NetworkInterfaceOutput) Proto() pulumi.StringOutput
The protocol type of the interface. Currently, only "dhcp, and "static" are supported.
func (NetworkInterfaceOutput) Reqaddress ¶
func (o NetworkInterfaceOutput) Reqaddress() pulumi.StringOutput
Behavior for requesting address. Can only be one of "force", "try", or "none".
func (NetworkInterfaceOutput) Reqprefix ¶
func (o NetworkInterfaceOutput) Reqprefix() pulumi.StringOutput
Behavior for requesting prefixes. Currently, only "auto" is supported.
func (NetworkInterfaceOutput) ToNetworkInterfaceOutput ¶
func (o NetworkInterfaceOutput) ToNetworkInterfaceOutput() NetworkInterfaceOutput
func (NetworkInterfaceOutput) ToNetworkInterfaceOutputWithContext ¶
func (o NetworkInterfaceOutput) ToNetworkInterfaceOutputWithContext(ctx context.Context) NetworkInterfaceOutput
func (NetworkInterfaceOutput) ToOutput ¶
func (o NetworkInterfaceOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkInterface]
type NetworkInterfaceState ¶
type NetworkInterfaceState struct { // Specifies whether to bring up this interface on boot. Auto pulumi.BoolPtrInput // Name of the (physical or virtual) device. This name is what the device is known as in LuCI or the `name` field in // Terraform. This is not the UCI config name. Device pulumi.StringPtrInput // Disables this interface. Disabled pulumi.BoolPtrInput // DNS servers Dns pulumi.StringArrayInput // Gateway of the interface Gateway pulumi.StringPtrInput // Delegate a prefix of given length to this interface Ip6assign pulumi.IntPtrInput // IP address of the interface Ipaddr pulumi.StringPtrInput // Override the MAC Address of this interface. Macaddr pulumi.StringPtrInput // Override the default MTU on this interface. Mtu pulumi.IntPtrInput // Netmask of the interface Netmask pulumi.StringPtrInput // Use DHCP-provided DNS servers. Peerdns pulumi.BoolPtrInput // The protocol type of the interface. Currently, only "dhcp, and "static" are supported. Proto pulumi.StringPtrInput // Behavior for requesting address. Can only be one of "force", "try", or "none". Reqaddress pulumi.StringPtrInput // Behavior for requesting prefixes. Currently, only "auto" is supported. Reqprefix pulumi.StringPtrInput }
func (NetworkInterfaceState) ElementType ¶
func (NetworkInterfaceState) ElementType() reflect.Type
type NetworkSwitch ¶
type NetworkSwitch struct { pulumi.CustomResourceState // Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorRx pulumi.BoolOutput `pulumi:"enableMirrorRx"` // Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorTx pulumi.BoolOutput `pulumi:"enableMirrorTx"` // Enables VLAN functionality. EnableVlan pulumi.BoolOutput `pulumi:"enableVlan"` // Switch port to which packets are mirrored. MirrorMonitorPort pulumi.IntOutput `pulumi:"mirrorMonitorPort"` // Switch port from which packets are mirrored. MirrorSourcePort pulumi.IntOutput `pulumi:"mirrorSourcePort"` // Name of the switch. This name is what is shown in LuCI or the `name` field in Terraform. This is not the UCI config // name. Name pulumi.StringOutput `pulumi:"name"` // Reset the switch. Reset pulumi.BoolOutput `pulumi:"reset"` }
Legacy `swconfig` configuration
## Import
The name can be found through LuCI's web UI. It will be in quotes on `/cgi-bin/luci/admin/network/switch`. The page might say:
Switch "switch0" # The "switch0" is the name. The name can also be found from LuCI's JSON-RPC API. # Find the Terraform id and UCI name from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \ --data '{"id"0, "method""foreach", "params"["network", "switch"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"], uciName.name})' # This command will output something like# [ { "terraformId""cfg123456", "uciName""switch0" } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/networkSwitch:NetworkSwitch switch0 cfg123456
```
func GetNetworkSwitch ¶
func GetNetworkSwitch(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkSwitchState, opts ...pulumi.ResourceOption) (*NetworkSwitch, error)
GetNetworkSwitch gets an existing NetworkSwitch 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 NewNetworkSwitch ¶
func NewNetworkSwitch(ctx *pulumi.Context, name string, args *NetworkSwitchArgs, opts ...pulumi.ResourceOption) (*NetworkSwitch, error)
NewNetworkSwitch registers a new resource with the given unique name, arguments, and options.
func (*NetworkSwitch) ElementType ¶
func (*NetworkSwitch) ElementType() reflect.Type
func (*NetworkSwitch) ToNetworkSwitchOutput ¶
func (i *NetworkSwitch) ToNetworkSwitchOutput() NetworkSwitchOutput
func (*NetworkSwitch) ToNetworkSwitchOutputWithContext ¶
func (i *NetworkSwitch) ToNetworkSwitchOutputWithContext(ctx context.Context) NetworkSwitchOutput
func (*NetworkSwitch) ToOutput ¶
func (i *NetworkSwitch) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitch]
type NetworkSwitchArgs ¶
type NetworkSwitchArgs struct { // Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorRx pulumi.BoolPtrInput // Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorTx pulumi.BoolPtrInput // Enables VLAN functionality. EnableVlan pulumi.BoolPtrInput // Switch port to which packets are mirrored. MirrorMonitorPort pulumi.IntPtrInput // Switch port from which packets are mirrored. MirrorSourcePort pulumi.IntPtrInput // Name of the switch. This name is what is shown in LuCI or the `name` field in Terraform. This is not the UCI config // name. Name pulumi.StringPtrInput // Reset the switch. Reset pulumi.BoolPtrInput }
The set of arguments for constructing a NetworkSwitch resource.
func (NetworkSwitchArgs) ElementType ¶
func (NetworkSwitchArgs) ElementType() reflect.Type
type NetworkSwitchArray ¶
type NetworkSwitchArray []NetworkSwitchInput
func (NetworkSwitchArray) ElementType ¶
func (NetworkSwitchArray) ElementType() reflect.Type
func (NetworkSwitchArray) ToNetworkSwitchArrayOutput ¶
func (i NetworkSwitchArray) ToNetworkSwitchArrayOutput() NetworkSwitchArrayOutput
func (NetworkSwitchArray) ToNetworkSwitchArrayOutputWithContext ¶
func (i NetworkSwitchArray) ToNetworkSwitchArrayOutputWithContext(ctx context.Context) NetworkSwitchArrayOutput
func (NetworkSwitchArray) ToOutput ¶
func (i NetworkSwitchArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitch]
type NetworkSwitchArrayInput ¶
type NetworkSwitchArrayInput interface { pulumi.Input ToNetworkSwitchArrayOutput() NetworkSwitchArrayOutput ToNetworkSwitchArrayOutputWithContext(context.Context) NetworkSwitchArrayOutput }
NetworkSwitchArrayInput is an input type that accepts NetworkSwitchArray and NetworkSwitchArrayOutput values. You can construct a concrete instance of `NetworkSwitchArrayInput` via:
NetworkSwitchArray{ NetworkSwitchArgs{...} }
type NetworkSwitchArrayOutput ¶
type NetworkSwitchArrayOutput struct{ *pulumi.OutputState }
func (NetworkSwitchArrayOutput) ElementType ¶
func (NetworkSwitchArrayOutput) ElementType() reflect.Type
func (NetworkSwitchArrayOutput) Index ¶
func (o NetworkSwitchArrayOutput) Index(i pulumi.IntInput) NetworkSwitchOutput
func (NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutput ¶
func (o NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutput() NetworkSwitchArrayOutput
func (NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutputWithContext ¶
func (o NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutputWithContext(ctx context.Context) NetworkSwitchArrayOutput
func (NetworkSwitchArrayOutput) ToOutput ¶
func (o NetworkSwitchArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitch]
type NetworkSwitchInput ¶
type NetworkSwitchInput interface { pulumi.Input ToNetworkSwitchOutput() NetworkSwitchOutput ToNetworkSwitchOutputWithContext(ctx context.Context) NetworkSwitchOutput }
type NetworkSwitchMap ¶
type NetworkSwitchMap map[string]NetworkSwitchInput
func (NetworkSwitchMap) ElementType ¶
func (NetworkSwitchMap) ElementType() reflect.Type
func (NetworkSwitchMap) ToNetworkSwitchMapOutput ¶
func (i NetworkSwitchMap) ToNetworkSwitchMapOutput() NetworkSwitchMapOutput
func (NetworkSwitchMap) ToNetworkSwitchMapOutputWithContext ¶
func (i NetworkSwitchMap) ToNetworkSwitchMapOutputWithContext(ctx context.Context) NetworkSwitchMapOutput
func (NetworkSwitchMap) ToOutput ¶
func (i NetworkSwitchMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitch]
type NetworkSwitchMapInput ¶
type NetworkSwitchMapInput interface { pulumi.Input ToNetworkSwitchMapOutput() NetworkSwitchMapOutput ToNetworkSwitchMapOutputWithContext(context.Context) NetworkSwitchMapOutput }
NetworkSwitchMapInput is an input type that accepts NetworkSwitchMap and NetworkSwitchMapOutput values. You can construct a concrete instance of `NetworkSwitchMapInput` via:
NetworkSwitchMap{ "key": NetworkSwitchArgs{...} }
type NetworkSwitchMapOutput ¶
type NetworkSwitchMapOutput struct{ *pulumi.OutputState }
func (NetworkSwitchMapOutput) ElementType ¶
func (NetworkSwitchMapOutput) ElementType() reflect.Type
func (NetworkSwitchMapOutput) MapIndex ¶
func (o NetworkSwitchMapOutput) MapIndex(k pulumi.StringInput) NetworkSwitchOutput
func (NetworkSwitchMapOutput) ToNetworkSwitchMapOutput ¶
func (o NetworkSwitchMapOutput) ToNetworkSwitchMapOutput() NetworkSwitchMapOutput
func (NetworkSwitchMapOutput) ToNetworkSwitchMapOutputWithContext ¶
func (o NetworkSwitchMapOutput) ToNetworkSwitchMapOutputWithContext(ctx context.Context) NetworkSwitchMapOutput
func (NetworkSwitchMapOutput) ToOutput ¶
func (o NetworkSwitchMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitch]
type NetworkSwitchOutput ¶
type NetworkSwitchOutput struct{ *pulumi.OutputState }
func (NetworkSwitchOutput) ElementType ¶
func (NetworkSwitchOutput) ElementType() reflect.Type
func (NetworkSwitchOutput) EnableMirrorRx ¶
func (o NetworkSwitchOutput) EnableMirrorRx() pulumi.BoolOutput
Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`.
func (NetworkSwitchOutput) EnableMirrorTx ¶
func (o NetworkSwitchOutput) EnableMirrorTx() pulumi.BoolOutput
Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`.
func (NetworkSwitchOutput) EnableVlan ¶
func (o NetworkSwitchOutput) EnableVlan() pulumi.BoolOutput
Enables VLAN functionality.
func (NetworkSwitchOutput) MirrorMonitorPort ¶
func (o NetworkSwitchOutput) MirrorMonitorPort() pulumi.IntOutput
Switch port to which packets are mirrored.
func (NetworkSwitchOutput) MirrorSourcePort ¶
func (o NetworkSwitchOutput) MirrorSourcePort() pulumi.IntOutput
Switch port from which packets are mirrored.
func (NetworkSwitchOutput) Name ¶
func (o NetworkSwitchOutput) Name() pulumi.StringOutput
Name of the switch. This name is what is shown in LuCI or the `name` field in Terraform. This is not the UCI config name.
func (NetworkSwitchOutput) Reset ¶
func (o NetworkSwitchOutput) Reset() pulumi.BoolOutput
Reset the switch.
func (NetworkSwitchOutput) ToNetworkSwitchOutput ¶
func (o NetworkSwitchOutput) ToNetworkSwitchOutput() NetworkSwitchOutput
func (NetworkSwitchOutput) ToNetworkSwitchOutputWithContext ¶
func (o NetworkSwitchOutput) ToNetworkSwitchOutputWithContext(ctx context.Context) NetworkSwitchOutput
func (NetworkSwitchOutput) ToOutput ¶
func (o NetworkSwitchOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitch]
type NetworkSwitchState ¶
type NetworkSwitchState struct { // Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorRx pulumi.BoolPtrInput // Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`. EnableMirrorTx pulumi.BoolPtrInput // Enables VLAN functionality. EnableVlan pulumi.BoolPtrInput // Switch port to which packets are mirrored. MirrorMonitorPort pulumi.IntPtrInput // Switch port from which packets are mirrored. MirrorSourcePort pulumi.IntPtrInput // Name of the switch. This name is what is shown in LuCI or the `name` field in Terraform. This is not the UCI config // name. Name pulumi.StringPtrInput // Reset the switch. Reset pulumi.BoolPtrInput }
func (NetworkSwitchState) ElementType ¶
func (NetworkSwitchState) ElementType() reflect.Type
type NetworkSwitchVlan ¶
type NetworkSwitchVlan struct { pulumi.CustomResourceState // A human-readable description of the VLAN configuration. Description pulumi.StringOutput `pulumi:"description"` // The switch to configure. Device pulumi.StringOutput `pulumi:"device"` // A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix `"t"` to a port indicates that egress packets should be tagged, for example `"0 1 3t 5t"`. Ports pulumi.StringOutput `pulumi:"ports"` // The VLAN tag number to use. Vid pulumi.IntOutput `pulumi:"vid"` // The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI Vlan pulumi.IntOutput `pulumi:"vlan"` }
Legacy VLAN configuration
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["network", "switch_vlan"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", }, { "terraformId""cfg123457", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/networkSwitchVlan:NetworkSwitchVlan administration cfg123456
```
func GetNetworkSwitchVlan ¶
func GetNetworkSwitchVlan(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkSwitchVlanState, opts ...pulumi.ResourceOption) (*NetworkSwitchVlan, error)
GetNetworkSwitchVlan gets an existing NetworkSwitchVlan 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 NewNetworkSwitchVlan ¶
func NewNetworkSwitchVlan(ctx *pulumi.Context, name string, args *NetworkSwitchVlanArgs, opts ...pulumi.ResourceOption) (*NetworkSwitchVlan, error)
NewNetworkSwitchVlan registers a new resource with the given unique name, arguments, and options.
func (*NetworkSwitchVlan) ElementType ¶
func (*NetworkSwitchVlan) ElementType() reflect.Type
func (*NetworkSwitchVlan) ToNetworkSwitchVlanOutput ¶
func (i *NetworkSwitchVlan) ToNetworkSwitchVlanOutput() NetworkSwitchVlanOutput
func (*NetworkSwitchVlan) ToNetworkSwitchVlanOutputWithContext ¶
func (i *NetworkSwitchVlan) ToNetworkSwitchVlanOutputWithContext(ctx context.Context) NetworkSwitchVlanOutput
func (*NetworkSwitchVlan) ToOutput ¶
func (i *NetworkSwitchVlan) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitchVlan]
type NetworkSwitchVlanArgs ¶
type NetworkSwitchVlanArgs struct { // A human-readable description of the VLAN configuration. Description pulumi.StringPtrInput // The switch to configure. Device pulumi.StringInput // A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix `"t"` to a port indicates that egress packets should be tagged, for example `"0 1 3t 5t"`. Ports pulumi.StringInput // The VLAN tag number to use. Vid pulumi.IntPtrInput // The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI Vlan pulumi.IntInput }
The set of arguments for constructing a NetworkSwitchVlan resource.
func (NetworkSwitchVlanArgs) ElementType ¶
func (NetworkSwitchVlanArgs) ElementType() reflect.Type
type NetworkSwitchVlanArray ¶
type NetworkSwitchVlanArray []NetworkSwitchVlanInput
func (NetworkSwitchVlanArray) ElementType ¶
func (NetworkSwitchVlanArray) ElementType() reflect.Type
func (NetworkSwitchVlanArray) ToNetworkSwitchVlanArrayOutput ¶
func (i NetworkSwitchVlanArray) ToNetworkSwitchVlanArrayOutput() NetworkSwitchVlanArrayOutput
func (NetworkSwitchVlanArray) ToNetworkSwitchVlanArrayOutputWithContext ¶
func (i NetworkSwitchVlanArray) ToNetworkSwitchVlanArrayOutputWithContext(ctx context.Context) NetworkSwitchVlanArrayOutput
func (NetworkSwitchVlanArray) ToOutput ¶
func (i NetworkSwitchVlanArray) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitchVlan]
type NetworkSwitchVlanArrayInput ¶
type NetworkSwitchVlanArrayInput interface { pulumi.Input ToNetworkSwitchVlanArrayOutput() NetworkSwitchVlanArrayOutput ToNetworkSwitchVlanArrayOutputWithContext(context.Context) NetworkSwitchVlanArrayOutput }
NetworkSwitchVlanArrayInput is an input type that accepts NetworkSwitchVlanArray and NetworkSwitchVlanArrayOutput values. You can construct a concrete instance of `NetworkSwitchVlanArrayInput` via:
NetworkSwitchVlanArray{ NetworkSwitchVlanArgs{...} }
type NetworkSwitchVlanArrayOutput ¶
type NetworkSwitchVlanArrayOutput struct{ *pulumi.OutputState }
func (NetworkSwitchVlanArrayOutput) ElementType ¶
func (NetworkSwitchVlanArrayOutput) ElementType() reflect.Type
func (NetworkSwitchVlanArrayOutput) Index ¶
func (o NetworkSwitchVlanArrayOutput) Index(i pulumi.IntInput) NetworkSwitchVlanOutput
func (NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutput ¶
func (o NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutput() NetworkSwitchVlanArrayOutput
func (NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutputWithContext ¶
func (o NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutputWithContext(ctx context.Context) NetworkSwitchVlanArrayOutput
func (NetworkSwitchVlanArrayOutput) ToOutput ¶
func (o NetworkSwitchVlanArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*NetworkSwitchVlan]
type NetworkSwitchVlanInput ¶
type NetworkSwitchVlanInput interface { pulumi.Input ToNetworkSwitchVlanOutput() NetworkSwitchVlanOutput ToNetworkSwitchVlanOutputWithContext(ctx context.Context) NetworkSwitchVlanOutput }
type NetworkSwitchVlanMap ¶
type NetworkSwitchVlanMap map[string]NetworkSwitchVlanInput
func (NetworkSwitchVlanMap) ElementType ¶
func (NetworkSwitchVlanMap) ElementType() reflect.Type
func (NetworkSwitchVlanMap) ToNetworkSwitchVlanMapOutput ¶
func (i NetworkSwitchVlanMap) ToNetworkSwitchVlanMapOutput() NetworkSwitchVlanMapOutput
func (NetworkSwitchVlanMap) ToNetworkSwitchVlanMapOutputWithContext ¶
func (i NetworkSwitchVlanMap) ToNetworkSwitchVlanMapOutputWithContext(ctx context.Context) NetworkSwitchVlanMapOutput
func (NetworkSwitchVlanMap) ToOutput ¶
func (i NetworkSwitchVlanMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitchVlan]
type NetworkSwitchVlanMapInput ¶
type NetworkSwitchVlanMapInput interface { pulumi.Input ToNetworkSwitchVlanMapOutput() NetworkSwitchVlanMapOutput ToNetworkSwitchVlanMapOutputWithContext(context.Context) NetworkSwitchVlanMapOutput }
NetworkSwitchVlanMapInput is an input type that accepts NetworkSwitchVlanMap and NetworkSwitchVlanMapOutput values. You can construct a concrete instance of `NetworkSwitchVlanMapInput` via:
NetworkSwitchVlanMap{ "key": NetworkSwitchVlanArgs{...} }
type NetworkSwitchVlanMapOutput ¶
type NetworkSwitchVlanMapOutput struct{ *pulumi.OutputState }
func (NetworkSwitchVlanMapOutput) ElementType ¶
func (NetworkSwitchVlanMapOutput) ElementType() reflect.Type
func (NetworkSwitchVlanMapOutput) MapIndex ¶
func (o NetworkSwitchVlanMapOutput) MapIndex(k pulumi.StringInput) NetworkSwitchVlanOutput
func (NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutput ¶
func (o NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutput() NetworkSwitchVlanMapOutput
func (NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutputWithContext ¶
func (o NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutputWithContext(ctx context.Context) NetworkSwitchVlanMapOutput
func (NetworkSwitchVlanMapOutput) ToOutput ¶
func (o NetworkSwitchVlanMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*NetworkSwitchVlan]
type NetworkSwitchVlanOutput ¶
type NetworkSwitchVlanOutput struct{ *pulumi.OutputState }
func (NetworkSwitchVlanOutput) Description ¶
func (o NetworkSwitchVlanOutput) Description() pulumi.StringOutput
A human-readable description of the VLAN configuration.
func (NetworkSwitchVlanOutput) Device ¶
func (o NetworkSwitchVlanOutput) Device() pulumi.StringOutput
The switch to configure.
func (NetworkSwitchVlanOutput) ElementType ¶
func (NetworkSwitchVlanOutput) ElementType() reflect.Type
func (NetworkSwitchVlanOutput) Ports ¶
func (o NetworkSwitchVlanOutput) Ports() pulumi.StringOutput
A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix `"t"` to a port indicates that egress packets should be tagged, for example `"0 1 3t 5t"`.
func (NetworkSwitchVlanOutput) ToNetworkSwitchVlanOutput ¶
func (o NetworkSwitchVlanOutput) ToNetworkSwitchVlanOutput() NetworkSwitchVlanOutput
func (NetworkSwitchVlanOutput) ToNetworkSwitchVlanOutputWithContext ¶
func (o NetworkSwitchVlanOutput) ToNetworkSwitchVlanOutputWithContext(ctx context.Context) NetworkSwitchVlanOutput
func (NetworkSwitchVlanOutput) ToOutput ¶
func (o NetworkSwitchVlanOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkSwitchVlan]
func (NetworkSwitchVlanOutput) Vid ¶
func (o NetworkSwitchVlanOutput) Vid() pulumi.IntOutput
The VLAN tag number to use.
func (NetworkSwitchVlanOutput) Vlan ¶
func (o NetworkSwitchVlanOutput) Vlan() pulumi.IntOutput
The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
type NetworkSwitchVlanState ¶
type NetworkSwitchVlanState struct { // A human-readable description of the VLAN configuration. Description pulumi.StringPtrInput // The switch to configure. Device pulumi.StringPtrInput // A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix `"t"` to a port indicates that egress packets should be tagged, for example `"0 1 3t 5t"`. Ports pulumi.StringPtrInput // The VLAN tag number to use. Vid pulumi.IntPtrInput // The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI Vlan pulumi.IntPtrInput }
func (NetworkSwitchVlanState) ElementType ¶
func (NetworkSwitchVlanState) ElementType() reflect.Type
type Provider ¶
type Provider struct { pulumi.ProviderResourceState // The hostname to use. Defaults to "192.168.1.1". Hostname pulumi.StringPtrOutput `pulumi:"hostname"` // The password to use. Defaults to "". Password pulumi.StringPtrOutput `pulumi:"password"` // The URI scheme to use. Defaults to "http". Scheme pulumi.StringPtrOutput `pulumi:"scheme"` // The username to use. Defaults to "root". Username pulumi.StringPtrOutput `pulumi:"username"` }
The provider type for the openwrt package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶
func (*Provider) ToProviderOutput ¶
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
type ProviderArgs ¶
type ProviderArgs struct { // The hostname to use. Defaults to "192.168.1.1". Hostname pulumi.StringPtrInput // The password to use. Defaults to "". Password pulumi.StringPtrInput // The port to use. Defaults to 80. Port pulumi.IntPtrInput // The URI scheme to use. Defaults to "http". Scheme pulumi.StringPtrInput // The username to use. Defaults to "root". Username pulumi.StringPtrInput }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderInput ¶
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) ElementType ¶
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) Hostname ¶
func (o ProviderOutput) Hostname() pulumi.StringPtrOutput
The hostname to use. Defaults to "192.168.1.1".
func (ProviderOutput) Password ¶
func (o ProviderOutput) Password() pulumi.StringPtrOutput
The password to use. Defaults to "".
func (ProviderOutput) Scheme ¶
func (o ProviderOutput) Scheme() pulumi.StringPtrOutput
The URI scheme to use. Defaults to "http".
func (ProviderOutput) ToProviderOutput ¶
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
func (ProviderOutput) Username ¶
func (o ProviderOutput) Username() pulumi.StringPtrOutput
The username to use. Defaults to "root".
type SystemSystem ¶
type SystemSystem struct { pulumi.CustomResourceState // The maximum log level for kernel messages to be logged to the console. Conloglevel pulumi.IntOutput `pulumi:"conloglevel"` // The minimum level for cron messages to be logged to syslog. Cronloglevel pulumi.IntOutput `pulumi:"cronloglevel"` // The hostname for the system. Description pulumi.StringOutput `pulumi:"description"` // A short single-line description for the system. Hostname pulumi.StringOutput `pulumi:"hostname"` // Size of the file based log buffer in KiB. LogSize pulumi.IntOutput `pulumi:"logSize"` // Multi-line free-form text about the system. Notes pulumi.StringOutput `pulumi:"notes"` // The POSIX.1 time zone string. This has no corresponding value in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Timezone pulumi.StringOutput `pulumi:"timezone"` // Require authentication for local users to log in the system. Ttylogin pulumi.BoolOutput `pulumi:"ttylogin"` // The IANA/Olson time zone string. This corresponds to "Timezone" in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Zonename pulumi.StringOutput `pulumi:"zonename"` }
Provides system data about an OpenWrt device
## Import
Every `system.system` seems to have the same UCI name of `cfg01e48a`
```sh
$ pulumi import openwrt:index/systemSystem:SystemSystem this cfg01e48a
```
func GetSystemSystem ¶
func GetSystemSystem(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SystemSystemState, opts ...pulumi.ResourceOption) (*SystemSystem, error)
GetSystemSystem gets an existing SystemSystem 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 NewSystemSystem ¶
func NewSystemSystem(ctx *pulumi.Context, name string, args *SystemSystemArgs, opts ...pulumi.ResourceOption) (*SystemSystem, error)
NewSystemSystem registers a new resource with the given unique name, arguments, and options.
func (*SystemSystem) ElementType ¶
func (*SystemSystem) ElementType() reflect.Type
func (*SystemSystem) ToOutput ¶
func (i *SystemSystem) ToOutput(ctx context.Context) pulumix.Output[*SystemSystem]
func (*SystemSystem) ToSystemSystemOutput ¶
func (i *SystemSystem) ToSystemSystemOutput() SystemSystemOutput
func (*SystemSystem) ToSystemSystemOutputWithContext ¶
func (i *SystemSystem) ToSystemSystemOutputWithContext(ctx context.Context) SystemSystemOutput
type SystemSystemArgs ¶
type SystemSystemArgs struct { // The maximum log level for kernel messages to be logged to the console. Conloglevel pulumi.IntPtrInput // The minimum level for cron messages to be logged to syslog. Cronloglevel pulumi.IntPtrInput // The hostname for the system. Description pulumi.StringPtrInput // A short single-line description for the system. Hostname pulumi.StringPtrInput // Size of the file based log buffer in KiB. LogSize pulumi.IntPtrInput // Multi-line free-form text about the system. Notes pulumi.StringPtrInput // The POSIX.1 time zone string. This has no corresponding value in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Timezone pulumi.StringPtrInput // Require authentication for local users to log in the system. Ttylogin pulumi.BoolPtrInput // The IANA/Olson time zone string. This corresponds to "Timezone" in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Zonename pulumi.StringPtrInput }
The set of arguments for constructing a SystemSystem resource.
func (SystemSystemArgs) ElementType ¶
func (SystemSystemArgs) ElementType() reflect.Type
type SystemSystemArray ¶
type SystemSystemArray []SystemSystemInput
func (SystemSystemArray) ElementType ¶
func (SystemSystemArray) ElementType() reflect.Type
func (SystemSystemArray) ToOutput ¶
func (i SystemSystemArray) ToOutput(ctx context.Context) pulumix.Output[[]*SystemSystem]
func (SystemSystemArray) ToSystemSystemArrayOutput ¶
func (i SystemSystemArray) ToSystemSystemArrayOutput() SystemSystemArrayOutput
func (SystemSystemArray) ToSystemSystemArrayOutputWithContext ¶
func (i SystemSystemArray) ToSystemSystemArrayOutputWithContext(ctx context.Context) SystemSystemArrayOutput
type SystemSystemArrayInput ¶
type SystemSystemArrayInput interface { pulumi.Input ToSystemSystemArrayOutput() SystemSystemArrayOutput ToSystemSystemArrayOutputWithContext(context.Context) SystemSystemArrayOutput }
SystemSystemArrayInput is an input type that accepts SystemSystemArray and SystemSystemArrayOutput values. You can construct a concrete instance of `SystemSystemArrayInput` via:
SystemSystemArray{ SystemSystemArgs{...} }
type SystemSystemArrayOutput ¶
type SystemSystemArrayOutput struct{ *pulumi.OutputState }
func (SystemSystemArrayOutput) ElementType ¶
func (SystemSystemArrayOutput) ElementType() reflect.Type
func (SystemSystemArrayOutput) Index ¶
func (o SystemSystemArrayOutput) Index(i pulumi.IntInput) SystemSystemOutput
func (SystemSystemArrayOutput) ToOutput ¶
func (o SystemSystemArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SystemSystem]
func (SystemSystemArrayOutput) ToSystemSystemArrayOutput ¶
func (o SystemSystemArrayOutput) ToSystemSystemArrayOutput() SystemSystemArrayOutput
func (SystemSystemArrayOutput) ToSystemSystemArrayOutputWithContext ¶
func (o SystemSystemArrayOutput) ToSystemSystemArrayOutputWithContext(ctx context.Context) SystemSystemArrayOutput
type SystemSystemInput ¶
type SystemSystemInput interface { pulumi.Input ToSystemSystemOutput() SystemSystemOutput ToSystemSystemOutputWithContext(ctx context.Context) SystemSystemOutput }
type SystemSystemMap ¶
type SystemSystemMap map[string]SystemSystemInput
func (SystemSystemMap) ElementType ¶
func (SystemSystemMap) ElementType() reflect.Type
func (SystemSystemMap) ToOutput ¶
func (i SystemSystemMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SystemSystem]
func (SystemSystemMap) ToSystemSystemMapOutput ¶
func (i SystemSystemMap) ToSystemSystemMapOutput() SystemSystemMapOutput
func (SystemSystemMap) ToSystemSystemMapOutputWithContext ¶
func (i SystemSystemMap) ToSystemSystemMapOutputWithContext(ctx context.Context) SystemSystemMapOutput
type SystemSystemMapInput ¶
type SystemSystemMapInput interface { pulumi.Input ToSystemSystemMapOutput() SystemSystemMapOutput ToSystemSystemMapOutputWithContext(context.Context) SystemSystemMapOutput }
SystemSystemMapInput is an input type that accepts SystemSystemMap and SystemSystemMapOutput values. You can construct a concrete instance of `SystemSystemMapInput` via:
SystemSystemMap{ "key": SystemSystemArgs{...} }
type SystemSystemMapOutput ¶
type SystemSystemMapOutput struct{ *pulumi.OutputState }
func (SystemSystemMapOutput) ElementType ¶
func (SystemSystemMapOutput) ElementType() reflect.Type
func (SystemSystemMapOutput) MapIndex ¶
func (o SystemSystemMapOutput) MapIndex(k pulumi.StringInput) SystemSystemOutput
func (SystemSystemMapOutput) ToOutput ¶
func (o SystemSystemMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SystemSystem]
func (SystemSystemMapOutput) ToSystemSystemMapOutput ¶
func (o SystemSystemMapOutput) ToSystemSystemMapOutput() SystemSystemMapOutput
func (SystemSystemMapOutput) ToSystemSystemMapOutputWithContext ¶
func (o SystemSystemMapOutput) ToSystemSystemMapOutputWithContext(ctx context.Context) SystemSystemMapOutput
type SystemSystemOutput ¶
type SystemSystemOutput struct{ *pulumi.OutputState }
func (SystemSystemOutput) Conloglevel ¶
func (o SystemSystemOutput) Conloglevel() pulumi.IntOutput
The maximum log level for kernel messages to be logged to the console.
func (SystemSystemOutput) Cronloglevel ¶
func (o SystemSystemOutput) Cronloglevel() pulumi.IntOutput
The minimum level for cron messages to be logged to syslog.
func (SystemSystemOutput) Description ¶
func (o SystemSystemOutput) Description() pulumi.StringOutput
The hostname for the system.
func (SystemSystemOutput) ElementType ¶
func (SystemSystemOutput) ElementType() reflect.Type
func (SystemSystemOutput) Hostname ¶
func (o SystemSystemOutput) Hostname() pulumi.StringOutput
A short single-line description for the system.
func (SystemSystemOutput) LogSize ¶
func (o SystemSystemOutput) LogSize() pulumi.IntOutput
Size of the file based log buffer in KiB.
func (SystemSystemOutput) Notes ¶
func (o SystemSystemOutput) Notes() pulumi.StringOutput
Multi-line free-form text about the system.
func (SystemSystemOutput) Timezone ¶
func (o SystemSystemOutput) Timezone() pulumi.StringOutput
The POSIX.1 time zone string. This has no corresponding value in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua.
func (SystemSystemOutput) ToOutput ¶
func (o SystemSystemOutput) ToOutput(ctx context.Context) pulumix.Output[*SystemSystem]
func (SystemSystemOutput) ToSystemSystemOutput ¶
func (o SystemSystemOutput) ToSystemSystemOutput() SystemSystemOutput
func (SystemSystemOutput) ToSystemSystemOutputWithContext ¶
func (o SystemSystemOutput) ToSystemSystemOutputWithContext(ctx context.Context) SystemSystemOutput
func (SystemSystemOutput) Ttylogin ¶
func (o SystemSystemOutput) Ttylogin() pulumi.BoolOutput
Require authentication for local users to log in the system.
func (SystemSystemOutput) Zonename ¶
func (o SystemSystemOutput) Zonename() pulumi.StringOutput
The IANA/Olson time zone string. This corresponds to "Timezone" in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua.
type SystemSystemState ¶
type SystemSystemState struct { // The maximum log level for kernel messages to be logged to the console. Conloglevel pulumi.IntPtrInput // The minimum level for cron messages to be logged to syslog. Cronloglevel pulumi.IntPtrInput // The hostname for the system. Description pulumi.StringPtrInput // A short single-line description for the system. Hostname pulumi.StringPtrInput // Size of the file based log buffer in KiB. LogSize pulumi.IntPtrInput // Multi-line free-form text about the system. Notes pulumi.StringPtrInput // The POSIX.1 time zone string. This has no corresponding value in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Timezone pulumi.StringPtrInput // Require authentication for local users to log in the system. Ttylogin pulumi.BoolPtrInput // The IANA/Olson time zone string. This corresponds to "Timezone" in LuCI. See: https://github.com/openwrt/luci/blob/cd82ccacef78d3bb8b8af6b87dabb9e892e2b2aa/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua. Zonename pulumi.StringPtrInput }
func (SystemSystemState) ElementType ¶
func (SystemSystemState) ElementType() reflect.Type
type WirelessWifiDevice ¶
type WirelessWifiDevice struct { pulumi.CustomResourceState // Channel width. Must be one of: "2g", "5g", "6g". Band pulumi.StringOutput `pulumi:"band"` // Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3. CellDensity pulumi.IntOutput `pulumi:"cellDensity"` // The wireless channel. Currently, only "auto" is supported. Channel pulumi.StringOutput `pulumi:"channel"` // Two-digit country code. E.g. "US". Country pulumi.StringOutput `pulumi:"country"` // Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160". Htmode pulumi.StringOutput `pulumi:"htmode"` // Path of the device in `/sys/devices`. Path pulumi.StringOutput `pulumi:"path"` // The type of device. Currently only "mac80211" is supported. Type pulumi.StringOutput `pulumi:"type"` }
The physical radio device.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["wireless", "wifi-device"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", }, { "terraformId""cfg123457", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/wirelessWifiDevice:WirelessWifiDevice five_ghz cfg123456
```
func GetWirelessWifiDevice ¶
func GetWirelessWifiDevice(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WirelessWifiDeviceState, opts ...pulumi.ResourceOption) (*WirelessWifiDevice, error)
GetWirelessWifiDevice gets an existing WirelessWifiDevice 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 NewWirelessWifiDevice ¶
func NewWirelessWifiDevice(ctx *pulumi.Context, name string, args *WirelessWifiDeviceArgs, opts ...pulumi.ResourceOption) (*WirelessWifiDevice, error)
NewWirelessWifiDevice registers a new resource with the given unique name, arguments, and options.
func (*WirelessWifiDevice) ElementType ¶
func (*WirelessWifiDevice) ElementType() reflect.Type
func (*WirelessWifiDevice) ToOutput ¶
func (i *WirelessWifiDevice) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiDevice]
func (*WirelessWifiDevice) ToWirelessWifiDeviceOutput ¶
func (i *WirelessWifiDevice) ToWirelessWifiDeviceOutput() WirelessWifiDeviceOutput
func (*WirelessWifiDevice) ToWirelessWifiDeviceOutputWithContext ¶
func (i *WirelessWifiDevice) ToWirelessWifiDeviceOutputWithContext(ctx context.Context) WirelessWifiDeviceOutput
type WirelessWifiDeviceArgs ¶
type WirelessWifiDeviceArgs struct { // Channel width. Must be one of: "2g", "5g", "6g". Band pulumi.StringPtrInput // Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3. CellDensity pulumi.IntPtrInput // The wireless channel. Currently, only "auto" is supported. Channel pulumi.StringInput // Two-digit country code. E.g. "US". Country pulumi.StringPtrInput // Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160". Htmode pulumi.StringPtrInput // Path of the device in `/sys/devices`. Path pulumi.StringPtrInput // The type of device. Currently only "mac80211" is supported. Type pulumi.StringInput }
The set of arguments for constructing a WirelessWifiDevice resource.
func (WirelessWifiDeviceArgs) ElementType ¶
func (WirelessWifiDeviceArgs) ElementType() reflect.Type
type WirelessWifiDeviceArray ¶
type WirelessWifiDeviceArray []WirelessWifiDeviceInput
func (WirelessWifiDeviceArray) ElementType ¶
func (WirelessWifiDeviceArray) ElementType() reflect.Type
func (WirelessWifiDeviceArray) ToOutput ¶
func (i WirelessWifiDeviceArray) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiDevice]
func (WirelessWifiDeviceArray) ToWirelessWifiDeviceArrayOutput ¶
func (i WirelessWifiDeviceArray) ToWirelessWifiDeviceArrayOutput() WirelessWifiDeviceArrayOutput
func (WirelessWifiDeviceArray) ToWirelessWifiDeviceArrayOutputWithContext ¶
func (i WirelessWifiDeviceArray) ToWirelessWifiDeviceArrayOutputWithContext(ctx context.Context) WirelessWifiDeviceArrayOutput
type WirelessWifiDeviceArrayInput ¶
type WirelessWifiDeviceArrayInput interface { pulumi.Input ToWirelessWifiDeviceArrayOutput() WirelessWifiDeviceArrayOutput ToWirelessWifiDeviceArrayOutputWithContext(context.Context) WirelessWifiDeviceArrayOutput }
WirelessWifiDeviceArrayInput is an input type that accepts WirelessWifiDeviceArray and WirelessWifiDeviceArrayOutput values. You can construct a concrete instance of `WirelessWifiDeviceArrayInput` via:
WirelessWifiDeviceArray{ WirelessWifiDeviceArgs{...} }
type WirelessWifiDeviceArrayOutput ¶
type WirelessWifiDeviceArrayOutput struct{ *pulumi.OutputState }
func (WirelessWifiDeviceArrayOutput) ElementType ¶
func (WirelessWifiDeviceArrayOutput) ElementType() reflect.Type
func (WirelessWifiDeviceArrayOutput) Index ¶
func (o WirelessWifiDeviceArrayOutput) Index(i pulumi.IntInput) WirelessWifiDeviceOutput
func (WirelessWifiDeviceArrayOutput) ToOutput ¶
func (o WirelessWifiDeviceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiDevice]
func (WirelessWifiDeviceArrayOutput) ToWirelessWifiDeviceArrayOutput ¶
func (o WirelessWifiDeviceArrayOutput) ToWirelessWifiDeviceArrayOutput() WirelessWifiDeviceArrayOutput
func (WirelessWifiDeviceArrayOutput) ToWirelessWifiDeviceArrayOutputWithContext ¶
func (o WirelessWifiDeviceArrayOutput) ToWirelessWifiDeviceArrayOutputWithContext(ctx context.Context) WirelessWifiDeviceArrayOutput
type WirelessWifiDeviceInput ¶
type WirelessWifiDeviceInput interface { pulumi.Input ToWirelessWifiDeviceOutput() WirelessWifiDeviceOutput ToWirelessWifiDeviceOutputWithContext(ctx context.Context) WirelessWifiDeviceOutput }
type WirelessWifiDeviceMap ¶
type WirelessWifiDeviceMap map[string]WirelessWifiDeviceInput
func (WirelessWifiDeviceMap) ElementType ¶
func (WirelessWifiDeviceMap) ElementType() reflect.Type
func (WirelessWifiDeviceMap) ToOutput ¶
func (i WirelessWifiDeviceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiDevice]
func (WirelessWifiDeviceMap) ToWirelessWifiDeviceMapOutput ¶
func (i WirelessWifiDeviceMap) ToWirelessWifiDeviceMapOutput() WirelessWifiDeviceMapOutput
func (WirelessWifiDeviceMap) ToWirelessWifiDeviceMapOutputWithContext ¶
func (i WirelessWifiDeviceMap) ToWirelessWifiDeviceMapOutputWithContext(ctx context.Context) WirelessWifiDeviceMapOutput
type WirelessWifiDeviceMapInput ¶
type WirelessWifiDeviceMapInput interface { pulumi.Input ToWirelessWifiDeviceMapOutput() WirelessWifiDeviceMapOutput ToWirelessWifiDeviceMapOutputWithContext(context.Context) WirelessWifiDeviceMapOutput }
WirelessWifiDeviceMapInput is an input type that accepts WirelessWifiDeviceMap and WirelessWifiDeviceMapOutput values. You can construct a concrete instance of `WirelessWifiDeviceMapInput` via:
WirelessWifiDeviceMap{ "key": WirelessWifiDeviceArgs{...} }
type WirelessWifiDeviceMapOutput ¶
type WirelessWifiDeviceMapOutput struct{ *pulumi.OutputState }
func (WirelessWifiDeviceMapOutput) ElementType ¶
func (WirelessWifiDeviceMapOutput) ElementType() reflect.Type
func (WirelessWifiDeviceMapOutput) MapIndex ¶
func (o WirelessWifiDeviceMapOutput) MapIndex(k pulumi.StringInput) WirelessWifiDeviceOutput
func (WirelessWifiDeviceMapOutput) ToOutput ¶
func (o WirelessWifiDeviceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiDevice]
func (WirelessWifiDeviceMapOutput) ToWirelessWifiDeviceMapOutput ¶
func (o WirelessWifiDeviceMapOutput) ToWirelessWifiDeviceMapOutput() WirelessWifiDeviceMapOutput
func (WirelessWifiDeviceMapOutput) ToWirelessWifiDeviceMapOutputWithContext ¶
func (o WirelessWifiDeviceMapOutput) ToWirelessWifiDeviceMapOutputWithContext(ctx context.Context) WirelessWifiDeviceMapOutput
type WirelessWifiDeviceOutput ¶
type WirelessWifiDeviceOutput struct{ *pulumi.OutputState }
func (WirelessWifiDeviceOutput) Band ¶
func (o WirelessWifiDeviceOutput) Band() pulumi.StringOutput
Channel width. Must be one of: "2g", "5g", "6g".
func (WirelessWifiDeviceOutput) CellDensity ¶
func (o WirelessWifiDeviceOutput) CellDensity() pulumi.IntOutput
Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.
func (WirelessWifiDeviceOutput) Channel ¶
func (o WirelessWifiDeviceOutput) Channel() pulumi.StringOutput
The wireless channel. Currently, only "auto" is supported.
func (WirelessWifiDeviceOutput) Country ¶
func (o WirelessWifiDeviceOutput) Country() pulumi.StringOutput
Two-digit country code. E.g. "US".
func (WirelessWifiDeviceOutput) ElementType ¶
func (WirelessWifiDeviceOutput) ElementType() reflect.Type
func (WirelessWifiDeviceOutput) Htmode ¶
func (o WirelessWifiDeviceOutput) Htmode() pulumi.StringOutput
Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".
func (WirelessWifiDeviceOutput) Path ¶
func (o WirelessWifiDeviceOutput) Path() pulumi.StringOutput
Path of the device in `/sys/devices`.
func (WirelessWifiDeviceOutput) ToOutput ¶
func (o WirelessWifiDeviceOutput) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiDevice]
func (WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutput ¶
func (o WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutput() WirelessWifiDeviceOutput
func (WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutputWithContext ¶
func (o WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutputWithContext(ctx context.Context) WirelessWifiDeviceOutput
func (WirelessWifiDeviceOutput) Type ¶
func (o WirelessWifiDeviceOutput) Type() pulumi.StringOutput
The type of device. Currently only "mac80211" is supported.
type WirelessWifiDeviceState ¶
type WirelessWifiDeviceState struct { // Channel width. Must be one of: "2g", "5g", "6g". Band pulumi.StringPtrInput // Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3. CellDensity pulumi.IntPtrInput // The wireless channel. Currently, only "auto" is supported. Channel pulumi.StringPtrInput // Two-digit country code. E.g. "US". Country pulumi.StringPtrInput // Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160". Htmode pulumi.StringPtrInput // Path of the device in `/sys/devices`. Path pulumi.StringPtrInput // The type of device. Currently only "mac80211" is supported. Type pulumi.StringPtrInput }
func (WirelessWifiDeviceState) ElementType ¶
func (WirelessWifiDeviceState) ElementType() reflect.Type
type WirelessWifiIface ¶
type WirelessWifiIface struct { pulumi.CustomResourceState // Name of the physical device. This name is what the device is known as in LuCI/UCI, or the `id` field in Terraform. Device pulumi.StringOutput `pulumi:"device"` // Encryption method. Currently, only PSK encryption methods are supported. Must be one of: "none", "psk", "psk2", "psk2+aes", "psk2+ccmp", "psk2+tkip", "psk2+tkip+aes", "psk2+tkip+ccmp", "psk+aes", "psk+ccmp", "psk-mixed", "psk-mixed+aes", "psk-mixed+ccmp", "psk-mixed+tkip", "psk-mixed+tkip+aes", "psk-mixed+tkip+ccmp", "psk+tkip", "psk+tkip+aes", "psk+tkip+ccmp", "sae", "sae-mixed". Encryption pulumi.StringOutput `pulumi:"encryption"` // Isolate wireless clients from each other. Isolate pulumi.BoolOutput `pulumi:"isolate"` // The pre-shared passphrase from which the pre-shared key will be derived. The clear text key has to be 8-63 characters long. Key pulumi.StringOutput `pulumi:"key"` // The operation mode of the wireless network interface controller.. Currently only "ap" is supported. Mode pulumi.StringOutput `pulumi:"mode"` // Network interface to attach the wireless network. This name is what the interface is known as in UCI, or the `id` field // in Terraform. Network pulumi.StringOutput `pulumi:"network"` // The broadcasted SSID of the wireless network. This is what actual clients will see the network as. Ssid pulumi.StringOutput `pulumi:"ssid"` // Enable WPA key reinstallation attack (KRACK) workaround. This should be `true` to enable KRACK workaround (you almost surely want this enabled). WpaDisableEapolKeyRetries pulumi.BoolOutput `pulumi:"wpaDisableEapolKeyRetries"` }
A wireless network.
## Import
Find the Terraform id from LuCI's JSON-RPC API. One way to find this information is with `curl` and `jq`# curl \
--data '{"id"0, "method""foreach", "params"["wireless", "wifi-iface"]}' \ http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=$AUTH_TOKEN \ | jq '.result | map({terraformId.[".name"]})' # This command will output something like# [ { "terraformId""cfg123456", }, { "terraformId""cfg123457", } ] # We'd then use the information to import the appropriate resource
```sh
$ pulumi import openwrt:index/wirelessWifiIface:WirelessWifiIface home_network cfg123456
```
func GetWirelessWifiIface ¶
func GetWirelessWifiIface(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WirelessWifiIfaceState, opts ...pulumi.ResourceOption) (*WirelessWifiIface, error)
GetWirelessWifiIface gets an existing WirelessWifiIface 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 NewWirelessWifiIface ¶
func NewWirelessWifiIface(ctx *pulumi.Context, name string, args *WirelessWifiIfaceArgs, opts ...pulumi.ResourceOption) (*WirelessWifiIface, error)
NewWirelessWifiIface registers a new resource with the given unique name, arguments, and options.
func (*WirelessWifiIface) ElementType ¶
func (*WirelessWifiIface) ElementType() reflect.Type
func (*WirelessWifiIface) ToOutput ¶
func (i *WirelessWifiIface) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiIface]
func (*WirelessWifiIface) ToWirelessWifiIfaceOutput ¶
func (i *WirelessWifiIface) ToWirelessWifiIfaceOutput() WirelessWifiIfaceOutput
func (*WirelessWifiIface) ToWirelessWifiIfaceOutputWithContext ¶
func (i *WirelessWifiIface) ToWirelessWifiIfaceOutputWithContext(ctx context.Context) WirelessWifiIfaceOutput
type WirelessWifiIfaceArgs ¶
type WirelessWifiIfaceArgs struct { // Name of the physical device. This name is what the device is known as in LuCI/UCI, or the `id` field in Terraform. Device pulumi.StringInput // Encryption method. Currently, only PSK encryption methods are supported. Must be one of: "none", "psk", "psk2", "psk2+aes", "psk2+ccmp", "psk2+tkip", "psk2+tkip+aes", "psk2+tkip+ccmp", "psk+aes", "psk+ccmp", "psk-mixed", "psk-mixed+aes", "psk-mixed+ccmp", "psk-mixed+tkip", "psk-mixed+tkip+aes", "psk-mixed+tkip+ccmp", "psk+tkip", "psk+tkip+aes", "psk+tkip+ccmp", "sae", "sae-mixed". Encryption pulumi.StringPtrInput // Isolate wireless clients from each other. Isolate pulumi.BoolPtrInput // The pre-shared passphrase from which the pre-shared key will be derived. The clear text key has to be 8-63 characters long. Key pulumi.StringPtrInput // The operation mode of the wireless network interface controller.. Currently only "ap" is supported. Mode pulumi.StringInput // Network interface to attach the wireless network. This name is what the interface is known as in UCI, or the `id` field // in Terraform. Network pulumi.StringInput // The broadcasted SSID of the wireless network. This is what actual clients will see the network as. Ssid pulumi.StringInput // Enable WPA key reinstallation attack (KRACK) workaround. This should be `true` to enable KRACK workaround (you almost surely want this enabled). WpaDisableEapolKeyRetries pulumi.BoolPtrInput }
The set of arguments for constructing a WirelessWifiIface resource.
func (WirelessWifiIfaceArgs) ElementType ¶
func (WirelessWifiIfaceArgs) ElementType() reflect.Type
type WirelessWifiIfaceArray ¶
type WirelessWifiIfaceArray []WirelessWifiIfaceInput
func (WirelessWifiIfaceArray) ElementType ¶
func (WirelessWifiIfaceArray) ElementType() reflect.Type
func (WirelessWifiIfaceArray) ToOutput ¶
func (i WirelessWifiIfaceArray) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiIface]
func (WirelessWifiIfaceArray) ToWirelessWifiIfaceArrayOutput ¶
func (i WirelessWifiIfaceArray) ToWirelessWifiIfaceArrayOutput() WirelessWifiIfaceArrayOutput
func (WirelessWifiIfaceArray) ToWirelessWifiIfaceArrayOutputWithContext ¶
func (i WirelessWifiIfaceArray) ToWirelessWifiIfaceArrayOutputWithContext(ctx context.Context) WirelessWifiIfaceArrayOutput
type WirelessWifiIfaceArrayInput ¶
type WirelessWifiIfaceArrayInput interface { pulumi.Input ToWirelessWifiIfaceArrayOutput() WirelessWifiIfaceArrayOutput ToWirelessWifiIfaceArrayOutputWithContext(context.Context) WirelessWifiIfaceArrayOutput }
WirelessWifiIfaceArrayInput is an input type that accepts WirelessWifiIfaceArray and WirelessWifiIfaceArrayOutput values. You can construct a concrete instance of `WirelessWifiIfaceArrayInput` via:
WirelessWifiIfaceArray{ WirelessWifiIfaceArgs{...} }
type WirelessWifiIfaceArrayOutput ¶
type WirelessWifiIfaceArrayOutput struct{ *pulumi.OutputState }
func (WirelessWifiIfaceArrayOutput) ElementType ¶
func (WirelessWifiIfaceArrayOutput) ElementType() reflect.Type
func (WirelessWifiIfaceArrayOutput) Index ¶
func (o WirelessWifiIfaceArrayOutput) Index(i pulumi.IntInput) WirelessWifiIfaceOutput
func (WirelessWifiIfaceArrayOutput) ToOutput ¶
func (o WirelessWifiIfaceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*WirelessWifiIface]
func (WirelessWifiIfaceArrayOutput) ToWirelessWifiIfaceArrayOutput ¶
func (o WirelessWifiIfaceArrayOutput) ToWirelessWifiIfaceArrayOutput() WirelessWifiIfaceArrayOutput
func (WirelessWifiIfaceArrayOutput) ToWirelessWifiIfaceArrayOutputWithContext ¶
func (o WirelessWifiIfaceArrayOutput) ToWirelessWifiIfaceArrayOutputWithContext(ctx context.Context) WirelessWifiIfaceArrayOutput
type WirelessWifiIfaceInput ¶
type WirelessWifiIfaceInput interface { pulumi.Input ToWirelessWifiIfaceOutput() WirelessWifiIfaceOutput ToWirelessWifiIfaceOutputWithContext(ctx context.Context) WirelessWifiIfaceOutput }
type WirelessWifiIfaceMap ¶
type WirelessWifiIfaceMap map[string]WirelessWifiIfaceInput
func (WirelessWifiIfaceMap) ElementType ¶
func (WirelessWifiIfaceMap) ElementType() reflect.Type
func (WirelessWifiIfaceMap) ToOutput ¶
func (i WirelessWifiIfaceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiIface]
func (WirelessWifiIfaceMap) ToWirelessWifiIfaceMapOutput ¶
func (i WirelessWifiIfaceMap) ToWirelessWifiIfaceMapOutput() WirelessWifiIfaceMapOutput
func (WirelessWifiIfaceMap) ToWirelessWifiIfaceMapOutputWithContext ¶
func (i WirelessWifiIfaceMap) ToWirelessWifiIfaceMapOutputWithContext(ctx context.Context) WirelessWifiIfaceMapOutput
type WirelessWifiIfaceMapInput ¶
type WirelessWifiIfaceMapInput interface { pulumi.Input ToWirelessWifiIfaceMapOutput() WirelessWifiIfaceMapOutput ToWirelessWifiIfaceMapOutputWithContext(context.Context) WirelessWifiIfaceMapOutput }
WirelessWifiIfaceMapInput is an input type that accepts WirelessWifiIfaceMap and WirelessWifiIfaceMapOutput values. You can construct a concrete instance of `WirelessWifiIfaceMapInput` via:
WirelessWifiIfaceMap{ "key": WirelessWifiIfaceArgs{...} }
type WirelessWifiIfaceMapOutput ¶
type WirelessWifiIfaceMapOutput struct{ *pulumi.OutputState }
func (WirelessWifiIfaceMapOutput) ElementType ¶
func (WirelessWifiIfaceMapOutput) ElementType() reflect.Type
func (WirelessWifiIfaceMapOutput) MapIndex ¶
func (o WirelessWifiIfaceMapOutput) MapIndex(k pulumi.StringInput) WirelessWifiIfaceOutput
func (WirelessWifiIfaceMapOutput) ToOutput ¶
func (o WirelessWifiIfaceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*WirelessWifiIface]
func (WirelessWifiIfaceMapOutput) ToWirelessWifiIfaceMapOutput ¶
func (o WirelessWifiIfaceMapOutput) ToWirelessWifiIfaceMapOutput() WirelessWifiIfaceMapOutput
func (WirelessWifiIfaceMapOutput) ToWirelessWifiIfaceMapOutputWithContext ¶
func (o WirelessWifiIfaceMapOutput) ToWirelessWifiIfaceMapOutputWithContext(ctx context.Context) WirelessWifiIfaceMapOutput
type WirelessWifiIfaceOutput ¶
type WirelessWifiIfaceOutput struct{ *pulumi.OutputState }
func (WirelessWifiIfaceOutput) Device ¶
func (o WirelessWifiIfaceOutput) Device() pulumi.StringOutput
Name of the physical device. This name is what the device is known as in LuCI/UCI, or the `id` field in Terraform.
func (WirelessWifiIfaceOutput) ElementType ¶
func (WirelessWifiIfaceOutput) ElementType() reflect.Type
func (WirelessWifiIfaceOutput) Encryption ¶
func (o WirelessWifiIfaceOutput) Encryption() pulumi.StringOutput
Encryption method. Currently, only PSK encryption methods are supported. Must be one of: "none", "psk", "psk2", "psk2+aes", "psk2+ccmp", "psk2+tkip", "psk2+tkip+aes", "psk2+tkip+ccmp", "psk+aes", "psk+ccmp", "psk-mixed", "psk-mixed+aes", "psk-mixed+ccmp", "psk-mixed+tkip", "psk-mixed+tkip+aes", "psk-mixed+tkip+ccmp", "psk+tkip", "psk+tkip+aes", "psk+tkip+ccmp", "sae", "sae-mixed".
func (WirelessWifiIfaceOutput) Isolate ¶
func (o WirelessWifiIfaceOutput) Isolate() pulumi.BoolOutput
Isolate wireless clients from each other.
func (WirelessWifiIfaceOutput) Key ¶
func (o WirelessWifiIfaceOutput) Key() pulumi.StringOutput
The pre-shared passphrase from which the pre-shared key will be derived. The clear text key has to be 8-63 characters long.
func (WirelessWifiIfaceOutput) Mode ¶
func (o WirelessWifiIfaceOutput) Mode() pulumi.StringOutput
The operation mode of the wireless network interface controller.. Currently only "ap" is supported.
func (WirelessWifiIfaceOutput) Network ¶
func (o WirelessWifiIfaceOutput) Network() pulumi.StringOutput
Network interface to attach the wireless network. This name is what the interface is known as in UCI, or the `id` field in Terraform.
func (WirelessWifiIfaceOutput) Ssid ¶
func (o WirelessWifiIfaceOutput) Ssid() pulumi.StringOutput
The broadcasted SSID of the wireless network. This is what actual clients will see the network as.
func (WirelessWifiIfaceOutput) ToOutput ¶
func (o WirelessWifiIfaceOutput) ToOutput(ctx context.Context) pulumix.Output[*WirelessWifiIface]
func (WirelessWifiIfaceOutput) ToWirelessWifiIfaceOutput ¶
func (o WirelessWifiIfaceOutput) ToWirelessWifiIfaceOutput() WirelessWifiIfaceOutput
func (WirelessWifiIfaceOutput) ToWirelessWifiIfaceOutputWithContext ¶
func (o WirelessWifiIfaceOutput) ToWirelessWifiIfaceOutputWithContext(ctx context.Context) WirelessWifiIfaceOutput
func (WirelessWifiIfaceOutput) WpaDisableEapolKeyRetries ¶
func (o WirelessWifiIfaceOutput) WpaDisableEapolKeyRetries() pulumi.BoolOutput
Enable WPA key reinstallation attack (KRACK) workaround. This should be `true` to enable KRACK workaround (you almost surely want this enabled).
type WirelessWifiIfaceState ¶
type WirelessWifiIfaceState struct { // Name of the physical device. This name is what the device is known as in LuCI/UCI, or the `id` field in Terraform. Device pulumi.StringPtrInput // Encryption method. Currently, only PSK encryption methods are supported. Must be one of: "none", "psk", "psk2", "psk2+aes", "psk2+ccmp", "psk2+tkip", "psk2+tkip+aes", "psk2+tkip+ccmp", "psk+aes", "psk+ccmp", "psk-mixed", "psk-mixed+aes", "psk-mixed+ccmp", "psk-mixed+tkip", "psk-mixed+tkip+aes", "psk-mixed+tkip+ccmp", "psk+tkip", "psk+tkip+aes", "psk+tkip+ccmp", "sae", "sae-mixed". Encryption pulumi.StringPtrInput // Isolate wireless clients from each other. Isolate pulumi.BoolPtrInput // The pre-shared passphrase from which the pre-shared key will be derived. The clear text key has to be 8-63 characters long. Key pulumi.StringPtrInput // The operation mode of the wireless network interface controller.. Currently only "ap" is supported. Mode pulumi.StringPtrInput // Network interface to attach the wireless network. This name is what the interface is known as in UCI, or the `id` field // in Terraform. Network pulumi.StringPtrInput // The broadcasted SSID of the wireless network. This is what actual clients will see the network as. Ssid pulumi.StringPtrInput // Enable WPA key reinstallation attack (KRACK) workaround. This should be `true` to enable KRACK workaround (you almost surely want this enabled). WpaDisableEapolKeyRetries pulumi.BoolPtrInput }
func (WirelessWifiIfaceState) ElementType ¶
func (WirelessWifiIfaceState) ElementType() reflect.Type
Source Files ¶
- dhcpDhcp.go
- dhcpDnsmasq.go
- dhcpDomain.go
- dhcpHost.go
- dhcpOdhcpd.go
- doc.go
- getDhcpDhcp.go
- getDhcpDnsmasq.go
- getDhcpDomain.go
- getDhcpHost.go
- getDhcpOdhcpd.go
- getNetworkDevice.go
- getNetworkGlobals.go
- getNetworkInterface.go
- getNetworkSwitch.go
- getNetworkSwitchVlan.go
- getSystemSystem.go
- getWirelessWifiDevice.go
- getWirelessWifiIface.go
- init.go
- networkDevice.go
- networkGlobals.go
- networkInterface.go
- networkSwitch.go
- networkSwitchVlan.go
- provider.go
- systemSystem.go
- wirelessWifiDevice.go
- wirelessWifiIface.go