PaloAltoNetworks / terraform-provider-panos

Terraform Panos provider
https://www.terraform.io/docs/providers/panos/
Mozilla Public License 2.0
87 stars 69 forks source link

Static Routes created in template stack delete statis routes inherited from parent template #337

Open Marek-Madi opened 2 years ago

Marek-Madi commented 2 years ago

Describe the bug

You have template and template stack inheriting from that template. If you create static routes in the template and then afterwards you create some additional static routes in the template stack, the static routes from the template no longer appear on the virtual router in the template stack

Expected behavior

Via GUI when you override virtual router in template stack in order to add additional static route, it keeps all inherited static routes from the main template

Current behavior

You have template and template stack inheriting from that template. If you create static routes in the template and then afterwards you create some additional static routes in the template stack, the static routes from the template no longer appear on the virtual router in the template stack

Possible solution

Steps to reproduce

Create static routes in template, and then create static routes in template stack

Screenshots

Context

Your Environment

welcome-to-palo-alto-networks[bot] commented 2 years ago

:tada: Thanks for opening your first issue here! Welcome to the community!

shinmog commented 2 years ago

Hi, can you please share a plan file that shows what you're describing?

Marek-Madi commented 1 year ago

Hello, sorry for the late reply. Unfortunately it is not seen in the plan. I have attached the tf file to configure it and plan what it shows it will configure. plan.txt tf_code.txt

We configure one static route under template and one static route under template stack. So under template_stack we should be seeing both routes but we are seeing single route (created by template_stack object).

When the same operations are done in GUI, this doesn't happen.

Template routing table image

Template stack routing table image