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. [Netdot - Bug #1681] (New) Netmask for default IPv4       Link
      Local ipblock is wrong ([email protected])
   2. [Netdot - Bug #1681] (Resolved) Netmask for default       IPv4 Link
      Local ipblock is wrong ([email protected])
   3. [SCM] UNNAMED PROJECT branch netdot-1.0 updated.
      netdot-1.0.1-4-g333a7b8 ([email protected])
   4. [SCM] UNNAMED PROJECT branch master updated.
      netdot-1.0.1-13-g0e6ffd9 ([email protected])
   5. [Netdot - Bug #1678] (Resolved) Latest OS warning false
      positive in Model/OS report ([email protected])
   6. [Netdot - Bug #1676] (Resolved) DNS Name Problems with
      suspicious characters #2 ([email protected])
   7. [SCM] UNNAMED PROJECT branch netdot-1.0 updated.
      netdot-1.0.1-6-g71d6073 ([email protected])


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

Message: 1
Date: Mon, 20 Aug 2012 18:16:41 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1681] (New) Netmask for default
        IPv4    Link Local ipblock is wrong
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1681 has been reported by James Andrewartha.

----------------------------------------
Bug #1681: Netmask for default IPv4 Link Local ipblock is wrong
https://osl.uoregon.edu/redmine/issues/1681

Author: James Andrewartha
Status: New
Priority: Low
Assignee: 
Category: 
Target version: 
Resolution: 


In etc/default_data, line 312 should be:
INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('2851995648', '16', '4', '1', '1', '1', 'IPv4 Link Local');
as it's 169.254.0.0/16, not /8.


-- 
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: 2
Date: Mon, 20 Aug 2012 23:28:19 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1681] (Resolved) Netmask for
        default IPv4 Link Local ipblock is wrong
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1681 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.2
Resolution set to fixed


Fixed. Thank you.
----------------------------------------
Bug #1681: Netmask for default IPv4 Link Local ipblock is wrong
https://osl.uoregon.edu/redmine/issues/1681#change-2949

Author: James Andrewartha
Status: Resolved
Priority: Low
Assignee: Carlos Vicente
Category: 
Target version: 1.0.2
Resolution: fixed


In etc/default_data, line 312 should be:
INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('2851995648', '16', '4', '1', '1', '1', 'IPv4 Link Local');
as it's 169.254.0.0/16, not /8.


-- 
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: 3
Date: Mon, 20 Aug 2012 23:30:56 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] UNNAMED PROJECT branch netdot-1.0
        updated.        netdot-1.0.1-4-g333a7b8
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 "UNNAMED PROJECT".

The branch, netdot-1.0 has been updated
       via  333a7b88f4249ed9d6c6abfe27f7b970f83ca330 (commit)
       via  e15ad561bb08b3fa480108dcc9504d0b1aa15555 (commit)
      from  8fe5a3e0928cf7ed63e0d4f1b19acc51f2c0bf9a (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 333a7b88f4249ed9d6c6abfe27f7b970f83ca330
Author: Carlos Vicente <[email protected]>
Date:   Tue Aug 21 02:30:59 2012 -0400

    Fix for #1678 (Latest OS warning false positive in Model/OS report)

diff --git a/htdocs/reports/device_inventory.html 
b/htdocs/reports/device_inventory.html
index 6c9ae10..ab2bb11 100644
--- a/htdocs/reports/device_inventory.html
+++ b/htdocs/reports/device_inventory.html
@@ -223,7 +223,7 @@ if ( $report_type eq 'product' || $report_type eq 
'product_monitored' ){
                my @row = ();
                push( @row, " ", " " );
                my $class = " ";
-               if ( $latest_os && ($os ne $latest_os) ){
+               if ( $product->latest_os && ($os ne $product->latest_os) ){
                    $class = 'warn';
                }
                push( @row, "<a class=\"$class\" 
href=\"../generic/search_obj.html?table=Device&product=$prod&os=$os&res=1\">" . 

commit e15ad561bb08b3fa480108dcc9504d0b1aa15555
Author: Carlos Vicente <[email protected]>
Date:   Tue Aug 21 02:27:03 2012 -0400

    Fix for #1681 (Netmask for default IPv4 Link Local ipblock is wrong)

diff --git a/etc/default_data b/etc/default_data
index f9d2b3e..6fac1f0 100755
--- a/etc/default_data
+++ b/etc/default_data
@@ -309,7 +309,7 @@ INSERT INTO person (lastname, firstname, username, 
user_type, password) VALUES (
 INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('3232235520', '16', '4', '1', '1', '1', 'RFC-1918');
 INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('2886729728', '12', '4', '1', '1', '1', 'RFC-1918');
 INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('167772160', '8', '4', '1', '1', '1', 'RFC-1918');
-INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('2851995648', '8', '4', '1', '1', '1', 'IPv4 Link Local');
+INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('2851995648', '16', '4', '1', '1', '1', 'IPv4 Link Local');
 INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('42540766411282592856903984951653826560', '32', '6', '1', 
'1', '1', 'RFC-3849');
 INSERT INTO ipblock (address, prefix, version, status, owner, used_by, 
description) VALUES ('338288524927261089654018896841347694592', '10', '6', '1', 
'1', '1', 'Link-Local Unicast');
 

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

Summary of changes:
 etc/default_data                     |    2 +-
 htdocs/reports/device_inventory.html |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
UNNAMED PROJECT


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

Message: 4
Date: Mon, 20 Aug 2012 23:32:07 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] UNNAMED PROJECT branch master updated.
        netdot-1.0.1-13-g0e6ffd9
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 "UNNAMED PROJECT".

The branch, master has been updated
       via  0e6ffd9c38bc30e73880e5c2c5ba3bfafc111d17 (commit)
       via  333a7b88f4249ed9d6c6abfe27f7b970f83ca330 (commit)
       via  e15ad561bb08b3fa480108dcc9504d0b1aa15555 (commit)
       via  8fe5a3e0928cf7ed63e0d4f1b19acc51f2c0bf9a (commit)
       via  8344306be753d818734fe8db948075df49563aec (commit)
      from  afe544e68e05e9b9cf74e9bd812266ee6199d801 (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 0e6ffd9c38bc30e73880e5c2c5ba3bfafc111d17
Merge: 333a7b8 afe544e
Author: Carlos Vicente <[email protected]>
Date:   Tue Aug 21 02:32:00 2012 -0400

    Merge branch 'master' of 
git+ssh://netdot.uoregon.edu//home/netdot/git/netdot


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

Summary of changes:
 etc/default_data                     |    2 +-
 htdocs/reports/device_inventory.html |    2 +-
 lib/Netdot/LDAP.pm                   |   11 +++++++----
 lib/Netdot/Model/DhcpScope.pm        |    7 ++++---
 4 files changed, 13 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
UNNAMED PROJECT


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

Message: 5
Date: Mon, 20 Aug 2012 23:33:30 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1678] (Resolved) Latest OS
        warning false positive in Model/OS report
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1678 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.2
Resolution set to fixed


Thank you
----------------------------------------
Bug #1678: Latest OS warning false positive in Model/OS report
https://osl.uoregon.edu/redmine/issues/1678#change-2950

Author: James Andrewartha
Status: Resolved
Priority: Low
Assignee: Carlos Vicente
Category: 
Target version: 1.0.2
Resolution: fixed


htdocs/report/device_inventory.html line 223 should be
if ( $product->latest_os && ($os ne $product->latest_os) ){
as $latest_os is the string "(recommended: ".$product->latest_os.")", not the 
product latest OS.


-- 
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: Mon, 20 Aug 2012 23:40:03 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1676] (Resolved) DNS Name
        Problems        with suspicious characters #2
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1676 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version changed from 1.0 to 1.0.2
Resolution set to fixed


Thank you
----------------------------------------
Bug #1676: DNS Name Problems with suspicious characters #2
https://osl.uoregon.edu/redmine/issues/1676#change-2951

Author: moe kraus
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DNS
Target version: 1.0.2
Resolution: fixed


Hi, 

there is an further bug with a combination of following dns record:

RR: interface-name-.device-name

This is breaking the ip address to dns record association, so I suggest to add 
another regexp statement:

        $name =~ s/-\./\./g;


Kind Regards 

Moe Kraus

--- original bug ---
Hi There,

we experiencing problems with some bad interface names with characters that 
aren't allowed in DNS, like a hash("#") or brackets ("("")").

I replaced the Expression with one that only allows names that can be used as 
DNS name.

*DeviceIpNamesByInt.pm*

# left only valid chars
$name =~ s/[^a-zA-Z0-9\.]/-/g;
# only one minus "-" in row
$name =~ s/[-]+/-/g;
# remove minus from start and end
$name =~ s/^-+|-+$//g;

Cheerz

Moe


-- 
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: Tue, 21 Aug 2012 00:49:08 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] UNNAMED PROJECT branch netdot-1.0
        updated.        netdot-1.0.1-6-g71d6073
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 "UNNAMED PROJECT".

The branch, netdot-1.0 has been updated
       via  71d6073cb36396e50894173afb86efe6e06485c6 (commit)
       via  9c1ec8ebcc7b9bcb7ef259d456e4eb34390357de (commit)
      from  333a7b88f4249ed9d6c6abfe27f7b970f83ca330 (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 71d6073cb36396e50894173afb86efe6e06485c6
Author: Carlos Vicente <[email protected]>
Date:   Tue Aug 21 03:49:10 2012 -0400

    Allow insertion of new A/AAAA record from ip.html page, even if name 
already exists

diff --git a/htdocs/management/ip.html b/htdocs/management/ip.html
index bd65248..aac2898 100644
--- a/htdocs/management/ip.html
+++ b/htdocs/management/ip.html
@@ -49,6 +49,8 @@ $show_ch_util      => 0
 $state_digest      => undef
 @link_zones        => undef
 @new_rev_zones     => undef
+$new_a_name        => undef
+$new_a_zone        => undef
 $template_zone_for_rev => undef
 $new_blocks_list   => undef
 $new_blocks_status => undef
@@ -568,6 +570,30 @@ if( $_action eq "SHOW_ROOTS" && !$id && $rootversion ){
     }
 
 
#######################################################################################
+# ADD_A_RECORD
+#
+#######################################################################################
+}elsif ( $_action eq 'ADD_A_RECORD' ){
+
+    unless ( $manager && $manager->can($user, "edit", $o) ){
+        $m->comp('/generic/error.mhtml', error=>"You don't have permission to 
edit this object");
+    }
+
+    unless ( $new_a_name && $new_a_zone ){
+       $m->comp('/generic/error.mhtml', error=>"Adding a DNS record requires 
both a name and a zone");
+    }
+    eval {
+       RR->insert({type=>"A", name=>$new_a_name, zone=>$new_a_zone, 
ipblock=>$o});
+    };
+    if ( my $e = $@ ){
+       $m->comp('/generic/error.mhtml', error=>$e);
+    }else{
+       $m->comp('.show_message', title=>"Action Message", msg=>"A or AAAA 
record added successfully");
+    }
+    
+    
+
+#######################################################################################
 # REBUILD_TREE
 #
 
#######################################################################################
@@ -747,19 +773,54 @@ print $tmp{value};
 <%perl>
 
 if (!$edit){
-    my @rraddrs = $o->a_records();
-    my @rrs = map { $_->rr } @rraddrs;
     print '<div class="container">';
     print '<div class="containerheadleft">DNS A Records</div>';
     print '<div class="containerheadright">';
-    if ( $manager && $manager->can($user, 'edit', $o->parent) ){
-       print "<a href=\"host.html?ipblock=$o&action=new\">[add]</a>";
+    if ( ($_action ne 'VIEW_ADD_A_RECORD') && $manager && $manager->can($user, 
'edit', $o) ){
+       print "<a href=\"ip.html?id=$o&_action=VIEW_ADD_A_RECORD\">[add]</a>";
     }else{
        print '&nbsp;';
     }
     print '</div>';
     print '<div class="containerbody">';
-    $m->comp('/generic/sortresults.mhtml', object=>\@rrs);
+    if ( $_action eq 'VIEW_ADD_A_RECORD' ){
+       my $zone = $o->forward_zone();
+       # Make sure that user does not add a record to a zone for which
+       # they don't have permissions
+       my @zone_list;
+       if ( $zone ){
+           @zone_list = ( $zone );
+       }
+       foreach my $z ( sort { $a->name cmp $b->name } Zone->retrieve_all ){
+           next if $z->is_dot_arpa;
+           next unless $z->active;
+           next if $zone && ($z->id == $zone->id);
+           if ( $manager && $manager->can($user, 'edit', $z) ){
+               push @zone_list, $z;
+           }
+       }
+
+</%perl>
+      <div class="containerbody">
+         <form name="netdotform" action="ip.html" method="POST">
+           <input type="hidden" name="id" value="<% $o->id %>">
+           <input type="hidden" name="_action" value="ADD_A_RECORD">
+            Name: <input type="text" name="new_a_name" value="">
+           <select name="new_a_zone">
+            <option value=""> - select - </option>
+%          foreach my $zone ( @zone_list ){
+                <option value="<% $zone->id %>"><% $zone->get_label %></option>
+%          }
+            </select>
+            <p><input type="button" name="cancel_button" value="cancel" 
onClick="history.go(-1);">
+            <input type="submit" name="submit" value="add">
+         </form>
+<%perl>          
+    }else{
+        my @rraddrs = $o->a_records();
+        my @rrs = map { $_->rr } @rraddrs;
+       $m->comp('/generic/sortresults.mhtml', object=>\@rrs);
+    }
     print '</div>';
     print '</div>';
 

commit 9c1ec8ebcc7b9bcb7ef259d456e4eb34390357de
Author: Carlos Vicente <[email protected]>
Date:   Tue Aug 21 02:39:49 2012 -0400

    Fix for #1676 (DNS Name Problems with suspicious characters #2)

diff --git a/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm 
b/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm
index 58537a3..f7d4e62 100644
--- a/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm
+++ b/lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm
@@ -125,6 +125,8 @@ sub get_name_from_interface {
     $name =~ s/[-]+/-/og;
     # Remove dashes from start and end
     $name =~ s/^-+|-+$//og;
+    # No dash before dot
+    $name =~ s/-\./\./g;
     
     # Append device name
     # Remove any possible prefixes added

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

Summary of changes:
 htdocs/management/ip.html                      |   71 ++++++++++++++++++++++--
 lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm |    2 +
 2 files changed, 68 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
UNNAMED PROJECT


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

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


End of Netdot-devel Digest, Vol 65, Issue 17
********************************************

Reply via email to