Update virtual_switch.rb to eliminate top-level constants

Without this patch, some warnings were raise while running puppet.

Inspired on: https://github.com/joshcooper/puppetlabs-powershell/commit/ca7586758ce637ca881f3448f1bf4c198ca8e49c