Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

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


Today's Topics:

   1. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC2-11-g2c3377e (Apache)
   2. [SCM] Netdot Git repository branch master updated.
      netdot-1.0.1-RC2-17-ga21e7b8 (Apache)
   3. [Netdot - Feature #1645] (Closed) Dynamic IPs in use
      ([email protected])
   4. [Netdot - Bug #1651] (In Progress) Can't insert   interface
      ([email protected])
   5. [Netdot - Bug #1653] unable to enable dhcp on ip  block
      ([email protected])
   6. [Netdot - Bug #1653] (Resolved) unable to enable  dhcp on ip
      block ([email protected])
   7. [Netdot - Bug #1650] (Resolved) build_topo_graph.pl       (Netdot
      1.0.1 RC2) - missing default variable (and fix)
      ([email protected])


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

Message: 1
Date: Thu, 12 Jul 2012 07:49:04 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC2-11-g2c3377e
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  2c3377e7736f1c40d4a0d16837de5c85d25c8852 (commit)
       via  11fb5d91ac97354724662aa3fbbe56a6075b209e (commit)
       via  ae0888e6a4d96282b8cc89ff7232c8eb91712f0c (commit)
       via  c5a6b685efa3ce50b2d1ee87245a610f446b659c (commit)
       via  986b1d3c6dd4c887216e45384419c600184daaca (commit)
       via  035dd5477c35ff5ace3be31b6ad239c90f86933a (commit)
       via  2ff4893897eb96632cd2a3fa217f9fa7c94f3ddd (commit)
       via  88164501772a55b70547d9f0c26ed215d1c98e55 (commit)
       via  83ab739c76dce5c21668a4c1c032e841e7ddbdde (commit)
      from  5cb54250e0508a7d4d0c04e970087c140f6233f6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2c3377e7736f1c40d4a0d16837de5c85d25c8852
Author: Carlos Vicente <[email protected]>
Date:   Thu Jul 12 10:22:51 2012 -0400

    Correction in ARP/FWT collection logic

diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index b18b9b1..f56945c 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -2651,7 +2651,6 @@ sub snmp_update {
                );
        }else{
            $logger->debug(sub{"Device::snmp_update: $host: Collect FWT option 
off. Skipping"});
-           return;
        }
     }
     if ( $argv{do_arp} ){
@@ -2663,7 +2662,6 @@ sub snmp_update {
                );
        }else{
            $logger->debug(sub{"Device::snmp_update: $host: Collect ARP option 
off. Skipping"});
-           return;
        }
     }
     $logger->info("Device::snmp_update: $host: Finished updating");

commit 11fb5d91ac97354724662aa3fbbe56a6075b209e
Author: Carlos Vicente <[email protected]>
Date:   Thu Jul 12 10:22:24 2012 -0400

    Correction in SQL query

diff --git a/lib/Netdot/Model/ArpCacheEntry.pm 
b/lib/Netdot/Model/ArpCacheEntry.pm
index 023254d..c7fac50 100644
--- a/lib/Netdot/Model/ArpCacheEntry.pm
+++ b/lib/Netdot/Model/ArpCacheEntry.pm
@@ -51,14 +51,16 @@ sub fast_insert{
     my $sth = $dbh->prepare_cached("INSERT INTO arpcacheentry 
                                     (arpcache,interface,ipaddr,physaddr)
                                     VALUES (?, ?, 
-                                    (SELECT id FROM ipblock WHERE address=? 
AND version=?), 
+                                    (SELECT id FROM ipblock WHERE address=? 
AND PREFIX=? AND version=?), 
                                     (SELECT id FROM physaddr WHERE 
address=?))");      
     # Now walk our list and insert
     foreach my $r ( @$list ){
+       my $plen = ($r->{version} == 6)? 128 : 32;
        eval {
            $sth->execute($r->{arpcache}, 
                          $r->{interface},
                          $r->{ipaddr},
+                         $plen,
                          $r->{version},
                          $r->{physaddr},
                );

commit ae0888e6a4d96282b8cc89ff7232c8eb91712f0c
Author: Carlos Vicente <[email protected]>
Date:   Thu Jul 12 10:11:15 2012 -0400

    Added Mysql commands to speed up upgrade

diff --git a/upgrade/updatedb b/upgrade/updatedb
index 0c0b2e3..efe6b93 100644
--- a/upgrade/updatedb
+++ b/upgrade/updatedb
@@ -68,6 +68,12 @@ my @statements = (
     );
 
 
+# Try to speed up the conversion as much as possible
+push @statements, 
+    "SET FOREIGN_KEY_CHECKS = 0;",
+    "SET UNIQUE_CHECKS = 0;",
+    "SET AUTOCOMMIT = 0;";
+
 # Add new Product type for device modules
 push @statements, "INSERT INTO producttype (name) VALUES ('Module');";
 
@@ -642,6 +648,12 @@ push @statements, (
 "ALTER TABLE savedqueries MODIFY querytext text NOT NULL;"
     );
 
+push @statements, 
+    "SET UNIQUE_CHECKS = 1;",
+    "SET FOREIGN_KEY_CHECKS = 1;",
+    "COMMIT;";
+
+
 &processdata(\@statements);
 
 &dbdisconnect();

commit c5a6b685efa3ce50b2d1ee87245a610f446b659c
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 11 17:33:49 2012 -0400

    Deal with interfaces without a name when generating DNS records

diff --git a/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm 
b/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm
index a583d0e..58537a3 100644
--- a/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm
+++ b/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm
@@ -95,8 +95,9 @@ sub get_name {
 sub get_name_from_interface {
     my ($self, $ip) = @_;
     my $ipaddr = $ip->address;
-    $logger->debug("Plugins::DeviceIpNamesByInt::get_name_from_interface: 
$ipaddr: Using Interface name");
     my $name = $ip->interface->name;
+    return unless $name;
+    $logger->debug("Plugins::DeviceIpNamesByInt::get_name_from_interface: 
$ipaddr: Using Interface name");
     
     foreach my $pat ( sort keys %ABBR ){
        my $conv = $ABBR{$pat};

commit 986b1d3c6dd4c887216e45384419c600184daaca
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 11 17:05:02 2012 -0400

    Fixed typo in Topology.pm

diff --git a/lib/Netdot/Topology.pm b/lib/Netdot/Topology.pm
index ec7d2bd..3baf951 100644
--- a/lib/Netdot/Topology.pm
+++ b/lib/Netdot/Topology.pm
@@ -455,7 +455,7 @@ sub get_dp_links {
  
         if ( !$rem_dev && $r_ip ) {
             foreach my $rem_ip ( split ';', $r_ip ) {
-               if ( $rem_dev = &_find_by_ip($r_ip, $allips) ){
+               if ( $rem_dev = &_find_by_ip($rem_ip, $allips) ){
                    last;
                }else {
                    $logger->debug("Topology::get_dp_links: Interface id $iid: 
".

commit 035dd5477c35ff5ace3be31b6ad239c90f86933a
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 11 16:39:38 2012 -0400

    Disable RRMX validation when importing a zone

diff --git a/lib/Netdot/Model/RRMX.pm b/lib/Netdot/Model/RRMX.pm
index c388434..4ce075d 100644
--- a/lib/Netdot/Model/RRMX.pm
+++ b/lib/Netdot/Model/RRMX.pm
@@ -20,12 +20,14 @@ my $MAX_PREFERENCE = 2**16 - 1;
 =head2 insert - Insert new RRMX object
 
     We override the base method to:
-     - Validate TTL
-     - Check for conflicting record types
-     - Validate preference
+    - Validate TTL
+    - Check for conflicting record types
+    - Validate preference
+    - Validate exchange
 
   Arguments:
-    See schema
+    All RRMX fields plus:
+    - validate - (flag) Enable/disable validation (default on)
   Returns:
     RRMX object
   Example:
@@ -52,7 +54,10 @@ sub insert {
     $argv->{ttl} = (defined($argv->{ttl}) && length($argv->{ttl}))? 
$argv->{ttl} : $rr->zone->default_ttl;
     $argv->{ttl} = $class->ttl_from_text($argv->{ttl});
 
-    $class->_validate_args($argv);
+    my $validate = delete $argv->{validate};
+    defined $validate or $validate = 1;
+
+    $class->_validate_args($argv) if $validate;
 
     # Avoid the "CNAME and other records" error condition
     if ( $rr->cnames ){
@@ -155,6 +160,9 @@ sub _validate_args {
                my $name = $argv->{exchange};
                my $domain = $z->name;
                $name =~ s/\.$domain$//;
+               if ( $name eq $domain ){
+                   $name = '@';
+               }
                my $rr = RR->search(name=>$name, zone=>$z)->first ||
                    $self->throw_user("Exchange ".$argv->{exchange}.
                                      " within active zone '$domain', but name 
'$name' does not exist");
diff --git a/lib/Netdot/Model/Zone.pm b/lib/Netdot/Model/Zone.pm
index 0a28a53..f83c038 100644
--- a/lib/Netdot/Model/Zone.pm
+++ b/lib/Netdot/Model/Zone.pm
@@ -209,13 +209,6 @@ sub insert {
     # Create '@' record if not already there
     my $apex = RR->find_or_create({name=>'@', zone=>$newzone});
     
-    # Add Two NS records if there aren't any yet
-    # Ideally the user should have a template zone to clone these from
-    unless ( $apex->ns_records ){
-       RRNS->insert({rr=>$apex, nsdname=>'ns1.'.$newzone->get_label});
-       RRNS->insert({rr=>$apex, nsdname=>'ns2.'.$newzone->get_label});
-    }
-
     $newzone->update_serial();
 
     # Create PTR records if necessary
@@ -714,6 +707,9 @@ sub import_records {
                $args{preference} = $rr->preference;
                $args{exchange}   = $rr->exchange;
                $args{ttl}        = $ttl;
+               # Validation may fail if A/AAAA recors for exchange do not 
exist when MX
+               # record is created. Disable when importing.
+               $args{validate}   = 0; 
                $logger->debug("$domain: Inserting RRMX $name, 
".$rr->exchange.", ttl: $ttl");
                $rrmx = RRMX->insert(\%args);
            }

commit 2ff4893897eb96632cd2a3fa217f9fa7c94f3ddd
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 11 16:39:03 2012 -0400

    Allow underscore also after a dot in RR label

diff --git a/lib/Netdot/Model/RR.pm b/lib/Netdot/Model/RR.pm
index 083bbd7..1de44ab 100644
--- a/lib/Netdot/Model/RR.pm
+++ b/lib/Netdot/Model/RR.pm
@@ -688,9 +688,9 @@ sub _validate_args {
        if ( $name =~ /[^A-Za-z0-9\.\-_@]/ ){
            $self->throw_user("Invalid name: $name. Contains invalid 
characters");
        }
-       # Check that underscore only appear at beginning
-       if ( $name =~ /.+_/ ){
-           $self->throw_user("Invalid name: $name. One underscore only allowed 
at beginning of string");
+       # Underscore only allowed at beginning of string or dotted section
+       if ( $name =~ /[^^.]_/ || $name =~ /_$/ ){
+           $self->throw_user("Invalid name: $name. Invalid underscores");
        }
        # Name must not start or end with a dash
        if ( $name =~ /^\-/ || $name =~ /\-$/ ){

commit 88164501772a55b70547d9f0c26ed215d1c98e55
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 11 16:37:22 2012 -0400

    Deal with CIDR addresses properly when calling Ipblock->insert

diff --git a/lib/Netdot/Model/Ipblock.pm b/lib/Netdot/Model/Ipblock.pm
index bda0407..e2d3dfe 100644
--- a/lib/Netdot/Model/Ipblock.pm
+++ b/lib/Netdot/Model/Ipblock.pm
@@ -150,7 +150,7 @@ sub search {
        $args{status} = $statusid;
     }
     if ( defined $args{address} ){
-       if ( $args{address} =~ /\/\d+$/ ){
+       if ( $args{address} =~ /.+\/\d+$/ ){
            # Address is in CIDR format
            my ($address, $prefix) = split /\//, $args{address};
            $args{address} = $class->ip2int($address);
@@ -583,6 +583,11 @@ sub insert {
     $class->throw_fatal("Missing required arguments: address")
        unless ( exists $argv->{address} );
 
+    if ( $argv->{address} =~ /.+\/\d+$/ ){
+       # Address is in CIDR format
+       ($argv->{address}, $argv->{prefix}) = split /\//, $argv->{address};
+    }
+
     unless ( $argv->{status} ){
        if (defined $argv->{prefix} && 
            ($class->matches_v4($argv->{address}) && $argv->{prefix} eq '32') 
|| 

commit 83ab739c76dce5c21668a4c1c032e841e7ddbdde
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 11 16:20:23 2012 -0400

    Added missing colons in host page

diff --git a/htdocs/management/host.html b/htdocs/management/host.html
index c9035f3..c0543b8 100644
--- a/htdocs/management/host.html
+++ b/htdocs/management/host.html
@@ -922,7 +922,7 @@ foreach my $o ( values %rrs ) {
        print '<div class="containerheadright">';
 
        #new rrptr
-       push( @field_headers, "IP");
+       push( @field_headers, "IP:");
        push( @cell_data, "<input name='RRPTR__NEW__ipblock' value='' 
type='text'>");
        $ui->add_to_fields(table=>'RRPTR', edit=>1, fields=>['ptrdname', 'ttl'],
                           field_headers=>\@field_headers, 
cell_data=>\@cell_data,
@@ -945,7 +945,7 @@ foreach my $o ( values %rrs ) {
        print '<div class="containerbody">';
        if (my @ptrs = $o->ptr_records()) {
            foreach my $ptr (@ptrs) {
-               push( @field_headers, "IP");
+               push( @field_headers, "IP:");
                if ($edit) {
                    push( @cell_data, "<input name='RRPTR__".$ptr."__ipblock' 
value='".$ptr->ipblock->address."' type='text'>" );
                } else {

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

Summary of changes:
 htdocs/management/host.html                    |    4 ++--
 lib/Netdot/Model/ArpCacheEntry.pm              |    4 +++-
 lib/Netdot/Model/Device.pm                     |    2 --
 lib/Netdot/Model/Ipblock.pm                    |    7 ++++++-
 lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm |    3 ++-
 lib/Netdot/Model/RR.pm                         |    6 +++---
 lib/Netdot/Model/RRMX.pm                       |   18 +++++++++++++-----
 lib/Netdot/Model/Zone.pm                       |   10 +++-------
 lib/Netdot/Topology.pm                         |    2 +-
 upgrade/updatedb                               |   12 ++++++++++++
 10 files changed, 45 insertions(+), 23 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 2
Date: Thu, 12 Jul 2012 08:40:23 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch master
        updated.        netdot-1.0.1-RC2-17-ga21e7b8
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot Git repository".

The branch, master has been updated
       via  a21e7b8322f8e1162461db03048bd8e98e4ac273 (commit)
       via  2c3377e7736f1c40d4a0d16837de5c85d25c8852 (commit)
       via  11fb5d91ac97354724662aa3fbbe56a6075b209e (commit)
       via  ae0888e6a4d96282b8cc89ff7232c8eb91712f0c (commit)
       via  c5a6b685efa3ce50b2d1ee87245a610f446b659c (commit)
       via  986b1d3c6dd4c887216e45384419c600184daaca (commit)
       via  035dd5477c35ff5ace3be31b6ad239c90f86933a (commit)
       via  2ff4893897eb96632cd2a3fa217f9fa7c94f3ddd (commit)
       via  88164501772a55b70547d9f0c26ed215d1c98e55 (commit)
       via  83ab739c76dce5c21668a4c1c032e841e7ddbdde (commit)
       via  5cb54250e0508a7d4d0c04e970087c140f6233f6 (commit)
       via  05bfd9c3f4a49a67f00a2638d59b3bd60d8453be (commit)
       via  5b29dd3f57041e2dd80d733f7c824b1520ff6f9d (commit)
       via  cf066e261c8e9f504158343a523e67c863f9d84a (commit)
       via  055314ba08376eb9a4acf5bcec86b8c9af51bd9b (commit)
       via  acdd1fbc09becb64cd3e6fb596d6b9c9b8716ff1 (commit)
       via  aa0a4a7c98ffecc13329966d5dc56e1db2fb148f (commit)
       via  d3786afe4583192f86db8135fe164d9f54eb5771 (commit)
       via  328fbc69b1c802620224755e7fb10da0dc9f398d (commit)
      from  e155543b549d2f0bfefd0fa71784b059b7685620 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a21e7b8322f8e1162461db03048bd8e98e4ac273
Merge: e155543 2c3377e
Author: Carlos Vicente <[email protected]>
Date:   Thu Jul 12 11:21:56 2012 -0400

    Merge branch 'netdot-1.0'


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

Summary of changes:
 etc/default_data                               |    2 +-
 htdocs/management/host.html                    |    4 ++--
 lib/Netdot.pm                                  |   24 ++++++++++++++++++++++--
 lib/Netdot/Model/ArpCacheEntry.pm              |    4 +++-
 lib/Netdot/Model/Device.pm                     |   11 +++++------
 lib/Netdot/Model/Ipblock.pm                    |    7 ++++++-
 lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm |    3 ++-
 lib/Netdot/Model/RR.pm                         |    6 +++---
 lib/Netdot/Model/RRMX.pm                       |   18 +++++++++++++-----
 lib/Netdot/Model/Zone.pm                       |   10 +++-------
 lib/Netdot/Topology.pm                         |    2 +-
 upgrade/pre_updatedb                           |    4 ++--
 upgrade/updatedb                               |   12 ++++++++++++
 13 files changed, 75 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 3
Date: Thu, 12 Jul 2012 09:00:09 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1645] (Closed) Dynamic IPs
        in use
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1645 has been updated by Carlos Vicente.

Status changed from New to Closed
Resolution set to wontfix


----------------------------------------
Feature #1645: Dynamic IPs in use
https://osl.uoregon.edu/redmine/issues/1645

Author: Emmanuel Togo
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: wontfix


To be able to easily determine actual number of IPs in use from dhcp scope. 
This I believe will help administrators know whether they are running out of IP 
address space for a particular DHCP scope.
my suggestion is to color dynamic IPs in use just as is done for the discovered 
IPs


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

Message: 4
Date: Thu, 12 Jul 2012 10:33:49 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1651] (In Progress) Can't
        insert  interface
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1651 has been updated by Carlos Vicente.

Status changed from New to In Progress
Assignee set to Carlos Vicente

Hi Alex,

It seems that something went wrong during the upgrade. The physaddr column in 
the interface table should have been modified from "NULL=NO" to "NULL=yes", 
along with all the other foreign key columns in the database. I have just 
tested this myself and it works OK.
Did you see any errors in the file upgrade/error.log?

Thanks.
----------------------------------------
Bug #1651: Can't insert interface 
https://osl.uoregon.edu/redmine/issues/1651

Author: Alexandros Tsourakis
Status: In Progress
Priority: Normal
Assignee: Carlos Vicente
Category: 
Target version: 
Resolution: 


Hi,

Since upgrading to 1.0.1-RC2 I get these errors on some Cisco devices:

ERROR: Transaction aborted: Error while inserting Interface: Some fields cannot 
be null

Error details: Can't insert new Interface: DBD::mysql::st execute failed: 
Column 'physaddr' cannot be null [for Statement "INSERT INTO interface 
(monitored, number, oper_status, dp_remote_type, ignore_ip, 
bpdu_filter_enabled, physaddr, speed, neighbor_missed, root_guard_enabled, 
bpdu_guard_enabled, admin_status, auto_dns, loop_guard_enabled, neighbor_fixed, 
dp_remote_id, name, snmp_managed, device, description, monitorstatus, 
dp_remote_ip, doc_status, overwrite_descr, type, dp_remote_port)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?, ?)
" with ParamValues: 0=0, 1='10501', 2='up', 3=undef, 4=0, 5=0, 6=undef, 
7=10000000000, 8=0, 9=0, 10=0, 11='up', 12='1', 13=0, 14=0, 15=undef, 16='Nu0', 
17=1, 18='416', 19=undef, 20='3', 21=undef, 22='snmp', 23=1, 24='other', 
25=undef] at /usr/share/perl5/DBIx/ContextualFetch.pm line 52.
 at /usr/local/netdot/lib/Netdot/Model/Device.pm line 5591.


>From what i've noticed, these are produced for non 'standard' interfaces like 
>Null0 for example.

If I manually add an interface with the same number (in this example 10501) and 
then rescan the device it completes just fine and ignores the fact that it 
can't get a 'physaddr' for this interface.

Cheers, Alex.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

Message: 5
Date: Thu, 12 Jul 2012 10:47:29 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1653] unable to enable dhcp on
        ip      block
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1653 has been updated by Carlos Vicente.

Target version changed from 1.0.1-RC1 to 1.0.1-RC3
Resolution set to fixed

Thank you!
----------------------------------------
Bug #1653: unable to enable dhcp on ip block
https://osl.uoregon.edu/redmine/issues/1653

Author: Emmanuel Togo
Status: New
Priority: Urgent
Assignee: Carlos Vicente
Category: DHCP
Target version: 1.0.1-RC3
Resolution: fixed


no save button to enable dhcp on an ip block


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

Message: 6
Date: Thu, 12 Jul 2012 10:47:57 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1653] (Resolved) unable to
        enable  dhcp on ip block
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1653 has been updated by Carlos Vicente.

Status changed from New to Resolved


----------------------------------------
Bug #1653: unable to enable dhcp on ip block
https://osl.uoregon.edu/redmine/issues/1653

Author: Emmanuel Togo
Status: Resolved
Priority: Urgent
Assignee: Carlos Vicente
Category: DHCP
Target version: 1.0.1-RC3
Resolution: fixed


no save button to enable dhcp on an ip block


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

Message: 7
Date: Thu, 12 Jul 2012 10:48:28 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1650] (Resolved)
        build_topo_graph.pl     (Netdot 1.0.1 RC2) - missing default variable 
(and
        fix)
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1650 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version changed from 1.0.1-RC2 to 1.0.1-RC3
Resolution set to fixed

Thank you!
----------------------------------------
Bug #1650: build_topo_graph.pl (Netdot 1.0.1 RC2) - missing default variable 
(and fix)
https://osl.uoregon.edu/redmine/issues/1650

Author: Mark Favas
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: Netdot
Target version: 1.0.1-RC3
Resolution: fixed


Currently build_topo_graph fails with:
root@black:# /opt/netdot/bin/build_topo_graph.pl -n -f 
/opt/netdot/htdocs/img/graphs/whole_network_no_vlans.png
Use of uninitialized value $string in pattern match (m//) at 
/opt/netdot/lib/Netdot/Model/Ipblock.pm line 1281.
Use of uninitialized value $string in pattern match (m//) at 
/opt/netdot/lib/Netdot/Model/Ipblock.pm line 1300.
Use of uninitialized value $argv{"name"} in pattern match (m//) at 
/opt/netdot/lib/Netdot/Model/Device.pm line 131.
Cannot find root device:  at /opt/netdot/bin/build_topo_graph.pl line 70.
root@black:#

Suggested fix is:
--- build_topo_graph.pl-orig    2012-06-19 04:53:33.000000000 +0800
+++ build_topo_graph.pl 2012-06-28 09:29:49.000000000 +0800
@@ -10,7 +10,7 @@
 
 # Default parameters
 my $nms = Netdot->config->get('NMS_DEVICE');
-my %self = ( root=>$nms, vlans=>0, names=>0, depth=>99999 );
+my %self = ( root=>$nms, start=>$nms, vlans=>0, names=>0, depth=>99999 );
 
 my $USAGE = <<EOF;
  





-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 64, Issue 7
*******************************************

Reply via email to