Skip to content

Conversation

@ngobert
Copy link

@ngobert ngobert commented Sep 4, 2019

Add partial admin commit functionality supported in PanOS 8.0+.

kwargs['extra_qs'] = options['ad_hoc']
if len(options['vsys']):
kwargs['vsys'] = options['vsys'][0]
if len(options['admin']):
Copy link
Owner

@kevinsteves kevinsteves Sep 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this diff is for type=commit only, not user-id

kwargs['extra_qs'] = options['ad_hoc']
if len(options['vsys']):
kwargs['vsys'] = options['vsys'][0]
if len(options['admin']):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff not for type=op

admin = s.split(',')
for admin in admin:
if admin:

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra blank line

def get_admin(s):
list = []
admin = s.split(',')
for admin in admin:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works but prefer something like for admin in admins:

--override element override template object at xpath
--vsys vsys VSYS for dynamic update/partial commit/
operational command/report
--admin admin admin for specific update/partial commit
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better is "admins for partial commit"

``--admin`` *admin*
Specify optional **admin** for partial commit (**--partial** admin). Commits
only the changes made only by specified administrator accounts. Requires
PanOS 8.0+.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest "PAN-OS 8.0 or greater" or "PAN-OS >= 8.0"

Copy link
Owner

@kevinsteves kevinsteves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants