HyperVDsc
HyperVDsc copied to clipboard
VMSwitch: Add NAT virtual switch support
With the introduction of Server 2016 TP3/TP4 there is a new NAT virtual switch type. This should be added to the xVMSwitch resource. How the NAT specific properties are handled will need to ironed out before implementing.
Do you think this should be a separate resource? If you are creating a NAT switch there are certain other steps that we need to perform such as setting the IP Range and Subnet. I have a resource that is already written for this and I can push it here. https://github.com/rchaganti/DSCResources/tree/master/cHyper-V/DSCResources/cNatSwitch
Thoughts?
@rchaganti I would love to see that functionality merged in! The only reason I mention a separate resource is if the NetNat cmdlets be used with some other functionality than the virtual NAT switch, like RRAS? If so, I think they probably should be in a separate resource.
@rchaganti @PlagueHO @kwirkykat Now that Server 2016 is officially out, can we think about implementing this? The *-NetNat cmdlets aren't really Hyper-V specific, so should they be in the xHyper-V module or another/different module?
@iainbrighton @rchaganti @kwirkykat - Good point. Perhaps xNetworking is a more appropriate location?
xNetworking is suitable for this given that this has nothing to with VM switches. I am in the process of refactoring cHyper-V and push this to xNetworking.
@rchaganti - Nice! :grin: