-
Notifications
You must be signed in to change notification settings - Fork 102
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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']): |
There was a problem hiding this comment.
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']): |
There was a problem hiding this comment.
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: | ||
|
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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+. |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments.
Add partial admin commit functionality supported in PanOS 8.0+.