Updates to have subnets leaded from config file.

Updates to have subnets leaded from config file.