Question on calculate-zones #675
Replies: 7 comments 4 replies
-
it is the static routing table configured in the XML configuration:
*********** pan-os-php.php type=rule UTILITY **************
Usage examples:
Listing arguments: -- mode : Will determine what to do with resolved zones : show them, replace them in the rule , only append them (removes none but adds missing ones) or tag-add for unneeded zones -- virtualRouter : Can optionally be provided if script cannot find which virtualRouter it should be using (ie: there are several VR in same VSYS) -- template : When you are using Panorama then 1 or more templates could apply to a DeviceGroup, in such a case you may want to specify which Template name to use. -- vsys : specify vsys when script cannot autodetermine it or when you when to manually override |
Beta Was this translation helpful? Give feedback.
-
It's pulling in dynamic routes, too, which I wouldn't expect to be in the XML. And, as you quoted from the help, it says: "This Action will use routing tables to resolve zones." I'm wondering if it's RIB vs. FIB because for zone calculation purposes the RIB would be preferred (since all known routes would be in the RIB while the FIB only has the calculated best routes). |
Beta Was this translation helpful? Give feedback.
-
bump Just making sure you saw this one - no rush, though. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Prior to us discussing this in the Fall of 2021, it only pulled in static routes. I inquired about using dynamic routes and I thought that's what you had added (it certainly operates as if it's looking at dynamic routes) - I see the action matching zones to routes that are only available via OSPF or BGP. If it wasn't using dynamic routes there are routes we have that match to the static default route and everything not defined by an interface or static route would get the Internet zone as that's where the default route goes. |
Beta Was this translation helpful? Give feedback.
-
if you like to test another tool where Zone calculation is implemented, please check the Palo Alto Networks Expedition tool. |
Beta Was this translation helpful? Give feedback.
-
It appears that I owe you an apology. I understood what you were saying this whole time, but I guess I'm remembering things wrong which lead to my...opposition to what you were saying. When we looked at this last year, I had asked if it was possible to include dynamic routes and at the time you had said you understood what I was asking and would make some changes (this was on our Zoom call). I assumed the changes were the dynamic routes but it looks like it may have been a bug fix. What further compounded this is that in my (apparently flawed) memory is that I thought I had run this and it found zones from dynamic routes. Well, I just ran it again on a rule that has BGP routes for the source and OSPF routes for the destination and it failed to find any. Furthermore, I now remember having seen the warnings it shows about not finding a matching interface for various routes. I do recall at the time not knowing (realizing) what I was seeing as I was running an append command on over 3,000 rules and so it would fly by and I couldn't scroll back to see what might have been happening. |
Beta Was this translation helpful? Give feedback.
-
Regarding Expedition, I thought that v1.x also was limited to static routes/connected interfaces. Does it actually look at dynamic routes (not that I want to use it)? |
Beta Was this translation helpful? Give feedback.
-
Hi
Something I can't remember if we covered or not at the time - are you calculating based on the RIB or the FIB? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions