Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
An embedded DHCP/DHCPv6/RA server & NDP relay.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openwrt from "@pulumi/openwrt";
const testing = openwrt.getDhcpOdhcpd({
id: "testing",
});
import pulumi
import pulumi_openwrt as openwrt
testing = openwrt.get_dhcp_odhcpd(id="testing")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/openwrt/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Openwrt = Pulumi.Openwrt;
return await Deployment.RunAsync(() =>
{
var testing = Openwrt.GetDhcpOdhcpd.Invoke(new()
{
Id = "testing",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openwrt.OpenwrtFunctions;
import com.pulumi.openwrt.inputs.GetDhcpOdhcpdArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testing = OpenwrtFunctions.getDhcpOdhcpd(GetDhcpOdhcpdArgs.builder()
.id("testing")
.build());
}
}
variables:
testing:
fn::invoke:
function: openwrt:getDhcpOdhcpd
arguments:
id: testing
Using getDhcpOdhcpd
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDhcpOdhcpd(args: GetDhcpOdhcpdArgs, opts?: InvokeOptions): Promise<GetDhcpOdhcpdResult>
function getDhcpOdhcpdOutput(args: GetDhcpOdhcpdOutputArgs, opts?: InvokeOptions): Output<GetDhcpOdhcpdResult>def get_dhcp_odhcpd(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDhcpOdhcpdResult
def get_dhcp_odhcpd_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDhcpOdhcpdResult]func LookupDhcpOdhcpd(ctx *Context, args *LookupDhcpOdhcpdArgs, opts ...InvokeOption) (*LookupDhcpOdhcpdResult, error)
func LookupDhcpOdhcpdOutput(ctx *Context, args *LookupDhcpOdhcpdOutputArgs, opts ...InvokeOption) LookupDhcpOdhcpdResultOutput> Note: This function is named LookupDhcpOdhcpd in the Go SDK.
public static class GetDhcpOdhcpd
{
public static Task<GetDhcpOdhcpdResult> InvokeAsync(GetDhcpOdhcpdArgs args, InvokeOptions? opts = null)
public static Output<GetDhcpOdhcpdResult> Invoke(GetDhcpOdhcpdInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpOdhcpdResult> getDhcpOdhcpd(GetDhcpOdhcpdArgs args, InvokeOptions options)
public static Output<GetDhcpOdhcpdResult> getDhcpOdhcpd(GetDhcpOdhcpdArgs args, InvokeOptions options)
fn::invoke:
function: openwrt:index/getDhcpOdhcpd:getDhcpOdhcpd
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
getDhcpOdhcpd Result
The following output properties are available:
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Leasefile string
- Location of the lease/hostfile for DHCPv4 and DHCPv6.
- Leasetrigger string
- Location of the lease trigger script.
- Legacy bool
- Enable DHCPv4 if the 'dhcp' section constains a
startoption, but nodhcpv4option set. - Loglevel double
- Syslog level priority (0-7).
- Maindhcp bool
- Use odhcpd as the main DHCPv4 service.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Leasefile string
- Location of the lease/hostfile for DHCPv4 and DHCPv6.
- Leasetrigger string
- Location of the lease trigger script.
- Legacy bool
- Enable DHCPv4 if the 'dhcp' section constains a
startoption, but nodhcpv4option set. - Loglevel float64
- Syslog level priority (0-7).
- Maindhcp bool
- Use odhcpd as the main DHCPv4 service.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile String
- Location of the lease/hostfile for DHCPv4 and DHCPv6.
- leasetrigger String
- Location of the lease trigger script.
- legacy Boolean
- Enable DHCPv4 if the 'dhcp' section constains a
startoption, but nodhcpv4option set. - loglevel Double
- Syslog level priority (0-7).
- maindhcp Boolean
- Use odhcpd as the main DHCPv4 service.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile string
- Location of the lease/hostfile for DHCPv4 and DHCPv6.
- leasetrigger string
- Location of the lease trigger script.
- legacy boolean
- Enable DHCPv4 if the 'dhcp' section constains a
startoption, but nodhcpv4option set. - loglevel number
- Syslog level priority (0-7).
- maindhcp boolean
- Use odhcpd as the main DHCPv4 service.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile str
- Location of the lease/hostfile for DHCPv4 and DHCPv6.
- leasetrigger str
- Location of the lease trigger script.
- legacy bool
- Enable DHCPv4 if the 'dhcp' section constains a
startoption, but nodhcpv4option set. - loglevel float
- Syslog level priority (0-7).
- maindhcp bool
- Use odhcpd as the main DHCPv4 service.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile String
- Location of the lease/hostfile for DHCPv4 and DHCPv6.
- leasetrigger String
- Location of the lease trigger script.
- legacy Boolean
- Enable DHCPv4 if the 'dhcp' section constains a
startoption, but nodhcpv4option set. - loglevel Number
- Syslog level priority (0-7).
- maindhcp Boolean
- Use odhcpd as the main DHCPv4 service.
Package Details
- Repository
- openwrt joneshf/terraform-provider-openwrt
- License
- Notes
- This Pulumi package is based on the
openwrtTerraform Provider.
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
