3.19.4.4.1.46 ReloadDnsZonesDelegate

The ReloadDnsZonesDelegate processing is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.ReloadDnsZones. The IpamOperationWithProgressParameter instance in this case MUST be of type ReloadDnsZonesParameters.

This operation is used to reload DNS zones. The following are the steps involved. In these steps, at any time a fault is generated, the SetOverallStatus SHOULD be called with the fault details: 

  1. If IpamOperationWithProgressParameter is NULL or not of type ReloadDnsZonesParameters, generate an appropriate SOAP fault (as specified in section 2.2.2.1). Project IpamOperationWithProgressParameter in a local variable as ReloadDnsZonesParameters.  

  2. If ReloadDnsZonesParameters is NULL or ReloadDnsZonesParameters.ServerZoneIds is NULL or ReloadDnsZonesParameters.ServerZoneIds.Count is 0 or ReloadDnsZonesParameters.ZoneType is equal to ZoneLookupType.None, generate an appropriate SOAP fault.  

  3. If the ReloadDnsZonesParameters.zoneType is equal to DNSForwardLookupZone, for each object specified by ReloadDnsZonesParameters.ServerZoneIds, put the object in a local variable ServerZoneId and perform the following steps: 

  4. Call the procedure GetDnsServerZoneFromTable in ADM_DNSServerForwardLookupZoneTable passing ServerZoneId as parameter and assign output to a local variable serverZone. If serverZone is NULL, generate an appropriate SOAP fault. 

  5. Perform the reload operation on serverZone and call SetOverallStatus with Success and 100 percent completion. 

  6. If the ReloadDnsZonesParameters.zoneType is equal to DNSReverseLookupZone, for each object specified by ReloadDnsZonesParameters.ServerZoneIds, put the object in a local variable ServerZoneId and perform the following steps:

  7. Call the procedure GetDnsServerReverseLookupZoneFromTable in ADM_DNSServerReverseLookupZoneTable passing ServerZoneId as parameter and assign output to a local variable serverZone. If serverZone is NULL, generate an appropriate SOAP fault.

  8. Perform the reload operation on serverZone.

  9. call SetOverallStatus with Success and 100 percent completion.