interface range command/macro supported within another macro

From: Brian Green (brian2331@yahoo.com)
Date: Sun Jun 04 2006 - 03:19:13 ART


Hi Guys,
   
   can someone please tell me why an interface range command is not recognized within a macro ???
   
  i have traced and checked that the macro (TEST1) has no errors to it, but still when i apply the macro ( see below) i do only see the first interface (f0/14) within the range command get the config i am trying to put.....
   
  macro name TEST1
interface range f0/14 - 17
switchport mode access
switchport access vlan $V
speed $S
duplex $D
   
  3550(config)#macro global trace TEST1 $V 4 $S 10 $D half
Applying command... 'interface range f0/14 - 17'
Applying command... 'switchport mode access'
Applying command... 'switchport access vlan 4'
Applying command... 'speed 10'
Applying command... 'duplex half'
3550(config)#macro global apply TEST1 $V 4 $S 10 $D half
3550(config)#do sh vlan
  VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                      Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                     Fa0/12, Fa0/13, Fa0/21, Fa0/22
                                                     Gi0/1, Gi0/2
2 TWO active Fa0/20
3 3 active Fa0/9, Fa0/15, Fa0/16, Fa0/17
                                                   Fa0/19
4 4 active Fa0/14

  interface FastEthernet0/14
 switchport access vlan 4
 switchport mode access
 duplex half
 speed 10
!
interface FastEthernet0/15
 switchport mode dynamic desirable
!
interface FastEthernet0/16
 switchport mode dynamic desirable
!
interface FastEthernet0/17
 switchport mode dynamic desirable
   
   
   
  Can we not achieve this result ?????
   
  And further, if i define an interface range macro like:
   
  define interface-range JJJ FastEthernet0/14 - 17
   
  can i call this macro within the TEST macro ... like ::
   
  macro name TEST
interface range macro JJ
switchport mode access
switchport access vlan $V
speed $S
duplex $D
   
   
  I have tried ... but have failed ..... please advise ...
   
  i think ive missed something really basic here :-(
   
  any help is appreciated !
   
  thanks
   
  Brian

                
---------------------------------
Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail Beta.



This archive was generated by hypermail 2.1.4 : Sat Jul 01 2006 - 07:57:31 ART