3.1.4.15 ValidateDhcpReservation
The ValidateDhcpReservation event captures the common validation rules for the DhcpReservation instance. The rest of the section assumes the DhcpReservation instance to be validated is passed as a parameter with the name Param_dhcpReservation.
The following validations MUST pass for the DhcpReservation instance to be valid:
Param_dhcpReservation is not NULL.
Param_dhcpReservation.address is not NULL.
Param_dhcpReservation.address is valid.
Param_dhcpReservation.parentScope.SubnetMask is valid.
Param_dhcpReservation.parentScope.ScopeId is valid.
Param_dhcpReservation.name is not NULL.
Param_dhcpReservation.name is not whitespace.
Param_dhcpReservation.parentScope is not NULL.
Param_dhcpReservation.parentScope.RecordId is not 0.
Param_dhcpReservation.parentScope.ServerName is not Null or a whitespace.
If this is an IPv4 reservation, then check the following:
Param_dhcpReservation.MacAddress is not NULL or a whitespace.
Param_dhcpReservation.MacAddress is hex and its length is less than or equal to 130 bytes.
Param_dhcpReservation.servingClientsType is DhcpServingClientsType.Dhcp or DhcpServingClientsType.Bootp or DhcpServingClientsType.Both.
If this is an IPv6 reservation, then check the following:
Param_dhcpReservation.Duid is not NULL or a whitespace.
Param_dhcpReservation.Duid is hex and its length is less than or equal to 130 bytes.