-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi,
First @ all. Thank you a lot for your work and this script.
We see a lot of potential by using it for movement of internet and internal services from one location of our company to an another company (all records must be set to new adresses).
-
System information:
We're using v3.70 ibcli.pl and Infoblox 6.8.1-210379. putty 0.63 UTF-8 -
Problem:
The DNS views and the network zone views contain spaces, as you can see below.
Our problem is, that we can't use the script for the views which contains spaces in name.
Changing the names is not an option cause it's an running system, and our customers won't accept an potential offline time (renaming Views could cause restarting of services). -
Output:
admgrossmro@10.160.120.10 > show zone view
internet
company iT intern location1 DNS
company iT intern location2 DNS
admgrossmro@10.160.120.10 > show network views
internet
company iT intern location1 Network
company iT intern location2 Network
admgrossmro@10.160.120.10 > configure zone company.intern add a_record ws123456-test 10.106.155.111 view company iT intern location1 DNS
^--- Unknown argument at marker (@it)
admgrossmro@10.160.120.10 > configure zone regioit.intern add a_record ws314426-test 10.106.155.111 view 'company iT intern location1 DNS'
^--- Unknown argument at marker (@it)
admgrossmro@10.160.120.10 > configure zone regioit.intern add a_record ws314426-test 10.106.155.111 view "company iT intern location1 DNS"
Error : API returned : Member value '"company%20iT%20intern%20location1%20DNS"' for field 'view' did not match any records. (1012)
- Uncomfortable workaround:
We can override the single variables value in each subfunction, but this is really not much comfortable. Example:
sub cli_add_a_rec {
...
views
#outcommented original line and overwritten static value for variable $view
#my ( $view ) = $line =~/ view (\S+)/ ;
my $view = 'company iT intern location1 DNS';
...
}
- Any idea?
Any idea, how we could use the script with our "space-containing-view-names"?
Thanks a lot
Kind regards
Robert