[arin-tech-discuss] Developing Reg-RWS discovery requirements (was Re: Listing all reassignments?)

Brian Rak brak at gameservers.com
Tue Nov 29 13:44:37 EST 2011


That's not quite what I was looking for.  /nets/ get me a list of the 
assignments we have directly from ARIN, but it does not show the 
reassignments we have made within them.  To clarify, we are using 
/net/HANDLE/children right now.  For example: 
http://whois.arin.net/rest/net/NET-108-61-0-0-1/children

API calls to retrieve the CSV list would likely work, but it does seem 
weird to be requesting a CSV via XML calls.

On 11/29/2011 1:39 PM, Aaron Hughes wrote:
> On Tue, Nov 29, 2011 at 06:30:59PM +0000, Andy Newton wrote:
>> Brian,
>>
>> As you stated previously, we do have reassignment information available in CSV format via reports within ARIN Online. Would a RESTful call for kicking off the reassignment report and subsequent calls for checking the status of it and downloading the report solve your problem?
>>
>> Andy Newton,
>> Chief Engineer, ARIN
> This you can also do with a simple REST /nets/ query for a given orgid
>
>    // Step 1: Get the list of net handles owned by this org
>    $url = ARIN_WHOIS_URL . "/org/" . $orgid . "/nets";
>    $xml_doc = http_get_xml($url);
>    $res = Array();
>
>    if ($xml_doc == null) {
>      return $res;
>    }
>
> Then iterate over it..
>
>    foreach ($xml_doc->children() as $childElem) {
>      if (isset($childElem['handle'])) {
>        $netRefs[] = $childElem['handle'];
>      }
>    }
>
> Then nets..
> foreach ($netRefs as $netRef) {
>      $url = ARIN_WHOIS_URL . "/net/" . $netRef;
>      $xml_doc = http_get_xml($url);
>
> Then parse the XML.. etc..
>
> Cheers,
> Aaron
>
>
>> On Nov 23, 2011, at 2:17 PM, Brian Rak wrote:
>>
>>> We have our own database of what networks we have, and how they are divided.  There's a cron job that runs nightly that gets a list of all the reassignments from ARIN, and makes sure that they match what's in our database.  API calls for finding an available IP space within our allocations wouldn't really help us with this process.
>>>
>>> The biggest help to us would be a way to get a list of all the reallocations for a specific subnet, rather then just the first 256.
>>>
>>> On 11/23/2011 1:12 PM, Andy Newton wrote:
>>>> All,
>>>>
>>>> There would appear to be a need for the discovery of assignment/allocation information in the Reg-RWS (RESTful provisioning) system, as there have been questions on this list as to how to obtain this information and there were some private conversations with members about this type of functionality at the Philadelphia meeting. Using Whois-RWS has been proposed as a work around, but it is not optimal as that system is designed for another need.
>>>>
>>>> We had on the drawing board some RESTful methods for providing this information in Reg-RWS but have never moved forward with them in part because we are not confident that we are addressing the need properly. So if you would indulge us, maybe we can tease out the use cases and perhaps formulate solutions here on this list.
>>>>
>>>>  From what I have observed, the use case is that a registration client needs to identify the boundaries of some IP space contained in a particular network (i.e. identified by a NET HANDLE) and of a specified size to be used in a reassignment. Is this correct? Is there another way to characterize this?
>>>>
>>>> There would appear to be two solutions for this use case:
>>>>
>>>> 1) A new RESTful method that takes as input the NET HANDLE from where the space is to be taken and the size of the space being sought and returns a start IP address and an end IP address.
>>>>
>>>> 2) A new RESTful method that takes as input the NET HANDLE from where the space is to be taken and returns a list of IP address ranges (start address&   end address) that are not already reassigned.
>>>>
>>>> Do either of these solutions address the use case given? Would you solve this another way?
>>>>
>>>> Thanks in advance for your feedback.
>>>>
>>>> Andy Newton,
>>>> Chief Engineer, ARIN
>>> _______________________________________________
>>> arin-tech-discuss mailing list
>>> arin-tech-discuss at arin.net
>>> http://lists.arin.net/mailman/listinfo/arin-tech-discuss
>> -- 
>> arin-tech-discuss mailing list
>> arin-tech-discuss at arin.net
>> http://lists.arin.net/mailman/listinfo/arin-tech-discuss



More information about the arin-tech-discuss mailing list