Move create_vnodes from Class Server to Mom in PTL
Follow the PBS Pro Design Document Guidelines.
Links
Link to discussion on Developer Forum: https://community.openpbs.org/t/move-create-vnodes-from-class-server-to-mom-in-ptl/2266
Overview
create_vnodes is a mom specific functionality. So it should be under Class Mom.
Remove name and mom object attribute from create_vnodes method arguments.
Use mom.shortname as the prefix to create vnodes to be consistent across all platforms.
Add vname attribute to create_vnodes method to provide an option to give vnode_prefix only if it is necessary for testing. For example: Testing a long vnode name, Having multiple vnode files.