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-42-gdb58f9a ([email protected])
   2. [Netdot - Bug #1735] (Resolved) Table rrloc not   Created
      ([email protected])
   3. REST API Question (Francisco Gray)
   4. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.4-43-gf6fc05f ([email protected])
   5. [Netdot - Bug #1746] (Resolved) patch : DHCPD Export      Class
      drops free text indentation ([email protected])
   6. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.4-44-gd4e3d3e ([email protected])
   7. [Netdot - Bug #1743] (Resolved) Error while       inserting bgp
      peering ([email protected])


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

Message: 1
Date: Wed, 3 Apr 2013 07:48:49 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.4-42-gdb58f9a
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  db58f9af94de00ba2498007ccfac2a482dba3b9f (commit)
      from  b50c577fbe3a42c747436388b73e620202561726 (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 db58f9af94de00ba2498007ccfac2a482dba3b9f
Author: Carlos Vicente <[email protected]>
Date:   Wed Apr 3 10:31:15 2013 -0400

    Fix for #1735 (Table rrloc not Created_

diff --git a/etc/netdot.meta b/etc/netdot.meta
index 45b4fb2..a7e0e85 100644
--- a/etc/netdot.meta
+++ b/etc/netdot.meta
@@ -6438,7 +6438,7 @@ $meta = {
     },
     description => 'Location Information. See RFC1876',
     has_history => 0,
-    index => [[]],
+    index => [],
     isjoin => '0',
     label => [
       'rr'

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

Summary of changes:
 etc/netdot.meta |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 2
Date: Wed, 3 Apr 2013 07:49:44 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1735] (Resolved) Table rrloc
        not     Created
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1735 has been updated by Carlos Vicente.

Category set to Netdot
Status changed from New to Resolved
Target version set to 1.0.5
Resolution set to fixed

Fix has been committed for next release. Thank you.
----------------------------------------
Bug #1735: Table rrloc not Created
https://osl.uoregon.edu/redmine/issues/1735#change-3050

Author: Michael Lambert
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: Netdot
Target version: 1.0.5
Resolution: fixed


Queries were complaining about not being able to find entries in the rrloc 
table.  I checked and it doesn't exist in the netdot database.  I tried 
creating it by hand with the output below.  The platform is FreeBSD 9.1 on 
amd64.

Michael

<pre>
% mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1048
Server version: 5.5.30-log Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> \u netdot
Database changed
mysql> describe rrloc;
ERROR 1146 (42S02): Table 'netdot.rrloc' doesn't exist
mysql> CREATE TABLE `rrloc` (
    ->   `altitude` bigint NOT NULL,
    ->   `horiz_pre` varchar(32) NULL,
    ->   `id` bigint NOT NULL auto_increment,
    ->   `latitude` bigint NOT NULL,
    ->   `longitude` bigint NOT NULL,
    ->   `rr` bigint NOT NULL,
    ->   `size` varchar(32) NULL,
    ->   `ttl` varchar(32) NULL,
    ->   `vert_pre` varchar(32) NULL,
    ->   UNIQUE INDEX `rrloc1` (`rr`),
    ->   INDEX `RRLOC2` (``),
    ->   PRIMARY KEY (`id`),
    ->   CONSTRAINT `fk_rr_4` FOREIGN KEY (`rr`) REFERENCES `rr` (`id`)
    -> ) ENGINE=InnoDB;
ERROR 1072 (42000): Key column '' doesn't exist in table
mysql> 

</pre>


-- 
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, 2 Apr 2013 17:17:59 +0000
From: Francisco Gray <[email protected]>
Subject: [Netdot-devel] REST API Question
To: "<[email protected]>" <[email protected]>,
        "<[email protected]>" <[email protected]>
Message-ID: <FD66A675259E2A4E8E76EE485FA63CEA10DEB5FD@ad-oh-mbx01>
Content-Type: text/plain; charset="us-ascii"

Not sure where this question should go so I figured I would spam both lists...

I am trying to figure out how to create a CNAME for a given record via the REST 
API.  I would think that it would be a POST to either /host or possibly 
something in /rr?  I attempted to post to

POST /host?rrid=" + rrid, data) where data is a python dict (hash) with a 
single key/value pair of cname => "foo.example.com<http://foo.example.com>"

The raw code can be found here: 
https://github.com/frgray/netdot-client-python/blob/frgray-dev/netdot/client.py#L375-L392

Any help would be appreciated.
--
Francisco Gray
[email protected]<mailto:[email protected]>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-devel/attachments/20130402/b863328c/attachment-0001.html
 

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

Message: 4
Date: Wed, 3 Apr 2013 08:10:32 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.4-43-gf6fc05f
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  f6fc05f4c91fbcaf1c8a5ac4019b0d62cac724db (commit)
      from  db58f9af94de00ba2498007ccfac2a482dba3b9f (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 f6fc05f4c91fbcaf1c8a5ac4019b0d62cac724db
Author: Carlos Vicente <[email protected]>
Date:   Wed Apr 3 10:53:01 2013 -0400

    Fix for #1746 ( DHCPD Export Class drops free text indentation)

diff --git a/lib/Netdot/Model/DhcpScope.pm b/lib/Netdot/Model/DhcpScope.pm
index 37bc173..3c146a9 100644
--- a/lib/Netdot/Model/DhcpScope.pm
+++ b/lib/Netdot/Model/DhcpScope.pm
@@ -722,8 +722,9 @@ sub _print {
     
     # Print free-form text
     if ( $data->{$id}->{text} ){
-       chomp $data->{$id}->{text};
-       print $fh $indent.$data->{$id}->{text}, "\n" ;
+       chomp (my $text = $data->{$id}->{text});
+       $text =~ s/\n/\n$indent/g  ;
+       print $fh $indent.$text, "\n" ;
     }
     
     # Print attributes

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

Summary of changes:
 lib/Netdot/Model/DhcpScope.pm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 5
Date: Wed, 3 Apr 2013 08:11:02 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1746] (Resolved) patch : DHCPD
        Export  Class drops free text indentation
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1746 has been updated by Carlos Vicente.

Category set to DHCP
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.5
Resolution set to fixed

Patch applied. Thank you!
----------------------------------------
Bug #1746: patch : DHCPD Export Class drops free text indentation
https://osl.uoregon.edu/redmine/issues/1746#change-3051

Author: Didier Moens
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DHCP
Target version: 1.0.5
Resolution: fixed


When adding multiple lines in the 'Include Text'-field in the DhcpScope form, 
DHCPD export only indents the first line.

The attached patch indents the full free-form text block.



-- 
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, 3 Apr 2013 08:14:40 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.4-44-gd4e3d3e
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  d4e3d3ea90055994ab103eed19e1602b9d758420 (commit)
      from  f6fc05f4c91fbcaf1c8a5ac4019b0d62cac724db (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 d4e3d3ea90055994ab103eed19e1602b9d758420
Author: Carlos Vicente <[email protected]>
Date:   Wed Apr 3 10:57:11 2013 -0400

    Fix for #1743 (Error while inserting bgp peering)

diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index 50db3d8..fea044f 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -2620,7 +2620,6 @@ sub update_bgp_peering {
        $logger->warn( sprintf("%s: Missing peer info. Cannot associate peering 
%s with an entity", 
                               $host, $peer->{address}) );
     }
-    $entity ||= 0;
     
     # Create a hash with the peering's info for update or insert
     my %pstate = (device      => $self,

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

Summary of changes:
 lib/Netdot/Model/Device.pm |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 7
Date: Wed, 3 Apr 2013 08:15:17 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1743] (Resolved) Error while
        inserting bgp peering
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1743 has been updated by Carlos Vicente.

Status changed from New to Resolved
Resolution set to fixed

Removed incorrect default assignment of value "0" for entity foreign key.
----------------------------------------
Bug #1743: Error while inserting bgp peering
https://osl.uoregon.edu/redmine/issues/1743#change-3052

Author: Carlos Vicente
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.5
Resolution: fixed


WARN - r1.domain: Missing peer info. Cannot associate peering 1.2.3.4 with an 
entity
ERROR: Error while inserting BGPPeering: Can't insert new BGPPeering: 
DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key 
constraint fa)
VALUES (?, ?, ?, ?, ?, ?, ?)
" with ParamValues: 0='1.2.3.4', 1=0, 2=0, 3=0, 4=0, 5='1.2.3.4', 6='98'] at 
/usr/share/perl5/DBIx/ContextualFetch.pm line 52.
 at /usr/local/netdot/bin/updatedevices.pl line 188


-- 
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 73, Issue 1
*******************************************

Reply via email to