|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DHCPConfig
The DHCPConfig interface defines the methods that are used to mainpulate the DHCP configuration data associated with a device. The DHCPConfig contains two distinct categories of information: the operations that are to be performed by the CNR extension point (e.g., put, remove, or get), and the inform data which is additional data that can be used by the provisioning group.
The options are grouped into "dictionaries" that correspond to the CNR/DHCP extension dictionaries: request, response, environment, pre-dns-environment, and inform. The inform dictionary is a BAC specific dictionary used to communicate information to/from the BAC CNR extension point.
The DHCP options are identified by a String option name and have a corresponding value that can be either a single-valued (String or binary BLOB byte[]) or multivalued (a List of Strings). The option names for the request, response, and environment dictionaries must conform to the CNR/DHCP option name syntax as defined in the Network Registrar CLI Reference Guide, Appendix D.
DHCPDict| Method Summary | |
|---|---|
void |
addCommand(DHCPCmd command)
Add the given DHCPCmd to the list of operations to perform. |
boolean |
containsCommand(DHCPCmd command)
Search the list of operations to perform for the given operation. |
boolean |
containsCommandForOption(DHCPDict dictionary,
CNRNames optionName)
Return true if the list of operations to perform contains an operation that operates on the specified option, otherwise false is returned. |
boolean |
containsCommandForOption(DHCPDict dictionary,
String optionName)
Return true if the list of operations to perform contains an operation that operates on the specified option, otherwise false is returned. |
List<DHCPCmd> |
getCommandList(CNRExtPt extension)
Return an unmodifiable command list. |
com.cisco.bac.type.DeviceIdentifier |
getDeviceID()
Get the device ID for this DHCP configuration. |
String |
getInformOption(String optionName)
Get a property from the INFORM dictionary. |
void |
removeCommand(DHCPCmd command)
Remove the given DHCPCmd from the list of operations to perform. |
void |
setInformOption(String optionName,
String optionValue)
Add a property to the INFORM dictionary. |
| Method Detail |
|---|
com.cisco.bac.type.DeviceIdentifier getDeviceID()
void addCommand(DHCPCmd command)
command - the operation to add
IllegalArgumentException - if the given command is null.
FeatureNotEnabledException - if this DHCP configuration will be
sent to servers running older versions of BPR that do not support
the features being used.void removeCommand(DHCPCmd command)
command - the DHCP command operation to removeboolean containsCommand(DHCPCmd command)
command - the DHCP command operation to search for
boolean containsCommandForOption(DHCPDict dictionary,
CNRNames optionName)
dictionary - The dictionary to restrict the search to.optionName - The name of the option to search for.
boolean containsCommandForOption(DHCPDict dictionary,
String optionName)
dictionary - The dictionary to restrict the search to.optionName - The name of the option to search for.
List<DHCPCmd> getCommandList(CNRExtPt extension)
extension - The CNR extension point for which commands will execute
CNRExtPtString getInformOption(String optionName)
optionName - the option name
IllegalArgumentException - if null option name specified
void setInformOption(String optionName,
String optionValue)
optionName - the option nameoptionValue - the option value
IllegalArgumentException - if any of the input parameters
are null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||