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 netdot-1.0 updated.
netdot-1.0.2-17-g19a80b6 ([email protected])
2. [Netdot - Feature #1709] (New) DHCP reservation from
management/ip ([email protected])
3. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-18-gaef8a2a ([email protected])
4. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-19-g510b575 ([email protected])
5. [Netdot - Feature #1709] (Resolved) DHCP reservation from
management/ip ([email protected])
6. [Netdot - Bug #1710] (New) netdot 1.0.2 ([email protected])
7. [Netdot - Bug #1710] netdot 1.0.2 ([email protected])
8. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-20-g23da8a9 ([email protected])
9. [Netdot - Feature #1711] (New) Allow containers/subnets in
bigger subnets ([email protected])
10. [Netdot - Feature #1711] Allow containers/subnets in bigger
subnets ([email protected])
11. [Netdot - Bug #1710] (Resolved) netdot 1.0.2
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Tue, 27 Nov 2012 12:13:51 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-17-g19a80b6
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 19a80b6f12e4b6cd0b992110d479f084a114a974 (commit)
via 8b77300369da1814e26191e6880f7892406c5bf3 (commit)
from 8909954b82ab248babebcfc6f2048f9aa63428bd (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 19a80b6f12e4b6cd0b992110d479f084a114a974
Author: Carlos Vicente <[email protected]>
Date: Tue Nov 27 15:11:59 2012 -0500
Correction in Asset search fields
diff --git a/htdocs/management/asset_tasks.html
b/htdocs/management/asset_tasks.html
index 0abc8d8..e5cad8f 100644
--- a/htdocs/management/asset_tasks.html
+++ b/htdocs/management/asset_tasks.html
@@ -237,7 +237,7 @@ if ( $submit ){
# Search for other fields in Asset table
my @where;
foreach my $field ( qw/custom_serial inventory_number reserved_for
- description info po_number maint_contract/ ){
+ description info po_number/ ){
push @where, { $field => { '-like' => '%'.$search.'%' } };
}
push @assets, Asset->search_where(\@where);
commit 8b77300369da1814e26191e6880f7892406c5bf3
Author: Carlos Vicente <[email protected]>
Date: Tue Nov 27 15:05:26 2012 -0500
Add config option to allow underscores in DNS records
diff --git a/etc/Default.conf b/etc/Default.conf
index 9093e54..0a96263 100644
--- a/etc/Default.conf
+++ b/etc/Default.conf
@@ -521,6 +521,11 @@ GET_IPV6_ND => 1,
# from router interfaces and Neighbor Discovery tables
IGNORE_IPV6_LINK_LOCAL => 0,
+# Device names in Netdot are DNS records. Normally underscores
+# are not allowed in DNS (with some exceptions). Setting this
+# to 1 will allow underscores anywhere in a device name.
+ALLOW_UNDERSCORES_IN_DEVICE_NAMES => 0,
+
#####################################################################
#
# IP Address Space Management
diff --git a/lib/Netdot/Model/RR.pm b/lib/Netdot/Model/RR.pm
index 82bdec5..16c878e 100644
--- a/lib/Netdot/Model/RR.pm
+++ b/lib/Netdot/Model/RR.pm
@@ -706,10 +706,14 @@ sub _validate_args {
if ( $name =~ /[^A-Za-z0-9\.\-_@\*]/ ){
$self->throw_user("Invalid name: $name. Contains invalid
characters");
}
- # Underscore only allowed at beginning of string or dotted section
- if ( $name =~ /[^^.]_/ || $name =~ /_$/ ){
- $self->throw_user("Invalid name: $name. Invalid underscores");
+
+ if ( $self->config->get('ALLOW_UNDERSCORES_IN_DEVICE_NAMES') eq '0' ){
+ # 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 =~ /\-$/ ){
$self->throw_user("Invalid name: $name. Name must not start or end
with a dash");
-----------------------------------------------------------------------
Summary of changes:
etc/Default.conf | 5 +++++
htdocs/management/asset_tasks.html | 2 +-
lib/Netdot/Model/RR.pm | 10 +++++++---
3 files changed, 13 insertions(+), 4 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 2
Date: Tue, 27 Nov 2012 12:32:05 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1709] (New) DHCP
reservation from management/ip
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1709 has been reported by Wim Vandersmissen.
----------------------------------------
Feature #1709: DHCP reservation from management/ip
https://osl.uoregon.edu/redmine/issues/1709
Author: Wim Vandersmissen
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Is it possible to enable the 'DHCP host' option in the management/ip page ?
To directly link it to management/host.html?id=x&add_dhcp=y
Seems more intuitive to me, the field is already there only the [add] button is
missing.
Thanks,
Wim
--
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: Tue, 27 Nov 2012 12:34:05 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-18-gaef8a2a
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 aef8a2a7f6561d94404d10e0f17d4cb52f5d090d (commit)
from 19a80b6f12e4b6cd0b992110d479f084a114a974 (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 aef8a2a7f6561d94404d10e0f17d4cb52f5d090d
Author: Carlos Vicente <[email protected]>
Date: Tue Nov 27 15:33:59 2012 -0500
Small fix in regex
diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index b509b73..63aa209 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -3534,7 +3534,7 @@ sub bgppeers_by_id {
Arguments:
Array ref of BGPPeering objects,
- Entity table field to sort by [name*|asnumber|asname]
+ Entity table field to sort by [name|asnumber|asname]
Returns:
Sorted array of BGPPeering objects
@@ -3545,7 +3545,7 @@ sub bgppeers_by_entity {
$self->isa_object_method('bgppeers_by_id');
$sort ||= "name";
- unless ( $sort =~ /name|asnumber|asname/ ){
+ unless ( $sort =~ /^name|asnumber|asname$/o ){
$self->throw_fatal("Model::Device::bgppeers_by_entity: Invalid Entity
field: $sort");
}
my $sortsub = ($sort eq "asnumber") ?
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Device.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 4
Date: Tue, 27 Nov 2012 13:00:15 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-19-g510b575
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 510b575b8e13dcb6d8b3a4867360fc4ba0ca7ab3 (commit)
from aef8a2a7f6561d94404d10e0f17d4cb52f5d090d (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 510b575b8e13dcb6d8b3a4867360fc4ba0ca7ab3
Author: Carlos Vicente <[email protected]>
Date: Tue Nov 27 16:00:10 2012 -0500
Changes for feature #1709 (DHCP reservation from management/ip)
diff --git a/htdocs/management/host.html b/htdocs/management/host.html
index 9fdd03f..16efbcc 100644
--- a/htdocs/management/host.html
+++ b/htdocs/management/host.html
@@ -390,7 +390,7 @@ foreach my $o ( values %rrs ) {
foreach my $ipblock ( @ips ){
my $gscope; # global scope
- if ( int($ipblock->parent) != 0 && $ipblock->parent->dhcp_scopes ) {
+ if ( $ipblock->parent && $ipblock->parent->dhcp_scopes ) {
# Subnet is in DHCP
$gscope = $ipblock->parent->dhcp_scopes->first->get_global;
$m->comp('/generic/error.mhtml', error=>"Could not determine
global scope for IP ".
diff --git a/htdocs/management/ip.html b/htdocs/management/ip.html
index e2908eb..fc56e91 100644
--- a/htdocs/management/ip.html
+++ b/htdocs/management/ip.html
@@ -854,7 +854,20 @@ if ($o->parent && $o->parent->dhcp_scopes) {
my @scopes = $o->dhcp_scopes;
print '<div class="container">';
- print '<div class="containerhead"><b>DHCP Host</b></div>';
+ print '<div class="containerheadleft"><b>DHCP Host</b></div>';
+ print '<div class="containerheadright">';
+ if ( @scopes ){
+ print ' ';
+ }else{
+ # Let user add a scope (takes user to another page)
+ print ' ';
+ if ( !$edit ){
+ if ( $manager && $manager->can($user, 'edit', $o) ){
+ print '<a
href="host.html?ipblock='.$o.'&add_dhcp='.$o.'">[add]</a>';
+ }
+ }
+ }
+ print '</div>';
print '<div class="containerbody">';
$m->comp('/generic/sortresults.mhtml', object=>\@scopes);
print '</div>'; #close containerbody of DHCP
-----------------------------------------------------------------------
Summary of changes:
htdocs/management/host.html | 2 +-
htdocs/management/ip.html | 15 ++++++++++++++-
2 files changed, 15 insertions(+), 2 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 5
Date: Tue, 27 Nov 2012 13:00:58 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1709] (Resolved) DHCP
reservation from management/ip
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1709 has been updated by Carlos Vicente.
Category set to UserInterface
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.3
Resolution set to fixed
----------------------------------------
Feature #1709: DHCP reservation from management/ip
https://osl.uoregon.edu/redmine/issues/1709#change-3018
Author: Wim Vandersmissen
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: UserInterface
Target version: 1.0.3
Resolution: fixed
Is it possible to enable the 'DHCP host' option in the management/ip page ?
To directly link it to management/host.html?id=x&add_dhcp=y
Seems more intuitive to me, the field is already there only the [add] button is
missing.
Thanks,
Wim
--
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: Wed, 28 Nov 2012 07:57:58 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1710] (New) netdot 1.0.2
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1710 has been reported by steven tardy.
----------------------------------------
Bug #1710: netdot 1.0.2
https://osl.uoregon.edu/redmine/issues/1710
Author: steven tardy
Status: New
Priority: Normal
Assignee:
Category: Netdot
Target version:
Resolution:
installed 1.0.2.
webpage error'd with:
> <snip> Table 'netdot.accessright' doesn't exist <snip>
file: etc/schema.mysql
has line(s):
> UNIQUE INDEX `accessright1` (``),
preventing the table from being created.
tables like this:
* accessright
* audit
* hostaudit
* rrloc
* rrnaptr
digging around a little looks like the source of the problem might be in
etc/netdot.meta
--
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: Wed, 28 Nov 2012 08:07:11 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1710] netdot 1.0.2
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1710 has been updated by steven tardy.
sorry for the poor title choice. a better title would have been:
> netdot 1.0.2 new install database errors
----------------------------------------
Bug #1710: netdot 1.0.2
https://osl.uoregon.edu/redmine/issues/1710#change-3019
Author: steven tardy
Status: New
Priority: Normal
Assignee:
Category: Netdot
Target version:
Resolution:
installed 1.0.2.
webpage error'd with:
> <snip> Table 'netdot.accessright' doesn't exist <snip>
file: etc/schema.mysql
has line(s):
> UNIQUE INDEX `accessright1` (``),
preventing the table from being created.
tables like this:
* accessright
* audit
* hostaudit
* rrloc
* rrnaptr
digging around a little looks like the source of the problem might be in
etc/netdot.meta
--
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: Wed, 28 Nov 2012 10:57:37 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.2-20-g23da8a9
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 23da8a954b44c5d6429b08e42c83313a1c02ef9a (commit)
from 510b575b8e13dcb6d8b3a4867360fc4ba0ca7ab3 (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 23da8a954b44c5d6429b08e42c83313a1c02ef9a
Author: Carlos Vicente <[email protected]>
Date: Wed Nov 28 13:57:30 2012 -0500
Update PTR record when IP address changes
diff --git a/lib/Netdot/Model/Ipblock.pm b/lib/Netdot/Model/Ipblock.pm
index 07c4cf6..5d78d79 100644
--- a/lib/Netdot/Model/Ipblock.pm
+++ b/lib/Netdot/Model/Ipblock.pm
@@ -1652,6 +1652,18 @@ sub update {
$scope->update({ipblock=>$self});
}
}
+
+ # Update PTR records if needed
+ if ( $self->address ne $bak{address} ){
+ my $name = RRPTR->get_name(ipblock=>$self);
+ foreach my $pr ( $self->ptr_records ){
+ my $rr = $pr->rr;
+ my $domain = $rr->zone->name;
+ $name =~ s/\.$domain\.?$//i;
+ $rr->update({name=>$name});
+ }
+ }
+
# Generate hostaudit entry if needed
if ( $self->parent && $self->parent->dhcp_scopes
&& ($bak{status}->id != $state{status}) ){
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Ipblock.pm | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 9
Date: Wed, 28 Nov 2012 11:10:07 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1711] (New) Allow
containers/subnets in bigger subnets
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1711 has been reported by Wim Vandersmissen.
----------------------------------------
Feature #1711: Allow containers/subnets in bigger subnets
https://osl.uoregon.edu/redmine/issues/1711
Author: Wim Vandersmissen
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
E.g. we have a 10.120.0.0/21 subnet routed, that we internally split up in 8 x
/24's.
We would like to delegate DNS for each /24 to another entity.
When trying to create a container or subnet (management zone) for 10.120.0.0/24
this fails
"Block allocations only allowed under Container blocks: 10.120.0.0/24 within
10.120.0.0/21"
--
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: Wed, 28 Nov 2012 11:17:31 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1711] Allow
containers/subnets in bigger subnets
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1711 has been updated by Carlos Vicente.
Wim Vandersmissen wrote:
> E.g. we have a 10.120.0.0/21 subnet routed, that we internally split up in 8
> x /24's.
> We would like to delegate DNS for each /24 to another entity.
>
> When trying to create a container or subnet (management zone) for
> 10.120.0.0/24 this fails
> "Block allocations only allowed under Container blocks: 10.120.0.0/24 within
> 10.120.0.0/21"
Can you not just make the /21 a Container?
----------------------------------------
Feature #1711: Allow containers/subnets in bigger subnets
https://osl.uoregon.edu/redmine/issues/1711#change-3020
Author: Wim Vandersmissen
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
E.g. we have a 10.120.0.0/21 subnet routed, that we internally split up in 8 x
/24's.
We would like to delegate DNS for each /24 to another entity.
When trying to create a container or subnet (management zone) for 10.120.0.0/24
this fails
"Block allocations only allowed under Container blocks: 10.120.0.0/24 within
10.120.0.0/21"
--
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: 11
Date: Wed, 28 Nov 2012 11:19:23 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1710] (Resolved) netdot 1.0.2
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1710 has been updated by Carlos Vicente.
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.3
Resolution set to fixed
This is a problem that only happens with newer versions of SQL::Translator. The
changes in netdot.meta to avoid the problem have already been made and will be
available in 1.0.3
Thanks
----------------------------------------
Bug #1710: netdot 1.0.2
https://osl.uoregon.edu/redmine/issues/1710#change-3021
Author: steven tardy
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: Netdot
Target version: 1.0.3
Resolution: fixed
installed 1.0.2.
webpage error'd with:
> <snip> Table 'netdot.accessright' doesn't exist <snip>
file: etc/schema.mysql
has line(s):
> UNIQUE INDEX `accessright1` (``),
preventing the table from being created.
tables like this:
* accessright
* audit
* hostaudit
* rrloc
* rrnaptr
digging around a little looks like the source of the problem might be in
etc/netdot.meta
--
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 68, Issue 9
*******************************************