opennetadmin / ona

OpenNetAdmin IP Address Management (IPAM) system
opennetadmin.com
GNU General Public License v2.0
136 stars 35 forks source link

Unable to add a subnet using dcm.pl #97

Closed nicsaravanan closed 8 years ago

nicsaravanan commented 8 years ago

Hi,

we want to add a subnet using dcm.pl , when we try we are getting the following error

/dcm.pl -r subnet_add name=newsub ip=192.168.104.0 netmask=255.255.255.0 type=VLAN vlan=OC-1,100 campus=OC

ERROR => The vlan/campus pair specified is invalid!

the VLAN 100 is already part of campus "OC"

mattpascoe commented 8 years ago

just checked in an update that should fix this. the vlan lookup function was not actually dealing with vlan numbers properly. If you pull from master you can get that update.