Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial admin commit #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Partial admin commit #36

wants to merge 2 commits into from

Conversation

ngobert
Copy link

@ngobert ngobert commented Sep 4, 2019

Add partial admin commit functionality supported in PanOS 8.0+.

@@ -171,6 +171,8 @@ def main():
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

@@ -276,6 +278,8 @@ def main():
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:

@@ -880,6 +902,7 @@ def usage():
--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