Cloud Managed Networks

 View Only

Central Switch Template if statement fails and config reverts

This thread has been viewed 7 times
  • 1.  Central Switch Template if statement fails and config reverts

    Posted Oct 28, 2019 07:34 PM

    Hello,
    Trying to push the following config down to a switch and it appears to be sent down to the device, but then the device reverts back to its saved config:

     

    %if _sys_hostname=switch02%
    vlan 47
       name "asas"
       tagged 1
       no ip address
    exit
    %endif%

     

    The variable _sys_hostname matches (and is the one auto created upon importing the config into a template).

     

    The log output is as follows:

    I 10/29/19 10:27:23 05633 cfgRestore: Successfully restored source configuration
    REST_Payload to running configuration.
    I 10/29/19 10:27:21 05639 cfgRestore: Configuration restore to REST_Payload has
    failed, started recovery to source config.
    I 10/29/19 10:27:21 00002 vlan: VLAN47 virtual LAN disabled
    I 10/29/19 10:27:20 00001 vlan: VLAN47 virtual LAN enabled
    I 10/29/19 10:27:19 05690 cfgRestore: Configuration restore is initiated.

     

    I have 2 tac cases open but it has been weeks now with no result. It isnt a complex if statement in my opinion and i cant see why it wouldnt work. TAC has had a look and it has stumped them, plus they outright told me they dont know how to use if statements and are waiting for the escalations team.

     

    Any ideas? I am at a loss and have had to put in some messy config for a client in the interim.