Issue getting VLAN if network is Distribution virtual switch

Having issue Deploy vm from template network is Distribution virtual switch standard switch works fine

Need help regrading issue
I am able to deploy vm from the template successfully with out any issue if the network is standard switch also system will get the IP address .
Below configuration if try in DVS switch vm will be deploying but it is network label is not attaching.
Anything wrong in my code?

networks:

  • vlan: “{{ vlan }}”
    type: “static”
    device_type: vmxnet3
    ip: “{{ ip_addr }}”
    gateway: X.X.X.X
    netmask: X.X.X.X
    network: dvSwitch Network
    network_type: dvs