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 branch master updated. netdot-1.0.7-37-g63faf03
([email protected])
2. [Netdot - Feature #1872] (Resolved) Separate auto_dns from
discover ([email protected])
3. [Netdot - Bug #1895] (Resolved) Exported RANCID results in
all devices "down". ([email protected])
4. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.7-38-g8715503 ([email protected])
5. [Netdot - Bug #1896] (Resolved) trailing whitespace in BIND
zone generation ([email protected])
6. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.7-39-g4dc2e5d ([email protected])
7. [Netdot - Feature #1888] (Resolved) Faster
Device::get_ips(null) ([email protected])
8. [SCM] Netdot branch master updated. netdot-1.0.7-39-g4dc2e5d
([email protected])
9. [Netdot - Bug #1898] (New) merge pull request "Mac
formatting" ([email protected])
10. [Netdot - Feature #1898] MAC formatting ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Thu, 16 Jun 2016 20:57:39 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
netdot-1.0.7-37-g63faf03
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".
The branch, master has been updated
via 63faf037285f8230ec312dc2c59cd355bf16b345 (commit)
via d9d08a64d2e20f4c91a74ba6322379b9d1e39d18 (commit)
via c4e7590064309d6f518c85dc534d9fe18e20bb0f (commit)
via a931116d1272214cf165589b0b9b82568daa4fca (commit)
via 2c4dd4eb919b7fac901918152aa0384ce9517b53 (commit)
via 9d164d9e14abf94ffb91954e76403e6dccfd3033 (commit)
via 7fe17bf5c35aa6f107b770d434bf7a62338973bb (commit)
from 47d6c31eaa4d4f67d845ecb189de0f1eab3111fb (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 -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
bin/updatedevices.pl | 26 +-
doc/manual/netdot-manual-es.epub | Bin 32755 -> 32753 bytes
doc/manual/netdot-manual-es.pdf | 6 +-
doc/manual/netdot-manual.epub | Bin 29658 -> 29888 bytes
doc/manual/netdot-manual.htm | 13 +-
doc/manual/netdot-manual.pdf | 2018 ++++++++++++------------
doc/manual/netdot-manual.txt | 22 +-
etc/Default.conf | 4 +
etc/netdot.meta | 5 +
lib/Netdot/Exporter/Rancid.pm | 7 +-
lib/Netdot/Model/Device.pm | 54 +-
lib/Netdot/Model/Plugins/DeviceIpNamesFixed.pm | 2 +
netdot.cron | 3 +
13 files changed, 1135 insertions(+), 1025 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 2
Date: Thu, 16 Jun 2016 20:58:42 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1872] (Resolved) Separate
auto_dns from discover
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1872 has been updated by Carlos Vicente.
Category set to DeviceManagement
Status changed from New to Resolved
Resolution set to fixed
----------------------------------------
Feature #1872: Separate auto_dns from discover
https://osl.uoregon.edu/redmine/issues/1872#change-3350
Author: Carlos Vicente
Status: Resolved
Priority: High
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.8
Resolution: fixed
Netdot's auto_dns feature can be operated in two ways:
* DNS records are updated at discovery time (once/hour)
* User can manually force an update from the device's page in the UI
Updating DNS records at discovery time adds time to the process, and the user
doesn't have the flexibility to specify when those DNS updates happen. For
example, the user may want to update DNS only once a day.
Factor out the auto_dns feature from the discovery process and add an option to
the updatedevices.pl CLI script to only do auto_dns. User can control
periodicity via the cron job.
--
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: Thu, 16 Jun 2016 20:59:34 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1895] (Resolved) Exported
RANCID results in all devices "down".
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1895 has been updated by Carlos Vicente.
Category set to DeviceManagement
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.8
Resolution set to fixed
----------------------------------------
Bug #1895: Exported RANCID results in all devices "down".
https://osl.uoregon.edu/redmine/issues/1895#change-3351
Author: dbuechler-cablemo-com -
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.8
Resolution: fixed
When exporting RANCID configs from netdot, RANCID believes all devices are
down. A Google search informed me that RANCID changed its database delimiter
from colon to semicolon in or around version 3.0.
Modifying Rancid.pm solved my problem, but perhaps a Site.conf variable would
be useful?
As requested, I'm including a diff.
Thank you for your time.
--
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, 16 Jun 2016 21:03:00 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.7-38-g8715503
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".
The branch, netdot-1.0 has been updated
via 8715503be0ee79236e5f01f244f62ab755fde951 (commit)
from 63faf037285f8230ec312dc2c59cd355bf16b345 (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 8715503be0ee79236e5f01f244f62ab755fde951
Author: Carlos Vicente <[email protected]>
Date: Fri Jun 17 00:02:38 2016 -0400
Fix for #1896 (trailing whitespace in BIND zone generation)
diff --git a/lib/Netdot/Exporter/BIND.pm b/lib/Netdot/Exporter/BIND.pm
index 15b2525..b7017a3 100644
--- a/lib/Netdot/Exporter/BIND.pm
+++ b/lib/Netdot/Exporter/BIND.pm
@@ -155,7 +155,7 @@ sub print_zone_to_file {
my $fh = $self->open_and_lock($path);
$zone->update_serial();
- print $fh "; Generated by Netdot -- http://netdot.uoregon.edu \n\n";
+ print $fh "; Generated by Netdot -- http://netdot.uoregon.edu\n\n";
# Print the default TTL
print $fh '$TTL '.$zone->default_ttl."\n" if (defined $zone->default_ttl);
diff --git a/lib/Netdot/Model/Zone.pm b/lib/Netdot/Model/Zone.pm
index a021e2d..efa1df1 100644
--- a/lib/Netdot/Model/Zone.pm
+++ b/lib/Netdot/Model/Zone.pm
@@ -366,7 +366,7 @@ sub update {
sub as_text {
my ($self, $argv) = @_;
$self->isa_object_method('as_text');
- my $text = "; Generated by Netdot -- http://netdot.uoregon.edu \n\n";
+ my $text = "; Generated by Netdot -- http://netdot.uoregon.edu\n\n";
$text = $self->soa_string . "\n";
foreach my $record ( sort { $a->name cmp $b->name } $self->records ){
$text .= $record->as_text();
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Exporter/BIND.pm | 2 +-
lib/Netdot/Model/Zone.pm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 5
Date: Thu, 16 Jun 2016 21:03:32 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1896] (Resolved) trailing
whitespace in BIND zone generation
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1896 has been updated by Carlos Vicente.
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.8
Resolution set to fixed
Thanks
----------------------------------------
Bug #1896: trailing whitespace in BIND zone generation
https://osl.uoregon.edu/redmine/issues/1896#change-3352
Author: Matt Zagrabelny
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DNS
Target version: 1.0.8
Resolution: fixed
The first line of the generated BIND zone file contains a trailing space
character.
This patch removes that space.
--
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, 16 Jun 2016 21:18:09 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.7-39-g4dc2e5d
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".
The branch, netdot-1.0 has been updated
via 4dc2e5d02145ac787139a537087b430a6c6f2490 (commit)
from 8715503be0ee79236e5f01f244f62ab755fde951 (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 4dc2e5d02145ac787139a537087b430a6c6f2490
Author: Carlos Vicente <[email protected]>
Date: Fri Jun 17 00:17:57 2016 -0400
Fix for #1888 (Faster Device::get_ips(null))
diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index 64fb13e..631d6d7 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -3188,7 +3188,7 @@ sub add_ip {
Arguments:
Hash with the following keys:
- sort_by [address|interface]
+ sort_by [address|interface] (optional)
Returns:
Arrayref of Ipblock objects
Examples:
@@ -3200,15 +3200,17 @@ sub get_ips {
my ($self, %argv) = @_;
$self->isa_object_method('get_ips');
- $argv{sort_by} ||= "address";
-
my @ips;
- if ( $argv{sort_by} eq "address" ){
- @ips = Ipblock->search_devipsbyaddr($self->id);
- }elsif ( $argv{sort_by} eq "interface" ){
- @ips = Ipblock->search_devipsbyint($self->id);
+ if ( $argv{sort_by} ){
+ if ( $argv{sort_by} eq "address" ){
+ @ips = Ipblock->search_devipsbyaddr($self->id);
+ }elsif ( $argv{sort_by} eq "interface" ){
+ @ips = Ipblock->search_devipsbyint($self->id);
+ }else{
+ $self->throw_fatal("Model::Device::get_ips: Invalid sort criteria:
$argv{sort_by}");
+ }
}else{
- $self->throw_fatal("Model::Device::get_ips: Invalid sort criteria:
$argv{sort_by}");
+ @ips = Ipblock->search_devips($self->id);
}
return \@ips;
}
@@ -6650,5 +6652,3 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
#Be sure to return 1
1;
-
-
diff --git a/lib/Netdot/Model/Ipblock.pm b/lib/Netdot/Model/Ipblock.pm
index 0bad1bc..0faa523 100644
--- a/lib/Netdot/Model/Ipblock.pm
+++ b/lib/Netdot/Model/Ipblock.pm
@@ -3712,6 +3712,17 @@ __PACKAGE__->set_sql(devipsbyint => qq{
ORDER BY interface.name
});
+# usage:
+# Ipblock->search_devips($dev)
+
+__PACKAGE__->set_sql(devips => qq{
+ SELECT device.id, interface.id, interface.name, interface.device,
ipblock.id, ipblock.interface, ipblock.address
+ FROM ipblock, interface, device
+ WHERE interface.id = ipblock.interface AND
+ device.id = interface.device AND
+ device.id = ?
+ });
+
=head1 AUTHORS
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Device.pm | 20 ++++++++++----------
lib/Netdot/Model/Ipblock.pm | 11 +++++++++++
2 files changed, 21 insertions(+), 10 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 7
Date: Thu, 16 Jun 2016 21:19:07 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1888] (Resolved) Faster
Device::get_ips(null)
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1888 has been updated by Carlos Vicente.
Category set to DeviceManagement
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.8
Resolution set to fixed
Thanks!
----------------------------------------
Feature #1888: Faster Device::get_ips(null)
https://osl.uoregon.edu/redmine/issues/1888#change-3353
Author: Vincent Magnin
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.8
Resolution: fixed
During polling with big database, it is useless to sort Device::get_ips()
results.
This could improve device polling time with big ipblock database.
Related to
http://osl.uoregon.edu/pipermail/netdot-users/2016-February/002056.html thread
Regards,
Vincent
--
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: 8
Date: Thu, 16 Jun 2016 21:27:29 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
netdot-1.0.7-39-g4dc2e5d
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".
The branch, master has been updated
via 4dc2e5d02145ac787139a537087b430a6c6f2490 (commit)
via 8715503be0ee79236e5f01f244f62ab755fde951 (commit)
from 63faf037285f8230ec312dc2c59cd355bf16b345 (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 -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Exporter/BIND.pm | 2 +-
lib/Netdot/Model/Device.pm | 20 ++++++++++----------
lib/Netdot/Model/Ipblock.pm | 11 +++++++++++
lib/Netdot/Model/Zone.pm | 2 +-
4 files changed, 23 insertions(+), 12 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 9
Date: Fri, 17 Jun 2016 08:20:37 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1898] (New) merge pull request
"Mac formatting"
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1898 has been reported by Matt Zagrabelny.
----------------------------------------
Bug #1898: merge pull request "Mac formatting"
https://osl.uoregon.edu/redmine/issues/1898
Author: Matt Zagrabelny
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
I've coded up a branch "mzagrabe:mac-formatting" on github where the formatting
of the MAC address is configurable. It builds on a different branch that
returns descriptive text to the user as to why a MAC address cannot be used for
DHCP Host entries.
It would be great if you'd look over these branches for merging.
Thanks!
--
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: 10
Date: Fri, 17 Jun 2016 11:05:08 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1898] MAC formatting
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1898 has been updated by Carlos Vicente.
Tracker changed from Bug to Feature
Subject changed from merge pull request "Mac formatting" to MAC formatting
Assignee set to Carlos Vicente
Target version set to 1.0.8
Hi Matt,
It's on my list of things to get done before the next release. Sorry it's
taking so long.
----------------------------------------
Feature #1898: MAC formatting
https://osl.uoregon.edu/redmine/issues/1898#change-3354
Author: Matt Zagrabelny
Status: New
Priority: Normal
Assignee: Carlos Vicente
Category:
Target version: 1.0.8
Resolution:
I've coded up a branch "mzagrabe:mac-formatting" on github where the formatting
of the MAC address is configurable. It builds on a different branch that
returns descriptive text to the user as to why a MAC address cannot be used for
DHCP Host entries.
It would be great if you'd look over these branches for merging.
Thanks!
--
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 111, Issue 3
********************************************