My script on NetSight
#@MetaDataStart
#############################################################################################
# Define your user parameters in this section. For reference, see EPICenter bundled scripts.
#############################################################################################
#@VariableFieldLabel (description = "VLAN Name",
# type = String,
# scope = global,
# required = yes
# )
set var vlanname ""
##############################################################################################
#@VariableFieldLabel (description = "VLAN Tag", type = String,
# scope = global,
# required = yes
# )
set var vlannametag ""
#@MetaDataEnd
# Enter all CLI commands from here
create vlan $vlanname
config vlan $vlanname tag $vlannametag
disable igmp snooping vlan $vlanname
config eaps burke_commerce add protected $vlanname
config $vlanname add port $port tagged
regexp {.*Adding EAPS ring ports to a VLAN could cause a loop.*} ${CLI.OUT} foundit
IF ([info exists foundit]) THEN
CLI y
ENDIF