You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have been using for some time the module, and im more or less familiar with the way to actually add scope filters
to the panorama instance to get config data from the actual panorama system. But im facing an issue, that i am not been
able to solve.
I m coding some scripts to gather information on interfaces form panorama template, and im able to get data from virtual
router, ethernet interfaces, etc etc but no matter how i try i fail miserably to get any of the Layer3subinterfaces.
Does anybody have any example that could share or any tip to avoid continuing hitting my head against the wall ?
Im actually doing something like this, to get the Ethernet ones (tought i woul get all of them honestly), ad zones.
Any help will be more than appreciated. I know i can get it via REST api and via the horrible XML one, but would prefer to stay on the python module :-)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
i have been using for some time the module, and im more or less familiar with the way to actually add scope filters
to the panorama instance to get config data from the actual panorama system. But im facing an issue, that i am not been
able to solve.
I m coding some scripts to gather information on interfaces form panorama template, and im able to get data from virtual
router, ethernet interfaces, etc etc but no matter how i try i fail miserably to get any of the Layer3subinterfaces.
Does anybody have any example that could share or any tip to avoid continuing hitting my head against the wall ?
Im actually doing something like this, to get the Ethernet ones (tought i woul get all of them honestly), ad zones.
`
pano = panorama.Panorama(panoramaip, panoramaUser, "",panoramaApiKey)
scope=panorama.Template('Template X1')
pano.add(scope)
for x in panos.network.EthernetInterface.refreshall(scope):
print(x.about())
for x in panos.network.Zone.refreshall(scope):
print(x.about())
`
And i was expecting that with something like this i will get the vlan layer3 sub interfaces .. no luck
`for x in panos.network.Layer3Subinterface(scope):
... print(x.about())
`>>> scopeif=network.EthernetInterface('ethernet1/14.1234',mode='layer3')
Any help will be more than appreciated. I know i can get it via REST api and via the horrible XML one, but would prefer to stay on the python module :-)
Regards
Beta Was this translation helpful? Give feedback.
All reactions