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. Can't create subnet DHCP scope (James Andrewartha)
2. Re: Can't create subnet DHCP scope (Carlos Vicente)
3. Re: Can't create subnet DHCP scope (James Andrewartha)
4. Re: Can't create subnet DHCP scope (Carlos Vicente)
5. Re: Can't create subnet DHCP scope (Carlos Vicente)
----------------------------------------------------------------------
Message: 1
Date: Tue, 24 Jul 2012 13:36:59 +0800
From: James Andrewartha <[email protected]>
Subject: [Netdot-users] Can't create subnet DHCP scope
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="ISO-8859-1"
Hi,
I recently installed Netdot 1.0.1-RC3, and I'm trying to add a DHCP
subnet scope. However, if I leave the version blank, I get this error:
> Can't call method "version" on an undefined value at
> /usr/local/netdot/lib/Netdot/Model/DhcpScope.pm line 609.
>
> Stack:
> [/usr/local/netdot/lib/Netdot/Model/DhcpScope.pm:552]
> [/usr/local/netdot/lib/Netdot/Model/DhcpScope.pm:89]
> [/usr/local/netdot/htdocs/management/dhcp_tasks.html:192]
> [/usr/local/netdot/htdocs/management/autohandler:81]
> [/usr/share/perl5/HTML/Mason/Request.pm:948]
>
> [/usr/local/netdot/htdocs/masondata/obj/1077268618/management/autohandler.obj:21]
> [/usr/local/netdot/htdocs/autohandler:76]
and if I put it in, I get:
> vlan10: Version field only applies to global scopes
I've upgraded to git branch netdot-1.0, no change. I also tried to sign
up to the redmine site, but never got an email to activate my account.
Thanks,
--
James Andrewartha
Network & Projects Engineer
Christ Church Grammar School
Claremont, Western Australia
Ph. (08) 9442 1757
Mob. 0424 160 877
------------------------------
Message: 2
Date: Tue, 24 Jul 2012 09:23:13 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] Can't create subnet DHCP scope
To: James Andrewartha <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi James,
On 7/24/12 1:36 AM, James Andrewartha wrote:
> Hi,
>
> I recently installed Netdot 1.0.1-RC3, and I'm trying to add a DHCP
> subnet scope. However, if I leave the version blank, I get this error:
>
>> Can't call method "version" on an undefined value at
>> /usr/local/netdot/lib/Netdot/Model/DhcpScope.pm line 609.
>>
>> Stack:
>> [/usr/local/netdot/lib/Netdot/Model/DhcpScope.pm:552]
>> [/usr/local/netdot/lib/Netdot/Model/DhcpScope.pm:89]
>> [/usr/local/netdot/htdocs/management/dhcp_tasks.html:192]
>> [/usr/local/netdot/htdocs/management/autohandler:81]
>> [/usr/share/perl5/HTML/Mason/Request.pm:948]
>>
>> [/usr/local/netdot/htdocs/masondata/obj/1077268618/management/autohandler.obj:21]
>> [/usr/local/netdot/htdocs/autohandler:76]
>
> and if I put it in, I get:
>
>> vlan10: Version field only applies to global scopes
>
> I've upgraded to git branch netdot-1.0, no change. I also tried to sign
> up to the redmine site, but never got an email to activate my account.
When you click on the [enable] button for the subnet, you have to assign
it to a "Global Scope". If you haven't created one, you click on [new]
and give it a name, add the IP version (4 or 6), then select type
"Global". This "Global" scope contains all the other scopes (subnets,
hosts, etc) and any globally significant attributes. Also, make sure you
mark it as "active", otherwise it won't get exported.
I think that what is happening is that you are selecting type "Subnet"
for the global scope.
Cheers,
--
cv
------------------------------
Message: 3
Date: Tue, 24 Jul 2012 21:45:20 +0800
From: James Andrewartha <[email protected]>
Subject: Re: [Netdot-users] Can't create subnet DHCP scope
To: Carlos Vicente <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <cc34c634.4057c%[email protected]>
Content-Type: text/plain; charset="us-ascii"
On 24/07/12 9:23 PM, "Carlos Vicente" <[email protected]> wrote:
>When you click on the [enable] button for the subnet, you have to assign
>it to a "Global Scope". If you haven't created one, you click on [new]
>and give it a name, add the IP version (4 or 6), then select type
>"Global". This "Global" scope contains all the other scopes (subnets,
>hosts, etc) and any globally significant attributes. Also, make sure you
>mark it as "active", otherwise it won't get exported.
>
>I think that what is happening is that you are selecting type "Subnet"
>for the global scope.
I already have a global scope, and am creating this one underneath as a
Subnet scope. The code for the first traceback is:
608 }elsif ( $type eq 'subnet' ){
609 if ( $fields{ipblock}->version != $fields{container}->version ){
610 $self->throw_user("$name: IP version in subnet scope does not
match IP version in container");
611 }
Which to me looks like a subnet scope is expected to have a version. But
then the other code path hasn't been updated to allow this.
--
James Andrewartha
Network & Projects Engineer
Christ Church Grammar School
Claremont, Western Australia
Ph. (08) 9442 1757
Mob. 0424 160 877
------------------------------
Message: 4
Date: Tue, 24 Jul 2012 10:00:03 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] Can't create subnet DHCP scope
To: James Andrewartha <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 7/24/12 9:45 AM, James Andrewartha wrote:
> On 24/07/12 9:23 PM, "Carlos Vicente" <[email protected]> wrote:
>> When you click on the [enable] button for the subnet, you have to assign
>> it to a "Global Scope". If you haven't created one, you click on [new]
>> and give it a name, add the IP version (4 or 6), then select type
>> "Global". This "Global" scope contains all the other scopes (subnets,
>> hosts, etc) and any globally significant attributes. Also, make sure you
>> mark it as "active", otherwise it won't get exported.
>>
>> I think that what is happening is that you are selecting type "Subnet"
>> for the global scope.
>
> I already have a global scope, and am creating this one underneath as a
> Subnet scope. The code for the first traceback is:
>
> 608 }elsif ( $type eq 'subnet' ){
> 609 if ( $fields{ipblock}->version != $fields{container}->version ){
> 610 $self->throw_user("$name: IP version in subnet scope does not
> match IP version in container");
> 611 }
>
>
> Which to me looks like a subnet scope is expected to have a version. But
> then the other code path hasn't been updated to allow this.
>
OK, it looks like you are using the [new] option under the main DHCP
tab, which uses the generic form. In that case, are you selecting the
subnet in the IP block field? That's where the code looks for the
version of the scope. You also must leave the "version" field blank, or
you'll get an error saying that the version field only applies to gobal
scopes.
In any case, when creating subnet scopes, it's simpler to look for the
subnet in the Address Space section, then click on the [enable] button
of the DHCP subsection.
--
cv
------------------------------
Message: 5
Date: Tue, 24 Jul 2012 10:31:04 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] Can't create subnet DHCP scope
To: James Andrewartha <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
I also just added an extra check to avoid this crash:
On 7/24/12 1:36 AM, James Andrewartha wrote:
> Can't call method "version" on an undefined value at
> /usr/local/netdot/lib/Netdot/Model/DhcpScope.pm line 609.
It will show an user-friendly error saying that the subnet IP block is
missing.
Thanks for reporting.
--
cv
------------------------------
_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users
End of Netdot-users Digest, Vol 44, Issue 14
********************************************