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.4-133-gf9a146c ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Wed, 11 Dec 2013 15:50:28 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.4-133-gf9a146c
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 f9a146c8dd05dff7d125e2aafcf12cbb7302a5d2 (commit)
via db80b8163bc24e0dbc838c107abd8e2f09df2611 (commit)
via 7b79d5272adeb6bd3898d4127d3ef910f343348f (commit)
from df743d6f5057559303ff11afd94eeea362d97198 (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 f9a146c8dd05dff7d125e2aafcf12cbb7302a5d2
Author: Carlos Vicente <[email protected]>
Date: Wed Dec 11 18:50:14 2013 -0500
Set first_seen and last_seen fields when discovering subnets
diff --git a/lib/Netdot/Model/Interface.pm b/lib/Netdot/Model/Interface.pm
index 526f521..fc08b38 100644
--- a/lib/Netdot/Model/Interface.pm
+++ b/lib/Netdot/Model/Interface.pm
@@ -684,6 +684,8 @@ sub update_ip {
$iargs{description} = $self->description
if ( !defined $subnetobj->description ||
$subnetobj->description eq "" );
+ $iargs{last_seen} = $self->timestamp;
+
$subnetobj->update(\%iargs); # Makes sure that the status is
set to subnet
}else{
@@ -694,6 +696,8 @@ sub update_ip {
$iargs{prefix} = $subnet_netaddr->masklen;
$iargs{version} = $version;
$iargs{description} = $self->description;
+ $iargs{first_seen} = $self->timestamp;
+ $iargs{last_seen} = $iargs{first_seen};
# Check if subnet should inherit device info
if ( $args{subs_inherit} ){
@@ -744,7 +748,7 @@ sub update_ip {
eval {
$ipobj = Ipblock->insert({address => $address, prefix =>
$prefix,
status => "Static", interface => $self,
- version => $version,
+ version => $version,
});
};
if ( my $e = $@ ){
commit db80b8163bc24e0dbc838c107abd8e2f09df2611
Author: Carlos Vicente <[email protected]>
Date: Wed Dec 11 18:47:47 2013 -0500
Set IP monitored flag when adding a service check
diff --git a/htdocs/management/addservice.html
b/htdocs/management/addservice.html
index b623aa8..f83ae25 100644
--- a/htdocs/management/addservice.html
+++ b/htdocs/management/addservice.html
@@ -87,6 +87,7 @@ if ( $Add ){
$state{contactlist} = $contactlist if defined $contactlist;
eval{
IpService->insert(\%state);
+ $ipobj->update({monitored=>1});
};
if ( my $e = $@ ){
$m->comp("error.mhtml", error=>$e);
commit 7b79d5272adeb6bd3898d4127d3ef910f343348f
Author: Carlos Vicente <[email protected]>
Date: Fri Dec 6 10:24:20 2013 -0500
Minor correction
diff --git a/etc/netdot.meta b/etc/netdot.meta
index 9d9fea8..b869640 100644
--- a/etc/netdot.meta
+++ b/etc/netdot.meta
@@ -464,7 +464,7 @@ $meta = {
description => '',
length => '',
nullable => 0,
- tag => '',
+ tag => undef,
type => 'bigint'
},
info => {
-----------------------------------------------------------------------
Summary of changes:
etc/netdot.meta | 2 +-
htdocs/management/addservice.html | 1 +
lib/Netdot/Model/Interface.pm | 6 +++++-
3 files changed, 7 insertions(+), 2 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 81, Issue 2
*******************************************