[arin-tech-discuss] arin-tech-discuss Digest, Vol 40, Issue 8

Zhao, Sean Sean.Zhao at CenturyLink.com
Tue Nov 25 13:17:41 EST 2014


Thanks Brian!!
        You are right. "Checking the start IP and end IP is not sufficient.". But how do I check a netBlock is available. For example, I have 65.127.10.160/27. You don't want me to check the ips one by one for 32 times. It will make your server busy and make my performance slow. I see you mentioned /rest/report/reassignment/ROOT in your email? How do I use it? What is ROOT? Is an ip address? or it is netHandle? The server is whois? Or www.ote.arin.net? Can you give me an example?

Thanks again Brian!!!!

Thanks

Sean Zhao
sean.zhao at centurylink.com

-----Original Message-----
From: arin-tech-discuss-bounces at arin.net [mailto:arin-tech-discuss-bounces at arin.net] On Behalf Of arin-tech-discuss-request at arin.net
Sent: Tuesday, November 25, 2014 12:54 PM
To: arin-tech-discuss at arin.net
Subject: arin-tech-discuss Digest, Vol 40, Issue 8

Send arin-tech-discuss mailing list submissions to
        arin-tech-discuss at arin.net

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.arin.net/mailman/listinfo/arin-tech-discuss
or, via email, send a message with subject or body 'help' to
        arin-tech-discuss-request at arin.net

You can reach the person managing the list at
        arin-tech-discuss-owner at arin.net

When replying, please edit your Subject line so it is more specific than "Re: Contents of arin-tech-discuss digest..."


Today's Topics:

   1. Re: why do I have error 400 bad request reuturned? (Zhao, Sean)
   2. Re: why do I have error 400 bad request   reuturned? (Brian Rak)
   3. Re: why do I have error 400 bad request reuturned? (Zhao, Sean)


----------------------------------------------------------------------

Message: 1
Date: Tue, 25 Nov 2014 17:25:32 +0000
From: "Zhao, Sean" <Sean.Zhao at CenturyLink.com>
To: "'arin-tech-discuss at arin.net'" <arin-tech-discuss at arin.net>
Cc: "Talavagalu Matha Ajjaiah,  Chandrasekhara"
        <Chandrasekhara.Talavagalumathaajjaiah at CenturyLink.com>,        "Grimes,
        Ronald" <Ron.Grimes at CenturyLink.com>, "Sugandh, Nimesh"
        <Nimesh.Sugandh at CenturyLink.com>
Subject: Re: [arin-tech-discuss] why do I have error 400 bad request
        reuturned?
Message-ID:
        <C4D5F96B55BE8B43AB4BBB7EACB706ED64A6673C at PDDCWMBXEX504.ctl.intranet>
Content-Type: text/plain; charset="us-ascii"

Hi, Andy,
                I sent the previous email in the wrong email chain. Thanks for the response.

                Yes, I finally got the error response from Arin now. It is below. IP range overlaps? Why? I am assigning 65.127.10.160/27.
                So start ip and end ip are all clean.
http://whois.ote.arin.net/rest/ip/65.127.10.160 and http://whois.ote.arin.net/rest/ip/65.127.10.191
in case you don't have my request xml. Here is my request xml and error returned from Arin.
<net xmlns="http://www.arin.net/regrws/core/v1">
  <netBlocks>
    <netBlock>
      <cidrLength>27</cidrLength>
      <startAddress>65.127.10.160</startAddress>
      <type>S</type>
    </netBlock>
  </netBlocks>
  <netName>Q1125-65-127-10-160</netName>
  <orgHandle>CBC-208</orgHandle>
  <originASes>
    <originAS>209</originAS>
  </originASes>
  <parentNetHandle>NET-65-112-0-0-1</parentNetHandle>
  <version>4</version>
</net>



<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <error xmlns="http://www.arin.net/regrws/core/v1">
<additionalInfo/>
<code>E_ENTITY_VALIDATION</code>
<components>
<component>
<message>IP range overlaps with existing network(s).</message> <name>startAddress</name> </component> </components> <message>Payload entity failed to validate; see component messages for details.</message> </error>

Thanks

Sean Zhao
sean.zhao at centurylink.com

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20141125/0c950c0d/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 25 Nov 2014 12:38:11 -0500
From: Brian Rak <brak at gameservers.com>
To: "Zhao, Sean" <Sean.Zhao at CenturyLink.com>,
        "'arin-tech-discuss at arin.net'" <arin-tech-discuss at arin.net>
Subject: Re: [arin-tech-discuss] why do I have error 400 bad request
        reuturned?
Message-ID: <5474BE83.7080506 at gameservers.com>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

http://whois.arin.net/rest/net/NET-65-127-10-168-1/pft

Checking the start IP and end IP is not sufficient.

I've been down the path you're going.  The best solution I found is:

* Use /rest/report/reassignment/ROOT to get a list of all the reassignments for a particular network (it'll be in xls format, you need to convert it to something you can parse).
* Go through the list, issue DELETE's for any subnets that are not in your database
* Wait awhile (5-10 minutes)
* Go through and issue reassignments for any subnets that are new or that ARIN doesn't know about.

It's a large pain to get all the logic working correctly here, but if you don't do it you'll be running into overlaps and other errors forever.

I get the distinct feeling that not many people are actually working with the API at this point, so it's a pretty painful process.

On 11/25/2014 12:25 PM, Zhao, Sean wrote:
>
> Hi, Andy,
>
>                 I sent the previous email in the wrong email chain.
> Thanks for the response.
>
>                 Yes, I finally got the error response from Arin now.
> It is below. IP range overlaps? Why? I am assigning 65.127.10.160/27.
>
>                 So start ip and end ip are all clean.
>
> http://whois.ote.arin.net/rest/ip/65.127.10.160 and
> http://whois.ote.arin.net/rest/ip/65.127.10.191
>
> in case you don't have my request xml. Here is my request xml and
> error returned from Arin.
>
> <net xmlns="http://www.arin.net/regrws/core/v1">
>
>   <netBlocks>
>
>     <netBlock>
>
> <cidrLength>27</cidrLength>
>
> <startAddress>65.127.10.160</startAddress>
>
>       <type>S</type>
>
>     </netBlock>
>
>   </netBlocks>
>
> <netName>Q1125-65-127-10-160</netName>
>
> <orgHandle>CBC-208</orgHandle>
>
>   <originASes>
>
>     <originAS>209</originAS>
>
>   </originASes>
>
> <parentNetHandle>NET-65-112-0-0-1</parentNetHandle>
>
>   <version>4</version>
>
> </net>
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>
> <error xmlns="http://www.arin.net/regrws/core/v1">
>
> <additionalInfo/>
>
> <code>E_ENTITY_VALIDATION</code>
>
> <components>
>
> <component>
>
> <message>IP range overlaps with existing network(s).</message>
>
> <name>startAddress</name>
>
> </component>
>
> </components>
>
> <message>Payload entity failed to validate; see component messages for
> details.</message>
>
> </error>
>
> *Thanks*
>
> **
>
> *Sean Zhao*
>
> *sean.zhao at centurylink.com*
>
> This communication is the property of CenturyLink and may contain
> confidential or privileged information. Unauthorized use of this
> communication is strictly prohibited and may be unlawful. If you have
> received this communication in error, please immediately notify the
> sender by reply e-mail and destroy all copies of the communication and
> any attachments.
>
>
>
> _______________________________________________
> arin-tech-discuss mailing list
> arin-tech-discuss at arin.net
> http://lists.arin.net/mailman/listinfo/arin-tech-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20141125/83b20b6a/attachment-0001.html>

------------------------------

Message: 3
Date: Tue, 25 Nov 2014 17:53:44 +0000
From: "Zhao, Sean" <Sean.Zhao at CenturyLink.com>
To: "Zhao, Sean" <Sean.Zhao at CenturyLink.com>,
        "'arin-tech-discuss at arin.net'"  <arin-tech-discuss at arin.net>
Cc: "Talavagalu Matha Ajjaiah,  Chandrasekhara"
        <Chandrasekhara.Talavagalumathaajjaiah at CenturyLink.com>,        "Grimes,
        Ronald" <Ron.Grimes at CenturyLink.com>, "Sugandh, Nimesh"
        <Nimesh.Sugandh at CenturyLink.com>
Subject: Re: [arin-tech-discuss] why do I have error 400 bad request
        reuturned?
Message-ID:
        <C4D5F96B55BE8B43AB4BBB7EACB706ED64A66778 at PDDCWMBXEX504.ctl.intranet>
Content-Type: text/plain; charset="us-ascii"

Sorry, Andy.
                I found the reason. That was my bad. I am assigning 65.127.10.160 - 65.127.10.191. But 65.127.10.176 - 65.127.10.183 is assigned to COLDWELL BANKER BAIN.

Thanks

Sean Zhao
sean.zhao at centurylink.com

From: Zhao, Sean
Sent: Tuesday, November 25, 2014 12:26 PM
To: 'arin-tech-discuss at arin.net'
Cc: Talavagalu Matha Ajjaiah, Chandrasekhara; Grimes, Ronald; Sugandh, Nimesh
Subject: Re: [arin-tech-discuss] why do I have error 400 bad request reuturned?

Hi, Andy,
                I sent the previous email in the wrong email chain. Thanks for the response.

                Yes, I finally got the error response from Arin now. It is below. IP range overlaps? Why? I am assigning 65.127.10.160/27.
                So start ip and end ip are all clean.
http://whois.ote.arin.net/rest/ip/65.127.10.160 and http://whois.ote.arin.net/rest/ip/65.127.10.191
in case you don't have my request xml. Here is my request xml and error returned from Arin.
<net xmlns="http://www.arin.net/regrws/core/v1">
  <netBlocks>
    <netBlock>
      <cidrLength>27</cidrLength>
      <startAddress>65.127.10.160</startAddress>
      <type>S</type>
    </netBlock>
  </netBlocks>
  <netName>Q1125-65-127-10-160</netName>
  <orgHandle>CBC-208</orgHandle>
  <originASes>
    <originAS>209</originAS>
  </originASes>
  <parentNetHandle>NET-65-112-0-0-1</parentNetHandle>
  <version>4</version>
</net>



<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <error xmlns="http://www.arin.net/regrws/core/v1">
<additionalInfo/>
<code>E_ENTITY_VALIDATION</code>
<components>
<component>
<message>IP range overlaps with existing network(s).</message> <name>startAddress</name> </component> </components> <message>Payload entity failed to validate; see component messages for details.</message> </error>

Thanks

Sean Zhao
sean.zhao at centurylink.com<mailto:sean.zhao at centurylink.com>

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20141125/46a4aa9a/attachment.html>

------------------------------

_______________________________________________
arin-tech-discuss mailing list
arin-tech-discuss at arin.net
http://lists.arin.net/mailman/listinfo/arin-tech-discuss


End of arin-tech-discuss Digest, Vol 40, Issue 8
************************************************
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.



More information about the arin-tech-discuss mailing list