fix cfgdb.subnet_read to pass right arguments