[c-nsp] switchport trunk allowed vlan

Arie Vayner (avayner) avayner at cisco.com
Sat Oct 30 17:16:38 EDT 2010


Tim,

Can you please explain a bit better what you would like to achieve?

Also, which IOS version please?

Tnx
Arie

-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Tim Durack
Sent: Friday, October 22, 2010 19:22
To: cisco-nsp at puck.nether.net
Subject: [c-nsp] switchport trunk allowed vlan

Anyone know what an EEM policy would look like to allow:

rtr-1(config-if)#switchport trunk allowed vlan ?
  add     add VLANs to the current list
  all     all VLANs
  except  all VLANs except the following
  none    no VLANs
  remove  remove VLANs from the current list

But deny:

rtr-1(config-if)#switchport trunk allowed vlan ?
  WORD    VLAN IDs of the allowed VLANs when this port is in trunking
mode

I know I can create an alias for adding/removing, but I would like to
see if I can disable the more dangerous form of this command ;-|

-- 
Tim:>
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list