Template Variables - vrouter destination

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Template Variables - vrouter destination

L2 Linker

I seem to not be able to use a template variable as a route destination in a vrouter.  There is an option to create a variable in the destination field, but it becomes an invalid option after creating.

jasonrakers_1-1647027402719.png

 

jasonrakers_0-1647027347760.png

 

If you know how to make this work, please let me know.

1 accepted solution

Accepted Solutions

L2 Linker

I have been able to get this to work for my immediate needs.  However, the behavior to accept a variable entry in this field seems inconsistent. It doesn't appear to like it when you attempt to modify a variable with a different variable.  My support case is still pending, but I uploaded a video of the problem where sometimes the variable is recognized as valid and other times it is recognized as invalid.   My recommendation is if the variable is not being recognized, delete the route entry, create a new route entry with your pre-existing variable or a new variable.  Best I can say is when it works, it works, but sometimes it does not work. As @PavelK mentioned, if you are using pre-existing variables, typing $ in the destination field should locate the variables, if no variables populate that is a bad sign indicating you will need to delete the route entry and create it again. 

View solution in original post

4 REPLIES 4

Cyber Elite
Cyber Elite

Thank you for the post @jasonrakers

 

After you create a variable, it should be selectable from the drop down menu. If you can't see it, would it be possible to navigate first to Template/Template Stack where you want to create a static route and create a variable from there? Please refer to Step No.3: https://docs.paloaltonetworks.com/panorama/9-1/panorama-admin/manage-firewalls/manage-templates-and-... then come back to the Template/Template Stack and confirm you can see it from drop down in the static route's destination field?

 

Kind Regards

Pavel

Help the community: Like helpful comments and mark solutions.

Thanks, I do see the variable under Manage in the Template, but it does not show up as as a selection for route destination.  I opened a case with support it might be a bug with 9.1.12-h3.

Cyber Elite
Cyber Elite

@jasonrakers thank you for quick reply. I see. I was not able to preproduce this issue with 9.1.12-h3, however I would appreciate feedback if you find a resolution through TAC.

 

Kind Regards

Pavel

Help the community: Like helpful comments and mark solutions.

L2 Linker

I have been able to get this to work for my immediate needs.  However, the behavior to accept a variable entry in this field seems inconsistent. It doesn't appear to like it when you attempt to modify a variable with a different variable.  My support case is still pending, but I uploaded a video of the problem where sometimes the variable is recognized as valid and other times it is recognized as invalid.   My recommendation is if the variable is not being recognized, delete the route entry, create a new route entry with your pre-existing variable or a new variable.  Best I can say is when it works, it works, but sometimes it does not work. As @PavelK mentioned, if you are using pre-existing variables, typing $ in the destination field should locate the variables, if no variables populate that is a bad sign indicating you will need to delete the route entry and create it again. 

  • 1 accepted solution
  • 2372 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!