routeros.Ipv6DhcpClient
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const inetProvider = new routeros.Ipv6DhcpClient("inetProvider", {
addDefaultRoute: true,
disabled: false,
"interface": "ether1",
poolName: "pub-add-pool",
poolPrefixLength: 64,
requests: ["prefix"],
});
const client = new routeros.Ipv6DhcpClient("client", {
addDefaultRoute: true,
"interface": "ether1",
poolName: "pub-add-pool",
poolPrefixLength: 64,
requests: ["prefix"],
});
import pulumi
import pulumi_routeros as routeros
inet_provider = routeros.Ipv6DhcpClient("inetProvider",
add_default_route=True,
disabled=False,
interface="ether1",
pool_name="pub-add-pool",
pool_prefix_length=64,
requests=["prefix"])
client = routeros.Ipv6DhcpClient("client",
add_default_route=True,
interface="ether1",
pool_name="pub-add-pool",
pool_prefix_length=64,
requests=["prefix"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := routeros.NewIpv6DhcpClient(ctx, "inetProvider", &routeros.Ipv6DhcpClientArgs{
AddDefaultRoute: pulumi.Bool(true),
Disabled: pulumi.Bool(false),
Interface: pulumi.String("ether1"),
PoolName: pulumi.String("pub-add-pool"),
PoolPrefixLength: pulumi.Float64(64),
Requests: pulumi.StringArray{
pulumi.String("prefix"),
},
})
if err != nil {
return err
}
_, err = routeros.NewIpv6DhcpClient(ctx, "client", &routeros.Ipv6DhcpClientArgs{
AddDefaultRoute: pulumi.Bool(true),
Interface: pulumi.String("ether1"),
PoolName: pulumi.String("pub-add-pool"),
PoolPrefixLength: pulumi.Float64(64),
Requests: pulumi.StringArray{
pulumi.String("prefix"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var inetProvider = new Routeros.Ipv6DhcpClient("inetProvider", new()
{
AddDefaultRoute = true,
Disabled = false,
Interface = "ether1",
PoolName = "pub-add-pool",
PoolPrefixLength = 64,
Requests = new[]
{
"prefix",
},
});
var client = new Routeros.Ipv6DhcpClient("client", new()
{
AddDefaultRoute = true,
Interface = "ether1",
PoolName = "pub-add-pool",
PoolPrefixLength = 64,
Requests = new[]
{
"prefix",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.Ipv6DhcpClient;
import com.pulumi.routeros.Ipv6DhcpClientArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var inetProvider = new Ipv6DhcpClient("inetProvider", Ipv6DhcpClientArgs.builder()
.addDefaultRoute(true)
.disabled(false)
.interface_("ether1")
.poolName("pub-add-pool")
.poolPrefixLength(64)
.requests("prefix")
.build());
var client = new Ipv6DhcpClient("client", Ipv6DhcpClientArgs.builder()
.addDefaultRoute(true)
.interface_("ether1")
.poolName("pub-add-pool")
.poolPrefixLength(64)
.requests("prefix")
.build());
}
}
resources:
inetProvider:
type: routeros:Ipv6DhcpClient
properties:
addDefaultRoute: true
disabled: false
interface: ether1
poolName: pub-add-pool
poolPrefixLength: 64
requests:
- prefix
client:
type: routeros:Ipv6DhcpClient
properties:
addDefaultRoute: true
interface: ether1
poolName: pub-add-pool
poolPrefixLength: 64
requests:
- prefix
Create Ipv6DhcpClient Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ipv6DhcpClient(name: string, args: Ipv6DhcpClientArgs, opts?: CustomResourceOptions);
@overload
def Ipv6DhcpClient(resource_name: str,
args: Ipv6DhcpClientArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ipv6DhcpClient(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface: Optional[str] = None,
requests: Optional[Sequence[str]] = None,
default_route_distance: Optional[float] = None,
pool_prefix_length: Optional[float] = None,
comment: Optional[str] = None,
___id_: Optional[float] = None,
dhcp_options: Optional[Sequence[str]] = None,
disabled: Optional[bool] = None,
add_default_route: Optional[bool] = None,
ipv6_dhcp_client_id: Optional[str] = None,
pool_name: Optional[str] = None,
allow_reconfigure: Optional[bool] = None,
prefix_address_lists: Optional[Sequence[str]] = None,
prefix_hint: Optional[str] = None,
rapid_commit: Optional[bool] = None,
___path_: Optional[str] = None,
script: Optional[str] = None,
use_interface_duid: Optional[bool] = None,
use_peer_dns: Optional[bool] = None,
validate_server_duid: Optional[bool] = None)
func NewIpv6DhcpClient(ctx *Context, name string, args Ipv6DhcpClientArgs, opts ...ResourceOption) (*Ipv6DhcpClient, error)
public Ipv6DhcpClient(string name, Ipv6DhcpClientArgs args, CustomResourceOptions? opts = null)
public Ipv6DhcpClient(String name, Ipv6DhcpClientArgs args)
public Ipv6DhcpClient(String name, Ipv6DhcpClientArgs args, CustomResourceOptions options)
type: routeros:Ipv6DhcpClient
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Ipv6DhcpClientArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args Ipv6DhcpClientArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args Ipv6DhcpClientArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv6DhcpClientArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Ipv6DhcpClientArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Ipv6DhcpClient Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Ipv6DhcpClient resource accepts the following input properties:
- Interface string
- Name of the interface.
- Requests List<string>
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- Add
Default boolRoute - Whether to add default IPv6 route after a client connects.
- Allow
Reconfigure bool - Allow reconfigure messages.
- Comment string
- Default
Route doubleDistance - Distance of default route. Applicable if add-default-route is set to yes.
- Dhcp
Options List<string> - Options that are sent to the DHCP server.
- Disabled bool
- Ipv6Dhcp
Client stringId - Pool
Name string - Name of the IPv6 pool in which received IPv6 prefix will be added
- Pool
Prefix doubleLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- Prefix
Address List<string>Lists - Names of the firewall address lists to which received prefix will be added.
- Prefix
Hint string - Include a preferred prefix length.
- Rapid
Commit bool - Enable DHCP rapid commit (fast address assignment)
- Script string
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- Use
Interface boolDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- Use
Peer boolDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- Validate
Server boolDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Interface string
- Name of the interface.
- Requests []string
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- Add
Default boolRoute - Whether to add default IPv6 route after a client connects.
- Allow
Reconfigure bool - Allow reconfigure messages.
- Comment string
- Default
Route float64Distance - Distance of default route. Applicable if add-default-route is set to yes.
- Dhcp
Options []string - Options that are sent to the DHCP server.
- Disabled bool
- Ipv6Dhcp
Client stringId - Pool
Name string - Name of the IPv6 pool in which received IPv6 prefix will be added
- Pool
Prefix float64Length - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- Prefix
Address []stringLists - Names of the firewall address lists to which received prefix will be added.
- Prefix
Hint string - Include a preferred prefix length.
- Rapid
Commit bool - Enable DHCP rapid commit (fast address assignment)
- Script string
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- Use
Interface boolDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- Use
Peer boolDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- Validate
Server boolDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- interface_ String
- Name of the interface.
- requests List<String>
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add
Default BooleanRoute - Whether to add default IPv6 route after a client connects.
- allow
Reconfigure Boolean - Allow reconfigure messages.
- comment String
- default
Route DoubleDistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp
Options List<String> - Options that are sent to the DHCP server.
- disabled Boolean
- ipv6Dhcp
Client StringId - pool
Name String - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool
Prefix DoubleLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix
Address List<String>Lists - Names of the firewall address lists to which received prefix will be added.
- prefix
Hint String - Include a preferred prefix length.
- rapid
Commit Boolean - Enable DHCP rapid commit (fast address assignment)
- script String
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- use
Interface BooleanDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use
Peer BooleanDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate
Server BooleanDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- interface string
- Name of the interface.
- requests string[]
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add
Default booleanRoute - Whether to add default IPv6 route after a client connects.
- allow
Reconfigure boolean - Allow reconfigure messages.
- comment string
- default
Route numberDistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp
Options string[] - Options that are sent to the DHCP server.
- disabled boolean
- ipv6Dhcp
Client stringId - pool
Name string - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool
Prefix numberLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix
Address string[]Lists - Names of the firewall address lists to which received prefix will be added.
- prefix
Hint string - Include a preferred prefix length.
- rapid
Commit boolean - Enable DHCP rapid commit (fast address assignment)
- script string
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- use
Interface booleanDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use
Peer booleanDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate
Server booleanDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- interface str
- Name of the interface.
- requests Sequence[str]
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add_
default_ boolroute - Whether to add default IPv6 route after a client connects.
- allow_
reconfigure bool - Allow reconfigure messages.
- comment str
- default_
route_ floatdistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp_
options Sequence[str] - Options that are sent to the DHCP server.
- disabled bool
- ipv6_
dhcp_ strclient_ id - pool_
name str - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool_
prefix_ floatlength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix_
address_ Sequence[str]lists - Names of the firewall address lists to which received prefix will be added.
- prefix_
hint str - Include a preferred prefix length.
- rapid_
commit bool - Enable DHCP rapid commit (fast address assignment)
- script str
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- use_
interface_ boolduid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use_
peer_ booldns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate_
server_ boolduid - Whether to validate the DUID of the IPv6 DHCP Server.
- interface String
- Name of the interface.
- requests List<String>
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add
Default BooleanRoute - Whether to add default IPv6 route after a client connects.
- allow
Reconfigure Boolean - Allow reconfigure messages.
- comment String
- default
Route NumberDistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp
Options List<String> - Options that are sent to the DHCP server.
- disabled Boolean
- ipv6Dhcp
Client StringId - pool
Name String - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool
Prefix NumberLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix
Address List<String>Lists - Names of the firewall address lists to which received prefix will be added.
- prefix
Hint String - Include a preferred prefix length.
- rapid
Commit Boolean - Enable DHCP rapid commit (fast address assignment)
- script String
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- use
Interface BooleanDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use
Peer BooleanDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate
Server BooleanDuid - Whether to validate the DUID of the IPv6 DHCP Server.
Outputs
All input properties are implicitly available as output properties. Additionally, the Ipv6DhcpClient resource produces the following output properties:
- Address string
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- Dhcp
Server stringV6 - The IPv6 address of the DHCP server
- Duid string
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Expires
After string - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- Gateway string
- The IP address of the gateway which is assigned by DHCP server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invalid bool
- Prefix string
- Shows received IPv6 prefix from DHCPv6-PD server
- Status string
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- Address string
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- Dhcp
Server stringV6 - The IPv6 address of the DHCP server
- Duid string
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Expires
After string - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- Gateway string
- The IP address of the gateway which is assigned by DHCP server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invalid bool
- Prefix string
- Shows received IPv6 prefix from DHCPv6-PD server
- Status string
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- address String
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- dhcp
Server StringV6 - The IPv6 address of the DHCP server
- duid String
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires
After String - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway String
- The IP address of the gateway which is assigned by DHCP server.
- id String
- The provider-assigned unique ID for this managed resource.
- invalid Boolean
- prefix String
- Shows received IPv6 prefix from DHCPv6-PD server
- status String
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- address string
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- dhcp
Server stringV6 - The IPv6 address of the DHCP server
- duid string
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires
After string - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway string
- The IP address of the gateway which is assigned by DHCP server.
- id string
- The provider-assigned unique ID for this managed resource.
- invalid boolean
- prefix string
- Shows received IPv6 prefix from DHCPv6-PD server
- status string
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- address str
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- dhcp_
server_ strv6 - The IPv6 address of the DHCP server
- duid str
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires_
after str - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway str
- The IP address of the gateway which is assigned by DHCP server.
- id str
- The provider-assigned unique ID for this managed resource.
- invalid bool
- prefix str
- Shows received IPv6 prefix from DHCPv6-PD server
- status str
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- address String
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- dhcp
Server StringV6 - The IPv6 address of the DHCP server
- duid String
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires
After String - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway String
- The IP address of the gateway which is assigned by DHCP server.
- id String
- The provider-assigned unique ID for this managed resource.
- invalid Boolean
- prefix String
- Shows received IPv6 prefix from DHCPv6-PD server
- status String
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
Look up Existing Ipv6DhcpClient Resource
Get an existing Ipv6DhcpClient resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: Ipv6DhcpClientState, opts?: CustomResourceOptions): Ipv6DhcpClient
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
add_default_route: Optional[bool] = None,
address: Optional[str] = None,
allow_reconfigure: Optional[bool] = None,
comment: Optional[str] = None,
default_route_distance: Optional[float] = None,
dhcp_options: Optional[Sequence[str]] = None,
dhcp_server_v6: Optional[str] = None,
disabled: Optional[bool] = None,
duid: Optional[str] = None,
dynamic: Optional[bool] = None,
expires_after: Optional[str] = None,
gateway: Optional[str] = None,
interface: Optional[str] = None,
invalid: Optional[bool] = None,
ipv6_dhcp_client_id: Optional[str] = None,
pool_name: Optional[str] = None,
pool_prefix_length: Optional[float] = None,
prefix: Optional[str] = None,
prefix_address_lists: Optional[Sequence[str]] = None,
prefix_hint: Optional[str] = None,
rapid_commit: Optional[bool] = None,
requests: Optional[Sequence[str]] = None,
script: Optional[str] = None,
status: Optional[str] = None,
use_interface_duid: Optional[bool] = None,
use_peer_dns: Optional[bool] = None,
validate_server_duid: Optional[bool] = None) -> Ipv6DhcpClient
func GetIpv6DhcpClient(ctx *Context, name string, id IDInput, state *Ipv6DhcpClientState, opts ...ResourceOption) (*Ipv6DhcpClient, error)
public static Ipv6DhcpClient Get(string name, Input<string> id, Ipv6DhcpClientState? state, CustomResourceOptions? opts = null)
public static Ipv6DhcpClient get(String name, Output<String> id, Ipv6DhcpClientState state, CustomResourceOptions options)
resources: _: type: routeros:Ipv6DhcpClient get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Add
Default boolRoute - Whether to add default IPv6 route after a client connects.
- Address string
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- Allow
Reconfigure bool - Allow reconfigure messages.
- Comment string
- Default
Route doubleDistance - Distance of default route. Applicable if add-default-route is set to yes.
- Dhcp
Options List<string> - Options that are sent to the DHCP server.
- Dhcp
Server stringV6 - The IPv6 address of the DHCP server
- Disabled bool
- Duid string
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Expires
After string - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- Gateway string
- The IP address of the gateway which is assigned by DHCP server.
- Interface string
- Name of the interface.
- Invalid bool
- Ipv6Dhcp
Client stringId - Pool
Name string - Name of the IPv6 pool in which received IPv6 prefix will be added
- Pool
Prefix doubleLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- Prefix string
- Shows received IPv6 prefix from DHCPv6-PD server
- Prefix
Address List<string>Lists - Names of the firewall address lists to which received prefix will be added.
- Prefix
Hint string - Include a preferred prefix length.
- Rapid
Commit bool - Enable DHCP rapid commit (fast address assignment)
- Requests List<string>
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- Script string
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- Status string
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- Use
Interface boolDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- Use
Peer boolDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- Validate
Server boolDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Add
Default boolRoute - Whether to add default IPv6 route after a client connects.
- Address string
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- Allow
Reconfigure bool - Allow reconfigure messages.
- Comment string
- Default
Route float64Distance - Distance of default route. Applicable if add-default-route is set to yes.
- Dhcp
Options []string - Options that are sent to the DHCP server.
- Dhcp
Server stringV6 - The IPv6 address of the DHCP server
- Disabled bool
- Duid string
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Expires
After string - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- Gateway string
- The IP address of the gateway which is assigned by DHCP server.
- Interface string
- Name of the interface.
- Invalid bool
- Ipv6Dhcp
Client stringId - Pool
Name string - Name of the IPv6 pool in which received IPv6 prefix will be added
- Pool
Prefix float64Length - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- Prefix string
- Shows received IPv6 prefix from DHCPv6-PD server
- Prefix
Address []stringLists - Names of the firewall address lists to which received prefix will be added.
- Prefix
Hint string - Include a preferred prefix length.
- Rapid
Commit bool - Enable DHCP rapid commit (fast address assignment)
- Requests []string
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- Script string
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- Status string
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- Use
Interface boolDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- Use
Peer boolDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- Validate
Server boolDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add
Default BooleanRoute - Whether to add default IPv6 route after a client connects.
- address String
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- allow
Reconfigure Boolean - Allow reconfigure messages.
- comment String
- default
Route DoubleDistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp
Options List<String> - Options that are sent to the DHCP server.
- dhcp
Server StringV6 - The IPv6 address of the DHCP server
- disabled Boolean
- duid String
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires
After String - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway String
- The IP address of the gateway which is assigned by DHCP server.
- interface_ String
- Name of the interface.
- invalid Boolean
- ipv6Dhcp
Client StringId - pool
Name String - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool
Prefix DoubleLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix String
- Shows received IPv6 prefix from DHCPv6-PD server
- prefix
Address List<String>Lists - Names of the firewall address lists to which received prefix will be added.
- prefix
Hint String - Include a preferred prefix length.
- rapid
Commit Boolean - Enable DHCP rapid commit (fast address assignment)
- requests List<String>
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- script String
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- status String
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- use
Interface BooleanDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use
Peer BooleanDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate
Server BooleanDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add
Default booleanRoute - Whether to add default IPv6 route after a client connects.
- address string
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- allow
Reconfigure boolean - Allow reconfigure messages.
- comment string
- default
Route numberDistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp
Options string[] - Options that are sent to the DHCP server.
- dhcp
Server stringV6 - The IPv6 address of the DHCP server
- disabled boolean
- duid string
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires
After string - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway string
- The IP address of the gateway which is assigned by DHCP server.
- interface string
- Name of the interface.
- invalid boolean
- ipv6Dhcp
Client stringId - pool
Name string - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool
Prefix numberLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix string
- Shows received IPv6 prefix from DHCPv6-PD server
- prefix
Address string[]Lists - Names of the firewall address lists to which received prefix will be added.
- prefix
Hint string - Include a preferred prefix length.
- rapid
Commit boolean - Enable DHCP rapid commit (fast address assignment)
- requests string[]
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- script string
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- status string
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- use
Interface booleanDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use
Peer booleanDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate
Server booleanDuid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add_
default_ boolroute - Whether to add default IPv6 route after a client connects.
- address str
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- allow_
reconfigure bool - Allow reconfigure messages.
- comment str
- default_
route_ floatdistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp_
options Sequence[str] - Options that are sent to the DHCP server.
- dhcp_
server_ strv6 - The IPv6 address of the DHCP server
- disabled bool
- duid str
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires_
after str - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway str
- The IP address of the gateway which is assigned by DHCP server.
- interface str
- Name of the interface.
- invalid bool
- ipv6_
dhcp_ strclient_ id - pool_
name str - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool_
prefix_ floatlength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix str
- Shows received IPv6 prefix from DHCPv6-PD server
- prefix_
address_ Sequence[str]lists - Names of the firewall address lists to which received prefix will be added.
- prefix_
hint str - Include a preferred prefix length.
- rapid_
commit bool - Enable DHCP rapid commit (fast address assignment)
- requests Sequence[str]
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- script str
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- status str
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- use_
interface_ boolduid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use_
peer_ booldns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate_
server_ boolduid - Whether to validate the DUID of the IPv6 DHCP Server.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- add
Default BooleanRoute - Whether to add default IPv6 route after a client connects.
- address String
- IPv6 address, which is assigned to DHCPv6 Client from the Server.
- allow
Reconfigure Boolean - Allow reconfigure messages.
- comment String
- default
Route NumberDistance - Distance of default route. Applicable if add-default-route is set to yes.
- dhcp
Options List<String> - Options that are sent to the DHCP server.
- dhcp
Server StringV6 - The IPv6 address of the DHCP server
- disabled Boolean
- duid String
- Auto-generated DUID that is sent to the server. DUID is generated using one of the MAC addresses available on the router.
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- expires
After String - A time when the IPv6 prefix expires (specified by the DHCPv6 server).
- gateway String
- The IP address of the gateway which is assigned by DHCP server.
- interface String
- Name of the interface.
- invalid Boolean
- ipv6Dhcp
Client StringId - pool
Name String - Name of the IPv6 pool in which received IPv6 prefix will be added
- pool
Prefix NumberLength - Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of the received prefix, otherwise, prefix-length will be set to received prefix length + 8 bits.
- prefix String
- Shows received IPv6 prefix from DHCPv6-PD server
- prefix
Address List<String>Lists - Names of the firewall address lists to which received prefix will be added.
- prefix
Hint String - Include a preferred prefix length.
- rapid
Commit Boolean - Enable DHCP rapid commit (fast address assignment)
- requests List<String>
- To choose if the DHCPv6 request will ask for the address, info or the IPv6 prefix.
- script String
- Run this script on the DHCP-client status change. Available variables: * pd-valid - if the prefix is acquired by the client; * pd-prefix - the prefix acquired by the client if any; * na-valid - if the address is acquired by the client; * na-address - the address acquired by the client if any. * options - array of received options (only ROSv7)
- status String
- Shows the status of DHCPv6 Client: * stopped - dhcpv6 client is stopped * searching - sending
solicit
and trying to getadvertise
Shows actual (resolved) gateway and interface that will be used for packet forwarding.requesting - sentrequest
waiting forreply
* bound - receivedreply
. Prefix assigned. * renewing - sentrenew
, waiting forreply
* rebinding - sentrebind
, waiting forreply
* error - reply was not received in time or some other error occurred. * stopping - sentrelease
- use
Interface BooleanDuid - Specifies the MAC address of the specified interface as the DHCPv6 client DUID.
- use
Peer BooleanDns - Whether to accept the DNS settings advertised by the IPv6 DHCP Server.
- validate
Server BooleanDuid - Whether to validate the DUID of the IPv6 DHCP Server.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/ipv6/dhcp-client/ get [print show-ids]]
$ pulumi import routeros:index/ipv6DhcpClient:Ipv6DhcpClient inet_provider "*1"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.