Scenario:
Want to pass an array of numbers (50, 61, 3000) into a for loop in order to create 1) Vlan interface 2) IP address for that interface 3) DHCP network and scope.
Almost have it working, but the one thing that seems to be holding me up (sort of) is if the vlan already exists, the scripts fails there and exits.
Was wondering if there is an easy way to find out if a vlan exists. I’ve googled everywhere but cannot seem to find a simple way to determine if a vlan exists.
Any help would be greatly appreciated.
Thank you.