sharednetwork : DHCP Shared Network object.

A shared network is a network segment to which you assign two or more subnets. When subnets in a shared network contain IP addresses that are available for dynamic allocation, the addresses are put into a common pool for allocation when client requests arise. When you create a shared network, the DHCP server can assign IP addresses to client requests from any subnet (that resides on the same network interface) in the shared network.

Object Reference

References to sharednetwork are object references. The name part of a shared network object reference has the following components:

  • The name of the shared network.

Example: sharednetwork/5ldHdvcmskMTEuMC4:sharedname

Restrictions

The object cannot be managed on Cloud Platform members.

Fields

These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable.

The basic version of the object contains the field(s): comment, name, network_view, networks.

The following fields are required to create this object:

Field Notes
name  
networks  

authority

authority

Authority for the shared network.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

authority is associated with the field use_authority (see use flag).

bootfile

bootfile

The bootfile name for the shared network. You can configure the DHCP server to support clients that use the boot file name option in their DHCPREQUEST messages.

Type

String.

Create

The default value is empty.

Search

The field is not available for search.

Notes

bootfile is associated with the field use_bootfile (see use flag).

bootserver

bootserver

The bootserver address for the shared network. You can specify the name and/or IP address of the boot server that the host needs to boot.

The boot server IPv4 Address or name in FQDN format.

Type

String.

Create

The default value is empty.

Search

The field is not available for search.

Notes

bootserver is associated with the field use_bootserver (see use flag).

comment

comment

Comment for the shared network, maximum 256 characters.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The default value is empty.

Search

The field is available for search via

  • ‘:=’ (case insensitive search)
  • ‘=’ (exact equality)
  • ‘~=’ (regular expression)

Notes

The comment is part of the base object.

ddns_generate_hostname

ddns_generate_hostname

If this field is set to True, the DHCP server generates a hostname and updates DNS with it when the DHCP client request does not contain a hostname.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

ddns_generate_hostname is associated with the field use_ddns_generate_hostname (see use flag).

ddns_server_always_updates

ddns_server_always_updates

This field controls whether only the DHCP server is allowed to update DNS, regardless of the DHCP clients requests. Note that changes for this field take effect only if ddns_use_option81 is True.

Type

Bool.

Create

The default value is True.

Search

The field is not available for search.

ddns_ttl

ddns_ttl

The DNS update Time to Live (TTL) value of a shared network object.

The TTL is a 32-bit unsigned integer that represents the duration, in seconds, for which the update is cached. Zero indicates that the update is not cached.

Type

Unsigned integer.

Create

The default value is 0.

Search

The field is not available for search.

Notes

ddns_ttl is associated with the field use_ddns_ttl (see use flag).

ddns_update_fixed_addresses

ddns_update_fixed_addresses

By default, the DHCP server does not update DNS when it allocates a fixed address to a client. You can configure the DHCP server to update the A and PTR records of a client with a fixed address. When this feature is enabled and the DHCP server adds A and PTR records for a fixed address, the DHCP server never discards the records.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

ddns_update_fixed_addresses is associated with the field use_ddns_update_fixed_addresses (see use flag).

ddns_use_option81

ddns_use_option81

The support for DHCP Option 81 at the shared network level.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

ddns_use_option81 is associated with the field use_ddns_use_option81 (see use flag).

deny_bootp

deny_bootp

If set to true, BOOTP settings are disabled and BOOTP requests will be denied.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

deny_bootp is associated with the field use_deny_bootp (see use flag).

dhcp_utilization

dhcp_utilization

The percentage of the total DHCP utilization of the networks belonging to the shared network multiplied by 1000. This is the percentage of the total number of available IP addresses from all the networks belonging to the shared network versus the total number of all IP addresses in all of the networks in the shared network.

Type

Unsigned integer.

Search

The field is not available for search.

Notes

The dhcp_utilization cannot be updated.

dhcp_utilization cannot be written.

dhcp_utilization_status

dhcp_utilization_status

A string describing the utilization level of the shared network.

Type

String.

Valid values are:
  • FULL
  • HIGH
  • LOW
  • NORMAL

Search

The field is not available for search.

Notes

The dhcp_utilization_status cannot be updated.

dhcp_utilization_status cannot be written.

disable

disable

Determines whether a shared network is disabled or not. When this is set to False, the shared network is enabled.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

dynamic_hosts

dynamic_hosts

The total number of DHCP leases issued for the shared network.

Type

Unsigned integer.

Search

The field is not available for search.

Notes

The dynamic_hosts cannot be updated.

dynamic_hosts cannot be written.

enable_ddns

enable_ddns

The dynamic DNS updates flag of a shared network object. If set to True, the DHCP server sends DDNS updates to DNS servers in the same Grid, and to external DNS servers.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

enable_ddns is associated with the field use_enable_ddns (see use flag).

enable_pxe_lease_time

enable_pxe_lease_time

Set this to True if you want the DHCP server to use a different lease time for PXE clients.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

extattrs

extattrs

Extensible attributes associated with the object.

For valid values for extensible attributes, see the following information.

Type

Extensible attributes.

This field allows +/- to be specified as part of the field name when updating the object, see the following information.

Create

The default value is empty.

Search

For how to search extensible attributes, see the following information.

ignore_client_identifier

ignore_client_identifier

If set to true, the client identifier will be ignored.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

ignore_client_identifier is associated with the field use_ignore_client_identifier (see use flag).

ignore_dhcp_option_list_request

ignore_dhcp_option_list_request

If this field is set to False, the appliance returns all DHCP options the client is eligible to receive, rather than only the list of options the client has requested.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

ignore_dhcp_option_list_request is associated with the field use_ignore_dhcp_option_list_request (see use flag).

ignore_id

ignore_id

Indicates whether the appliance will ignore DHCP client IDs or MAC addresses. Valid values are “NONE”, “CLIENT”, or “MACADDR”. The default is “NONE”.

Type

String.

Valid values are:
  • CLIENT
  • MACADDR
  • NONE

Create

The default value is NONE.

Search

The field is not available for search.

Notes

ignore_id is associated with the field use_ignore_id (see use flag).

ignore_mac_addresses

ignore_mac_addresses

A list of MAC addresses the appliance will ignore.

Type

String array.

Create

The default value is empty.

Search

The field is not available for search.

lease_scavenge_time

lease_scavenge_time

An integer that specifies the period of time (in seconds) that frees and backs up leases remained in the database before they are automatically deleted. To disable lease scavenging, set the parameter to -1. The minimum positive value must be greater than 86400 seconds (1 day).

Type

Integer.

Create

The default value is -1.

Search

The field is not available for search.

Notes

lease_scavenge_time is associated with the field use_lease_scavenge_time (see use flag).

logic_filter_rules

logic_filter_rules

This field contains the logic filters to be applied on the this shared network.

This list corresponds to the match rules that are written to the dhcpd configuration file.

Type

A/An Logic Filter rule struct array.

Create

The default value is:

empty

Search

The field is not available for search.

Notes

logic_filter_rules is associated with the field use_logic_filter_rules (see use flag).

ms_ad_user_data

ms_ad_user_data

The Microsoft Active Directory user related information.

Type

A/An Active Directory User Data struct.

Search

The field is not available for search.

Notes

The ms_ad_user_data cannot be updated.

ms_ad_user_data cannot be written.

name

name

The name of the IPv6 Shared Network.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The field is required on creation.

Search

The field is available for search via

  • ‘:=’ (case insensitive search)
  • ‘=’ (exact equality)
  • ‘~=’ (regular expression)

Notes

The name is part of the base object.

network_view

network_view

The name of the network view in which this shared network resides.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The default value is The default DNS view.

Search

The field is available for search via

  • ‘=’ (exact equality)

Notes

The network_view is part of the base object.

The network_view cannot be updated.

networks

networks

A list of networks belonging to the shared network

Each individual list item must be specified as an object containing a ‘_ref’ parameter to a network reference, for example:

[{
    "_ref": "network/ZG5zLm5ldHdvcmskMTAuMwLvMTYvMA",
}]

if the reference of the wanted network is not known, it is possible to specify search parameters for the network instead in the following way:

[{
    "_ref": {
        'network': '10.0.0.0/8',
    }
}]

note that in this case the search must match exactly one network for the assignment to be successful.

Type

A/An network object array.

This field supports nested return fields as described here.

Create

The field is required on creation.

Search

The field is not available for search.

Notes

The networks is part of the base object.

nextserver

nextserver

The name in FQDN and/or IPv4 Address of the next server that the host needs to boot.

Type

String.

Create

The default value is empty.

Search

The field is not available for search.

Notes

nextserver is associated with the field use_nextserver (see use flag).

options

options

An array of DHCP option structs that lists the DHCP options associated with the object.

Type

A/An DHCP option struct array.

Create

The default value is:

[ { 'name': 'dhcp-lease-time',
'num': 51,
'use_option': False,
'value': '43200',
'vendor_class': 'DHCP'}]

Search

The field is not available for search.

Notes

options is associated with the field use_options (see use flag).

pxe_lease_time

pxe_lease_time

The PXE lease time value of a shared network object. Some hosts use PXE (Preboot Execution Environment) to boot remotely from a server. To better manage your IP resources, set a different lease time for PXE boot requests. You can configure the DHCP server to allocate an IP address with a shorter lease time to hosts that send PXE boot requests, so IP addresses are not leased longer than necessary.

A 32-bit unsigned integer that represents the duration, in seconds, for which the update is cached. Zero indicates that the update is not cached.

Type

Unsigned integer.

Create

The default value is empty.

Search

The field is not available for search.

Notes

pxe_lease_time is associated with the field use_pxe_lease_time (see use flag).

static_hosts

static_hosts

The number of static DHCP addresses configured in the shared network.

Type

Unsigned integer.

Search

The field is not available for search.

Notes

The static_hosts cannot be updated.

static_hosts cannot be written.

total_hosts

total_hosts

The total number of DHCP addresses configured in the shared network.

Type

Unsigned integer.

Search

The field is not available for search.

Notes

The total_hosts cannot be updated.

total_hosts cannot be written.

update_dns_on_lease_renewal

update_dns_on_lease_renewal

This field controls whether the DHCP server updates DNS when a DHCP lease is renewed.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Notes

update_dns_on_lease_renewal is associated with the field use_update_dns_on_lease_renewal (see use flag).

use_authority

use_authority

Use flag for: authority

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_bootfile

use_bootfile

Use flag for: bootfile

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_bootserver

use_bootserver

Use flag for: bootserver

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ddns_generate_hostname

use_ddns_generate_hostname

Use flag for: ddns_generate_hostname

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ddns_ttl

use_ddns_ttl

Use flag for: ddns_ttl

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ddns_update_fixed_addresses

use_ddns_update_fixed_addresses

Use flag for: ddns_update_fixed_addresses

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ddns_use_option81

use_ddns_use_option81

Use flag for: ddns_use_option81

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_deny_bootp

use_deny_bootp

Use flag for: deny_bootp

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_enable_ddns

use_enable_ddns

Use flag for: enable_ddns

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ignore_client_identifier

use_ignore_client_identifier

Use flag for: ignore_client_identifier

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ignore_dhcp_option_list_request

use_ignore_dhcp_option_list_request

Use flag for: ignore_dhcp_option_list_request

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_ignore_id

use_ignore_id

Use flag for: ignore_id

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_lease_scavenge_time

use_lease_scavenge_time

Use flag for: lease_scavenge_time

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_logic_filter_rules

use_logic_filter_rules

Use flag for: logic_filter_rules

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_nextserver

use_nextserver

Use flag for: nextserver

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_options

use_options

Use flag for: options

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_pxe_lease_time

use_pxe_lease_time

Use flag for: pxe_lease_time

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

use_update_dns_on_lease_renewal

use_update_dns_on_lease_renewal

Use flag for: update_dns_on_lease_renewal

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

Fields List

Field Type Req R/O Base Search
authority Bool N N N N/A
bootfile String N N N N/A
bootserver String N N N N/A
comment String N N Y : = ~
ddns_generate_hostname Bool N N N N/A
ddns_server_always_updates Bool N N N N/A
ddns_ttl Unsigned int N N N N/A
ddns_update_fixed_addresses Bool N N N N/A
ddns_use_option81 Bool N N N N/A
deny_bootp Bool N N N N/A
dhcp_utilization Unsigned int N Y N N/A
dhcp_utilization_status String N Y N N/A
disable Bool N N N N/A
dynamic_hosts Unsigned int N Y N N/A
enable_ddns Bool N N N N/A
enable_pxe_lease_time Bool N N N N/A
extattrs Extattr N N N ext
ignore_client_identifier Bool N N N N/A
ignore_dhcp_option_list_request Bool N N N N/A
ignore_id String N N N N/A
ignore_mac_addresses [String] N N N N/A
lease_scavenge_time Integer N N N N/A
logic_filter_rules [struct] N N N N/A
ms_ad_user_data struct N Y N N/A
name String Y N Y : = ~
network_view String N N Y =
networks [obj] Y N Y N/A
nextserver String N N N N/A
options [struct] N N N N/A
pxe_lease_time Unsigned int N N N N/A
static_hosts Unsigned int N Y N N/A
total_hosts Unsigned int N Y N N/A
update_dns_on_lease_renewal Bool N N N N/A
use_authority Bool N N N N/A
use_bootfile Bool N N N N/A
use_bootserver Bool N N N N/A
use_ddns_generate_hostname Bool N N N N/A
use_ddns_ttl Bool N N N N/A
use_ddns_update_fixed_addresses Bool N N N N/A
use_ddns_use_option81 Bool N N N N/A
use_deny_bootp Bool N N N N/A
use_enable_ddns Bool N N N N/A
use_ignore_client_identifier Bool N N N N/A
use_ignore_dhcp_option_list_request Bool N N N N/A
use_ignore_id Bool N N N N/A
use_lease_scavenge_time Bool N N N N/A
use_logic_filter_rules Bool N N N N/A
use_nextserver Bool N N N N/A
use_options Bool N N N N/A
use_pxe_lease_time Bool N N N N/A
use_update_dns_on_lease_renewal Bool N N N N/A