Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
DHCP6s API

This document provides a brief description of the DHCP6s OpEN APIs. It provides the following services:

Example C Application dhcp6s_example

Initialization

In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.

dhcp6s_example

dhcp6s_example.c is a sample application that demonstrates the use of OpEN's DHCP6s APIs. dhcp6s_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.

Sample Output

DHCP6s CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)##
show ipv6 dhcp [vrf <vrf-name>]
openapiDhcp6sAdminModeGet()
openapiDhcp6sServerDuidGet()
(Global-config Mode)##
service dhcpv6
openapiDhcp6sAdminModeSet()
(Priv-User Mode)##
show ipv6 dhcp statistics [<interface>]
openapiDhcp6sStatisticsGet()

(Priv-User Mode)##
clear ipv6 dhcp {{interface <u/s/p> statistics} | {statistics [vrf <vrf-name>]}} | openapiDhcp6sStatisticsClear() (Global-config Mode)##
ipv6 dhcp pool <name> | openapiDhcp6sPoolCreate() (Global-config Mode)##
no ipv6 dhcp pool <name> | openapiDhcp6sPoolDelete() (Dhcpv6-Pool_Config)##
dns-server <address1> | openapiDhcp6sPoolDnsServerAdd() (Dhcpv6-Pool_Config)##
no dns-server <address1> | openapiDhcp6sPoolDnsServerRemove() (Priv-User Mode)##
show ipv6 dhcp pool | openapiDhcp6sPoolEntryFirst()
openapiDhcp6sPoolEntryNext()
openapiDhcp6sPoolHostGetNext() (Priv-User Mode)##
show ipv6 dhcp pool | openapiDhcp6sPoolDnsServersGet()
openapiDhcp6sPoolDnsDomainsGet() (Dhcpv6-Pool_Config)##
domain-name <address1> | openapiDhcp6sPoolDnsDomainAdd() (Dhcpv6-Pool_Config)##
no domain-name <address1> | openapiDhcp6sPoolDnsDomainRemove() (Dhcpv6-Pool_Config)##
address prefix <ipv6-prefix> [lifetime {<valid-lifetime> <prefer-lifetime>} | infinite] | openapiDhcp6sPoolHostAdd() (Dhcpv6-Pool_Config)##
no address prefix <ipv6-prefix> | openapiDhcp6sPoolHostRemove() (Interface-Config)##
ipv6 dhcp server [preference <pref-value>] [rapid-commit] | openapiDhcp6sIntfModeServerSet() (Interface-Config)##
no ipv6 dhcp relay | openapiDhcp6sIntfRelayEntryDelete() (Interface-config)##
ipv6 dhcp relay [destination <relay-address>] [vrf <vrf-id>] [interface <relay-intf>] [remote-id <remote-id-string>] | openapiDhcp6sIntfModeRelaySet() (Interface-config)##
no ipv6 dhcp server | openapiDhcp6sIntfModeDelete() (Priv-User Mode)##
show running-config interface <interface> | openapiDhcp6sIntfModeGet() (Priv-User Mode)##
show ipv6 dhcp binding [vrf <vrf-name>] | openapiDhcp6sBindingCountGet()
openapiDhcp6sBindingGetNext() (Priv-User Mode)##
show ipv6 dhcp interface [<interface>] | openapiDhcpv6RelayEntryNextGet() (Priv-User Mode)##
clear ipv6 dhcp binding [vrf <vrf-name>] <ipv6-address> | openapiDhcp6sBindingClear() (Priv-User Mode)##
clear ipv6 dhcp binding [vrf <vrf-name>] | openapiDhcp6sBindingClearAll()