OmniVista 2500 - Create Deployment Script

Post Reply
TrX
Member
Posts: 4
Joined: 15 Nov 2018 04:56

OmniVista 2500 - Create Deployment Script

Post by TrX »

Hi,

I would like to create a deployment script with the following commands on every switch in the network:

vlan 11 enable name "Voice"
vlan 11 mobile-tag enable

vlan port mobile 1/8
lldp network-policy 1 application voice vlan 11 l2-priority 5 dscp 46
lldp network-policy 2 application voice-signaling vlan 11 l2-priority 0 dscp 26
lldp chassis tlv med  capability enable network-policy enable
lldp 1/8 med network-policy 1 2


Wil this work?

<js>
cli.sendCmd("vlan port mobile 1/8") 
cli.sendCmd("lldp network-policy 1 application voice vlan 11 l2-priority 5 dscp 46")
cli.sendCmd("lldp network-policy 2 application voice-signaling vlan 11 l2-priority 0 dscp 26")
cli.sendCmd("lldp chassis tlv med  capability enable network-policy enable")
cli.sendCmd("lldp 1/8 med network-policy 1 2")

cli.sendCmd("vlan 11 enable name "OCMW-Voice"")
cli.sendCmd("vlan 11 mobile-tag enable")
</js> 


Many thanks.
devnull
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 976
Joined: 07 Sep 2010 10:16
Location: Germany

Re: OmniVista 2500 - Create Deployment Script

Post by devnull »

As far as i know you don't have to use the js style, as you are only pushing static commands.
on your JS part: Unsure whether you can set a lldp network-policy with a vlan that is setup later
(vlan11 is sent later)

Try pasting this on a shell of a switch and look for errors, if that works you can put it into a cli script and push it to multiple switches.

Use your brain!
If you have already configured port 1/8 (e.g. with vlans/tagged ports) you may run into errors.

If you push that to your cores which have downlinks on 1/8 you may run into trouble.
If you already have a network policy you may run into trouble (test what happens)
If you push that to devices that don't support some of the features.. you mayrun into trouble.
Post Reply

Return to “OmniVista 2500 v4.x”