openwrt

package
v0.0.0-...-f9748a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing OpenWRT resources

Index

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) ElementType() reflect.Type

func (*DhcpDhcp) ToDhcpDhcpOutput

func (i *DhcpDhcp) ToDhcpDhcpOutput() DhcpDhcpOutput

func (*DhcpDhcp) ToDhcpDhcpOutputWithContext

func (i *DhcpDhcp) ToDhcpDhcpOutputWithContext(ctx context.Context) DhcpDhcpOutput

func (*DhcpDhcp) ToOutput

func (i *DhcpDhcp) ToOutput(ctx context.Context) pulumix.Output[*DhcpDhcp]

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

func (DhcpDhcpArray) ToOutput

func (i DhcpDhcpArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpDhcp]

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 (DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutput

func (o DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutput() DhcpDhcpArrayOutput

func (DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutputWithContext

func (o DhcpDhcpArrayOutput) ToDhcpDhcpArrayOutputWithContext(ctx context.Context) DhcpDhcpArrayOutput

func (DhcpDhcpArrayOutput) ToOutput

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

func (DhcpDhcpMap) ToOutput

func (i DhcpDhcpMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpDhcp]

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 (DhcpDhcpMapOutput) ToDhcpDhcpMapOutput

func (o DhcpDhcpMapOutput) ToDhcpDhcpMapOutput() DhcpDhcpMapOutput

func (DhcpDhcpMapOutput) ToDhcpDhcpMapOutputWithContext

func (o DhcpDhcpMapOutput) ToDhcpDhcpMapOutputWithContext(ctx context.Context) DhcpDhcpMapOutput

func (DhcpDhcpMapOutput) ToOutput

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

The mode of Router Advertisements. Must be one of: "disabled", "relay", "server".

func (DhcpDhcpOutput) RaFlags

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

func (DhcpDhcpOutput) ToOutput

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

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 (DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutput

func (o DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutput() DhcpDnsmasqArrayOutput

func (DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutputWithContext

func (o DhcpDnsmasqArrayOutput) ToDhcpDnsmasqArrayOutputWithContext(ctx context.Context) DhcpDnsmasqArrayOutput

func (DhcpDnsmasqArrayOutput) ToOutput

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

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 (DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutput

func (o DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutput() DhcpDnsmasqMapOutput

func (DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutputWithContext

func (o DhcpDnsmasqMapOutput) ToDhcpDnsmasqMapOutputWithContext(ctx context.Context) DhcpDnsmasqMapOutput

func (DhcpDnsmasqMapOutput) ToOutput

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

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

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

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

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 (DhcpDomainArrayOutput) ToDhcpDomainArrayOutput

func (o DhcpDomainArrayOutput) ToDhcpDomainArrayOutput() DhcpDomainArrayOutput

func (DhcpDomainArrayOutput) ToDhcpDomainArrayOutputWithContext

func (o DhcpDomainArrayOutput) ToDhcpDomainArrayOutputWithContext(ctx context.Context) DhcpDomainArrayOutput

func (DhcpDomainArrayOutput) ToOutput

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

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 (DhcpDomainMapOutput) ToDhcpDomainMapOutput

func (o DhcpDomainMapOutput) ToDhcpDomainMapOutput() DhcpDomainMapOutput

func (DhcpDomainMapOutput) ToDhcpDomainMapOutputWithContext

func (o DhcpDomainMapOutput) ToDhcpDomainMapOutputWithContext(ctx context.Context) DhcpDomainMapOutput

func (DhcpDomainMapOutput) ToOutput

type DhcpDomainOutput

type DhcpDomainOutput struct{ *pulumi.OutputState }

func (DhcpDomainOutput) ElementType

func (DhcpDomainOutput) ElementType() reflect.Type

func (DhcpDomainOutput) Ip

The IP address to be used for this domain.

func (DhcpDomainOutput) Name

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

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) ElementType() reflect.Type

func (*DhcpHost) ToDhcpHostOutput

func (i *DhcpHost) ToDhcpHostOutput() DhcpHostOutput

func (*DhcpHost) ToDhcpHostOutputWithContext

func (i *DhcpHost) ToDhcpHostOutputWithContext(ctx context.Context) DhcpHostOutput

func (*DhcpHost) ToOutput

func (i *DhcpHost) ToOutput(ctx context.Context) pulumix.Output[*DhcpHost]

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

func (DhcpHostArray) ToOutput

func (i DhcpHostArray) ToOutput(ctx context.Context) pulumix.Output[[]*DhcpHost]

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 (DhcpHostArrayOutput) ToDhcpHostArrayOutput

func (o DhcpHostArrayOutput) ToDhcpHostArrayOutput() DhcpHostArrayOutput

func (DhcpHostArrayOutput) ToDhcpHostArrayOutputWithContext

func (o DhcpHostArrayOutput) ToDhcpHostArrayOutputWithContext(ctx context.Context) DhcpHostArrayOutput

func (DhcpHostArrayOutput) ToOutput

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

func (DhcpHostMap) ToOutput

func (i DhcpHostMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DhcpHost]

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 (DhcpHostMapOutput) ToDhcpHostMapOutput

func (o DhcpHostMapOutput) ToDhcpHostMapOutput() DhcpHostMapOutput

func (DhcpHostMapOutput) ToDhcpHostMapOutputWithContext

func (o DhcpHostMapOutput) ToDhcpHostMapOutputWithContext(ctx context.Context) DhcpHostMapOutput

func (DhcpHostMapOutput) ToOutput

type DhcpHostOutput

type DhcpHostOutput struct{ *pulumi.OutputState }

func (DhcpHostOutput) Dns

Add static forward and reverse DNS entries for this host.

func (DhcpHostOutput) ElementType

func (DhcpHostOutput) ElementType() reflect.Type

func (DhcpHostOutput) Ip

The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host.

func (DhcpHostOutput) Mac

The hardware address(es) of this host, separated by spaces.

func (DhcpHostOutput) Name

Hostname to assign.

func (DhcpHostOutput) ToDhcpHostOutput

func (o DhcpHostOutput) ToDhcpHostOutput() DhcpHostOutput

func (DhcpHostOutput) ToDhcpHostOutputWithContext

func (o DhcpHostOutput) ToDhcpHostOutputWithContext(ctx context.Context) DhcpHostOutput

func (DhcpHostOutput) ToOutput

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

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 (DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutput

func (o DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutput() DhcpOdhcpdArrayOutput

func (DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutputWithContext

func (o DhcpOdhcpdArrayOutput) ToDhcpOdhcpdArrayOutputWithContext(ctx context.Context) DhcpOdhcpdArrayOutput

func (DhcpOdhcpdArrayOutput) ToOutput

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

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 (DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutput

func (o DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutput() DhcpOdhcpdMapOutput

func (DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutputWithContext

func (o DhcpOdhcpdMapOutput) ToDhcpOdhcpdMapOutputWithContext(ctx context.Context) DhcpOdhcpdMapOutput

func (DhcpOdhcpdMapOutput) ToOutput

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

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 (LookupDhcpDhcpResultOutput) Dhcpv4

The mode of the DHCPv4 server. Must be one of: "disabled", "server".

func (LookupDhcpDhcpResultOutput) Dhcpv6

The mode of the DHCPv6 server. Must be one of: "disabled", "relay", "server".

func (LookupDhcpDhcpResultOutput) ElementType

func (LookupDhcpDhcpResultOutput) ElementType() reflect.Type

func (LookupDhcpDhcpResultOutput) Force

Forces DHCP serving on the specified interface even if another DHCP server is detected on the same network segment.

func (LookupDhcpDhcpResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupDhcpDhcpResultOutput) Ignore

Specifies whether dnsmasq should ignore this pool.

func (LookupDhcpDhcpResultOutput) Interface

func (LookupDhcpDhcpResultOutput) Leasetime

The lease time of addresses handed out to clients. E.g. `12h`, or `30m`. Required if `ignore` is not `true`.

func (LookupDhcpDhcpResultOutput) Limit

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

The mode of Router Advertisements. Must be one of: "disabled", "relay", "server".

func (LookupDhcpDhcpResultOutput) RaFlags

Router Advertisement flags to include in messages. Must be one of: "home-agent", "managed-config", "none", "other-config".

func (LookupDhcpDhcpResultOutput) Start

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

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

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 (LookupDhcpDnsmasqResultOutput) Authoritative

Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.

func (LookupDhcpDnsmasqResultOutput) Domain

DNS domain handed out to DHCP clients.

func (LookupDhcpDnsmasqResultOutput) Domainneeded

Never forward queries for plain names, without dots or domain parts, to upstream nameservers.

func (LookupDhcpDnsmasqResultOutput) EdnspacketMax

Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.

func (LookupDhcpDnsmasqResultOutput) ElementType

func (LookupDhcpDnsmasqResultOutput) Expandhosts

Never forward queries for plain names, without dots or domain parts, to upstream nameservers.

func (LookupDhcpDnsmasqResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupDhcpDnsmasqResultOutput) Leasefile

Store DHCP leases in this file.

func (LookupDhcpDnsmasqResultOutput) Local

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

Accept DNS queries only from hosts whose address is on a local subnet.

func (LookupDhcpDnsmasqResultOutput) Readethers

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

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

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 (LookupDhcpDomainResultOutput) ElementType

func (LookupDhcpDomainResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupDhcpDomainResultOutput) Ip

The IP address to be used for this domain.

func (LookupDhcpDomainResultOutput) Name

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

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 (LookupDhcpHostResultOutput) Dns

Add static forward and reverse DNS entries for this host.

func (LookupDhcpHostResultOutput) ElementType

func (LookupDhcpHostResultOutput) ElementType() reflect.Type

func (LookupDhcpHostResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupDhcpHostResultOutput) Ip

The IP address to be used for this host, or `ignore` to ignore any DHCP request from this host.

func (LookupDhcpHostResultOutput) Mac

The hardware address(es) of this host, separated by spaces.

func (LookupDhcpHostResultOutput) Name

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

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 (LookupDhcpOdhcpdResultOutput) ElementType

func (LookupDhcpOdhcpdResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupDhcpOdhcpdResultOutput) Leasefile

Location of the lease/hostfile for DHCPv4 and DHCPv6.

func (LookupDhcpOdhcpdResultOutput) Leasetrigger

Location of the lease trigger script.

func (LookupDhcpOdhcpdResultOutput) Legacy

Enable DHCPv4 if the 'dhcp' section constains a `start` option, but no `dhcpv4` option set.

func (LookupDhcpOdhcpdResultOutput) Loglevel

Syslog level priority (0-7).

func (LookupDhcpOdhcpdResultOutput) Maindhcp

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

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

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 (LookupNetworkDeviceResultOutput) BridgeEmpty

Bring up the bridge device even if no ports are attached

func (LookupNetworkDeviceResultOutput) Dadtransmits

Amount of Duplicate Address Detection probes to send

func (LookupNetworkDeviceResultOutput) ElementType

func (LookupNetworkDeviceResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupNetworkDeviceResultOutput) Ipv6

Enable IPv6 for the device.

func (LookupNetworkDeviceResultOutput) Macaddr

MAC Address of the device.

func (LookupNetworkDeviceResultOutput) Mtu

Maximum Transmissible Unit.

func (LookupNetworkDeviceResultOutput) Mtu6

Maximum Transmissible Unit for IPv6.

func (LookupNetworkDeviceResultOutput) Name

Name of the device. This name is referenced in other network configuration.

func (LookupNetworkDeviceResultOutput) Ports

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 (LookupNetworkDeviceResultOutput) Txqueuelen

Transmission queue length.

func (LookupNetworkDeviceResultOutput) Type

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

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 (LookupNetworkGlobalsResultOutput) ElementType

func (LookupNetworkGlobalsResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupNetworkGlobalsResultOutput) PacketSteering

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 (LookupNetworkGlobalsResultOutput) UlaPrefix

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

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 (LookupNetworkInterfaceResultOutput) Auto

Specifies whether to bring up this interface on boot.

func (LookupNetworkInterfaceResultOutput) Device

func (LookupNetworkInterfaceResultOutput) Disabled

Disables this interface.

func (LookupNetworkInterfaceResultOutput) Dns

DNS servers

func (LookupNetworkInterfaceResultOutput) ElementType

func (LookupNetworkInterfaceResultOutput) Gateway

Gateway of the interface

func (LookupNetworkInterfaceResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupNetworkInterfaceResultOutput) Ip6assign

Delegate a prefix of given length to this interface

func (LookupNetworkInterfaceResultOutput) Ipaddr

IP address of the interface

func (LookupNetworkInterfaceResultOutput) Macaddr

Override the MAC Address of this interface.

func (LookupNetworkInterfaceResultOutput) Mtu

Override the default MTU on this interface.

func (LookupNetworkInterfaceResultOutput) Netmask

Netmask of the interface

func (LookupNetworkInterfaceResultOutput) Peerdns

Use DHCP-provided DNS servers.

func (LookupNetworkInterfaceResultOutput) Proto

The protocol type of the interface. Currently, only "dhcp, and "static" are supported.

func (LookupNetworkInterfaceResultOutput) Reqaddress

Behavior for requesting address. Can only be one of "force", "try", or "none".

func (LookupNetworkInterfaceResultOutput) Reqprefix

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

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

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 (LookupNetworkSwitchResultOutput) ElementType

func (LookupNetworkSwitchResultOutput) EnableMirrorRx

Mirror received packets from the `mirrorSourcePort` to the `mirrorMonitorPort`.

func (LookupNetworkSwitchResultOutput) EnableMirrorTx

Mirror transmitted packets from the `mirrorSourcePort` to the `mirrorMonitorPort`.

func (LookupNetworkSwitchResultOutput) EnableVlan

Enables VLAN functionality.

func (LookupNetworkSwitchResultOutput) Id

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 (LookupNetworkSwitchResultOutput) Reset

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

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

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 (LookupNetworkSwitchVlanResultOutput) Description

A human-readable description of the VLAN configuration.

func (LookupNetworkSwitchVlanResultOutput) Device

The switch to configure.

func (LookupNetworkSwitchVlanResultOutput) ElementType

func (LookupNetworkSwitchVlanResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupNetworkSwitchVlanResultOutput) Ports

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 (LookupNetworkSwitchVlanResultOutput) Vid

The VLAN tag number to use.

func (LookupNetworkSwitchVlanResultOutput) Vlan

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

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 (LookupSystemSystemResultOutput) Conloglevel

The maximum log level for kernel messages to be logged to the console.

func (LookupSystemSystemResultOutput) Cronloglevel

The minimum level for cron messages to be logged to syslog.

func (LookupSystemSystemResultOutput) Description

The hostname for the system.

func (LookupSystemSystemResultOutput) ElementType

func (LookupSystemSystemResultOutput) Hostname

A short single-line description for the system.

func (LookupSystemSystemResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupSystemSystemResultOutput) LogSize

Size of the file based log buffer in KiB.

func (LookupSystemSystemResultOutput) Notes

Multi-line free-form text about the system.

func (LookupSystemSystemResultOutput) Timezone

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 (LookupSystemSystemResultOutput) Ttylogin

Require authentication for local users to log in the system.

func (LookupSystemSystemResultOutput) Zonename

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

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 (LookupWirelessWifiDeviceResultOutput) Band

Channel width. Must be one of: "2g", "5g", "6g".

func (LookupWirelessWifiDeviceResultOutput) CellDensity

Configures data rates based on the coverage cell density. Must be one of 0, 1, 2, 3.

func (LookupWirelessWifiDeviceResultOutput) Channel

The wireless channel. Currently, only "auto" is supported.

func (LookupWirelessWifiDeviceResultOutput) Country

Two-digit country code. E.g. "US".

func (LookupWirelessWifiDeviceResultOutput) ElementType

func (LookupWirelessWifiDeviceResultOutput) Htmode

Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".

func (LookupWirelessWifiDeviceResultOutput) Id

Name of the section. This name is only used when interacting with UCI directly.

func (LookupWirelessWifiDeviceResultOutput) Path

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 (LookupWirelessWifiDeviceResultOutput) Type

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

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 (LookupWirelessWifiIfaceResultOutput) Device

func (LookupWirelessWifiIfaceResultOutput) ElementType

func (LookupWirelessWifiIfaceResultOutput) Encryption

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

Name of the section. This name is only used when interacting with UCI directly.

func (LookupWirelessWifiIfaceResultOutput) Isolate

Isolate wireless clients from each other.

func (LookupWirelessWifiIfaceResultOutput) Key

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

The operation mode of the wireless network interface controller.. Currently only "ap" is supported.

func (LookupWirelessWifiIfaceResultOutput) Network

func (LookupWirelessWifiIfaceResultOutput) Ssid

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 (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

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

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 (NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutput

func (o NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutput() NetworkDeviceArrayOutput

func (NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutputWithContext

func (o NetworkDeviceArrayOutput) ToNetworkDeviceArrayOutputWithContext(ctx context.Context) NetworkDeviceArrayOutput

func (NetworkDeviceArrayOutput) ToOutput

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

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 (NetworkDeviceMapOutput) ToNetworkDeviceMapOutput

func (o NetworkDeviceMapOutput) ToNetworkDeviceMapOutput() NetworkDeviceMapOutput

func (NetworkDeviceMapOutput) ToNetworkDeviceMapOutputWithContext

func (o NetworkDeviceMapOutput) ToNetworkDeviceMapOutputWithContext(ctx context.Context) NetworkDeviceMapOutput

func (NetworkDeviceMapOutput) ToOutput

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

Enable IPv6 for the device.

func (NetworkDeviceOutput) Macaddr

MAC Address of the device.

func (NetworkDeviceOutput) Mtu

Maximum Transmissible Unit.

func (NetworkDeviceOutput) Mtu6

Maximum Transmissible Unit for IPv6.

func (NetworkDeviceOutput) Name

Name of the device. This name is referenced in other network configuration.

func (NetworkDeviceOutput) Ports

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 (NetworkDeviceOutput) Txqueuelen

func (o NetworkDeviceOutput) Txqueuelen() pulumi.IntOutput

Transmission queue length.

func (NetworkDeviceOutput) Type

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

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

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 (NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutput

func (o NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutput() NetworkGlobalsArrayOutput

func (NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutputWithContext

func (o NetworkGlobalsArrayOutput) ToNetworkGlobalsArrayOutputWithContext(ctx context.Context) NetworkGlobalsArrayOutput

func (NetworkGlobalsArrayOutput) ToOutput

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

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 (NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutput

func (o NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutput() NetworkGlobalsMapOutput

func (NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutputWithContext

func (o NetworkGlobalsMapOutput) ToNetworkGlobalsMapOutputWithContext(ctx context.Context) NetworkGlobalsMapOutput

func (NetworkGlobalsMapOutput) ToOutput

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 (NetworkGlobalsOutput) UlaPrefix

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

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

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) Index

func (NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutput

func (o NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutput() NetworkInterfaceArrayOutput

func (NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutputWithContext

func (o NetworkInterfaceArrayOutput) ToNetworkInterfaceArrayOutputWithContext(ctx context.Context) NetworkInterfaceArrayOutput

func (NetworkInterfaceArrayOutput) ToOutput

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

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 (NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutput

func (o NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutput() NetworkInterfaceMapOutput

func (NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutputWithContext

func (o NetworkInterfaceMapOutput) ToNetworkInterfaceMapOutputWithContext(ctx context.Context) NetworkInterfaceMapOutput

func (NetworkInterfaceMapOutput) ToOutput

type NetworkInterfaceOutput

type NetworkInterfaceOutput struct{ *pulumi.OutputState }

func (NetworkInterfaceOutput) Auto

Specifies whether to bring up this interface on boot.

func (NetworkInterfaceOutput) Device

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

Disables this interface.

func (NetworkInterfaceOutput) Dns

DNS servers

func (NetworkInterfaceOutput) ElementType

func (NetworkInterfaceOutput) ElementType() reflect.Type

func (NetworkInterfaceOutput) Gateway

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

IP address of the interface

func (NetworkInterfaceOutput) Macaddr

Override the MAC Address of this interface.

func (NetworkInterfaceOutput) Mtu

Override the default MTU on this interface.

func (NetworkInterfaceOutput) Netmask

Netmask of the interface

func (NetworkInterfaceOutput) Peerdns

Use DHCP-provided DNS servers.

func (NetworkInterfaceOutput) Proto

The protocol type of the interface. Currently, only "dhcp, and "static" are supported.

func (NetworkInterfaceOutput) Reqaddress

Behavior for requesting address. Can only be one of "force", "try", or "none".

func (NetworkInterfaceOutput) Reqprefix

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

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

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

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 (NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutput

func (o NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutput() NetworkSwitchArrayOutput

func (NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutputWithContext

func (o NetworkSwitchArrayOutput) ToNetworkSwitchArrayOutputWithContext(ctx context.Context) NetworkSwitchArrayOutput

func (NetworkSwitchArrayOutput) ToOutput

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

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 (NetworkSwitchMapOutput) ToNetworkSwitchMapOutput

func (o NetworkSwitchMapOutput) ToNetworkSwitchMapOutput() NetworkSwitchMapOutput

func (NetworkSwitchMapOutput) ToNetworkSwitchMapOutputWithContext

func (o NetworkSwitchMapOutput) ToNetworkSwitchMapOutputWithContext(ctx context.Context) NetworkSwitchMapOutput

func (NetworkSwitchMapOutput) ToOutput

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

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

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

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

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

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) Index

func (NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutput

func (o NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutput() NetworkSwitchVlanArrayOutput

func (NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutputWithContext

func (o NetworkSwitchVlanArrayOutput) ToNetworkSwitchVlanArrayOutputWithContext(ctx context.Context) NetworkSwitchVlanArrayOutput

func (NetworkSwitchVlanArrayOutput) ToOutput

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

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 (NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutput

func (o NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutput() NetworkSwitchVlanMapOutput

func (NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutputWithContext

func (o NetworkSwitchVlanMapOutput) ToNetworkSwitchVlanMapOutputWithContext(ctx context.Context) NetworkSwitchVlanMapOutput

func (NetworkSwitchVlanMapOutput) ToOutput

type NetworkSwitchVlanOutput

type NetworkSwitchVlanOutput struct{ *pulumi.OutputState }

func (NetworkSwitchVlanOutput) Description

A human-readable description of the VLAN configuration.

func (NetworkSwitchVlanOutput) Device

The switch to configure.

func (NetworkSwitchVlanOutput) ElementType

func (NetworkSwitchVlanOutput) ElementType() reflect.Type

func (NetworkSwitchVlanOutput) Ports

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 (NetworkSwitchVlanOutput) Vid

The VLAN tag number to use.

func (NetworkSwitchVlanOutput) Vlan

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) ElementType() reflect.Type

func (*Provider) ToOutput

func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider]

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

The URI scheme to use. Defaults to "http".

func (ProviderOutput) ToOutput

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 (*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 (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 (SystemSystemArrayOutput) ToOutput

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 (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 (SystemSystemMapOutput) ToOutput

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

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 (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 (*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 (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) Index

func (WirelessWifiDeviceArrayOutput) ToOutput

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 (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) MapIndex

func (WirelessWifiDeviceMapOutput) ToOutput

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

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

The wireless channel. Currently, only "auto" is supported.

func (WirelessWifiDeviceOutput) Country

Two-digit country code. E.g. "US".

func (WirelessWifiDeviceOutput) ElementType

func (WirelessWifiDeviceOutput) ElementType() reflect.Type

func (WirelessWifiDeviceOutput) Htmode

Channel width. Must be one of: "HE20", "HE40", "HE80", "HE160", "HT20", "HT40", "HT40-", "HT40+", "NONE", "VHT20", "VHT40", "VHT80", "VHT160".

func (WirelessWifiDeviceOutput) Path

Path of the device in `/sys/devices`.

func (WirelessWifiDeviceOutput) ToOutput

func (WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutput

func (o WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutput() WirelessWifiDeviceOutput

func (WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutputWithContext

func (o WirelessWifiDeviceOutput) ToWirelessWifiDeviceOutputWithContext(ctx context.Context) WirelessWifiDeviceOutput

func (WirelessWifiDeviceOutput) Type

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 (*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 (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) Index

func (WirelessWifiIfaceArrayOutput) ToOutput

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 (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 (WirelessWifiIfaceMapOutput) ToOutput

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

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

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

Isolate wireless clients from each other.

func (WirelessWifiIfaceOutput) Key

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

The operation mode of the wireless network interface controller.. Currently only "ap" is supported.

func (WirelessWifiIfaceOutput) Network

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

The broadcasted SSID of the wireless network. This is what actual clients will see the network as.

func (WirelessWifiIfaceOutput) ToOutput

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL