[racktables-users] Re: Selecting multiple IP addresses

  • From: Denis Ovsienko <infrastation@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Tue, 13 Sep 2011 14:08:20 +0400

02.09.2011, 19:19, "Robert Parten" <rparten@xxxxxxxxxxxx>:
> Is there a patch (either from the community or perhaps this is a new feature 
> request) where I can have someone select or type in a range of IP's and add a 
> name to those ranges and then update the IPv4Network table with that 
> information?
>

It is easy, except address descriptions are not stored in IPv4Network, they are 
in IPv4Address. You can generate a lot of identical descriptions with a 
for-cycle, SQL INSERT and INET_ATON(). Beware this requires some precision and 
bounds checking not to mess existing rows up.

-- 
 Denis Ovsienko

Other related posts: