Skip to content

Commit

Permalink
pan.config: Support 11.0.0 config for set format.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsteves committed Mar 3, 2023
1 parent b191e65 commit c8b02fb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/pan/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,14 @@ def config_xpaths(self):
./shared
'''

xpaths_panos = xpaths_panos_9_1
s = '''./devices/entry[@name='localhost.localdomain']/cluster'''
x = xpaths_panorama_8_0.split('\n')
x.insert(1, s)
xpaths_panorama_11_0 = '\n'.join(x)

xpaths_panos = xpaths_panos_10_2
xpaths_panos_multi_vsys = xpaths_panos_multi_vsys_4_1
xpaths_panorama = xpaths_panorama_8_0
xpaths_panorama = xpaths_panorama_11_0

if self.config_version() is not None:
if self.config_version() in ['5.0.0', '5.1.0']:
Expand Down Expand Up @@ -678,6 +683,9 @@ def config_xpaths(self):
elif self.config_version() in ['10.2.0']:
xpaths_panos = xpaths_panos_10_2
xpaths_panorama = xpaths_panorama_8_0
elif self.config_version() in ['11.0.0']:
xpaths_panos = xpaths_panos_10_2
xpaths_panorama = xpaths_panorama_11_0

if self.config_multi_vsys():
xpaths = xpaths_panos_multi_vsys
Expand Down

0 comments on commit c8b02fb

Please sign in to comment.