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

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
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-users digest..."


Today's Topics:

   1. Re: FWT and ARP collection from Cisco ASA (Carlos Vicente)
   2. Re: Use of uninitialized value in lc at
      /usr/local/share/perl/5.14.2/Class/DBI.pm line 196. (William Bulley)
   3. Re: Use of uninitialized value in lc at
      /usr/local/share/perl/5.14.2/Class/DBI.pm line 196. (Isaac Hailperin)


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

Message: 1
Date: Thu, 06 Sep 2012 15:02:34 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] FWT and ARP collection from Cisco ASA
To: "Schroeder, AJ (GE Healthcare, consultant)" <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 9/6/12 9:07 AM, Schroeder, AJ (GE Healthcare, consultant) wrote:
> Ok, the error messages are still showing up but we are getting ARP
> caches from the ASA. Should this be something to be concerned with,
> other than a bunch of noise in when updatedevices runs?

As long as you are getting the information...

-- 
cv


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

Message: 2
Date: Thu, 6 Sep 2012 15:25:25 -0400
From: William Bulley <[email protected]>
Subject: Re: [Netdot-users] Use of uninitialized value in lc at
        /usr/local/share/perl/5.14.2/Class/DBI.pm line 196.
To: Carlos Vicente <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

According to Carlos Vicente <[email protected]> on Thu, 09/06/12 at 14:53:
> 
> I had noticed this warning too but hadn't had time to look until now.

Not a problem.

> On 9/6/12 12:56 PM, William Bulley wrote:
> > I don't know why $class->__driver is uninitialized due to the use (on line
> > 43 in Model.pm) of  the call to __PACKAGE__->_default_attributes.  Maybe
> > NETDOT should be calling the set_db() method ??
> 
> No, because set_db() is already called by connection();

Yes, I just finished looking more closely at Class::DBI.pm and
came to that same conclusion.  I realized my previous suggestion
didn't make sense.  In fact, it seemed to be a bit of the chicken
and the egg problem: calling _default_attributes() before the
connection() is set up, and then the DB connection using your
supplied attributes once you called connection().   :-)

> I think I understand the problem now. I should not be calling
> _default_attributes() before connection() in Model.pm.

Yes.

> I believe that if you just remove line 43 like this:
> 
> diff --git a/lib/Netdot/Model.pm b/lib/Netdot/Model.pm
> index ee74cd5..07ede6e 100644
> --- a/lib/Netdot/Model.pm
> +++ b/lib/Netdot/Model.pm
> @@ -40,7 +40,6 @@ BEGIN {
>      $defaults{dsn} .= ";port=$port" if defined ($port);
>      $defaults{user}        = __PACKAGE__->config->get('DB_NETDOT_USER');
>      $defaults{password}    = __PACKAGE__->config->get('DB_NETDOT_PASS');
> -    $defaults{dbi_options} = { __PACKAGE__->_default_attributes };
>      if ($db_type eq "mysql") {
>          $defaults{dbi_options}->{AutoCommit} = 1;
>          $defaults{dbi_options}->{mysql_enable_utf8} = 1;
> 
> you should not see the warning again, and Class::DBI's defaults will
> still be assigned.

And, in fact, I don't.  Thanks for the diffs.

> Let me know if this works for you. I have done some quick tests and it
> appears to be OK

Yes, this will do the trick.  Thanks again!   :-)

Regards,

web...

-- 
William Bulley                     Email: [email protected]

72 characters width template ----------------------------------------->|


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

Message: 3
Date: Fri, 07 Sep 2012 11:05:38 +0200
From: Isaac Hailperin <[email protected]>
Subject: Re: [Netdot-users] Use of uninitialized value in lc at
        /usr/local/share/perl/5.14.2/Class/DBI.pm line 196.
To: Carlos Vicente <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Carlos,

On 09/06/2012 08:53 PM, Carlos Vicente wrote:

> I believe that if you just remove line 43 like this:
>
> diff --git a/lib/Netdot/Model.pm b/lib/Netdot/Model.pm
> index ee74cd5..07ede6e 100644
> --- a/lib/Netdot/Model.pm
> +++ b/lib/Netdot/Model.pm
> @@ -40,7 +40,6 @@ BEGIN {
>       $defaults{dsn} .= ";port=$port" if defined ($port);
>       $defaults{user}        = __PACKAGE__->config->get('DB_NETDOT_USER');
>       $defaults{password}    = __PACKAGE__->config->get('DB_NETDOT_PASS');
> -    $defaults{dbi_options} = { __PACKAGE__->_default_attributes };
>       if ($db_type eq "mysql") {
>           $defaults{dbi_options}->{AutoCommit} = 1;
>           $defaults{dbi_options}->{mysql_enable_utf8} = 1;
>
>
> you should not see the warning again, and Class::DBI's defaults will
> still be assigned.
>
> Let me know if this works for you. I have done some quick tests and it
> appears to be OK
Yes, this works for me, no more warnings.
Thank you very much!!!

Isaac



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

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


End of Netdot-users Digest, Vol 46, Issue 8
*******************************************

Reply via email to