Skip to content

Commit

Permalink
Added modules to retrieve policy group and security policy objects
Browse files Browse the repository at this point in the history
- plugins/modules/nsxt_policy_group_info.py
- plugins/modules/nsxt_policy_group_member_info.py
- plugins/modules/nsxt_policy_group_member_types.py
- plugins/modules/nsxt_policy_security_policy_facts.py
- plugins/modules/nsxt_policy_security_policy_rule_stats.py
- plugins/modules/nsxt_policy_security_policy_rules_facts.py

plugins/modules/common_utils.py modified.
Functions used for building query strings in URIs and for handling
retrieval of paged data were added.

The collection as it is now does not implement modules for the
retrieval of objects and focuses on CrUD ( no read ) functionality.
I want to work to flesh out the "R" functionality.

Signed-off-by: Ed McGuigan <ed.mcguigan@palmbeachschools.org>
  • Loading branch information
ParpingTam committed May 11, 2022
1 parent 6e3fde4 commit b88099a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/nsxt_policy_group_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ def main():

module.exit_json(changed=changed, **resp)
if __name__ == '__main__':
main()
main()
2 changes: 1 addition & 1 deletion plugins/modules/nsxt_policy_group_member_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ def main():

module.exit_json(changed=changed, **resp)
if __name__ == '__main__':
main()
main()
2 changes: 1 addition & 1 deletion plugins/modules/nsxt_policy_group_member_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ def main():
module.exit_json(changed=changed, **resp)

if __name__ == '__main__':
main()
main()
2 changes: 1 addition & 1 deletion plugins/modules/nsxt_policy_security_policy_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ def main():

module.exit_json(changed=changed, **resp)
if __name__ == '__main__':
main()
main()
8 changes: 7 additions & 1 deletion plugins/modules/nsxt_policy_security_policy_rules_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@
type: string
default: undef
<<<<<<< HEAD
=======
>>>>>>> Added modules to retrieve policy group and security policy objects
'''

EXAMPLES = '''
Expand All @@ -111,7 +114,10 @@
username: "admin"
password: "Admin!23Admin"
validate_certs: False
<<<<<<< HEAD
domain_id: default
=======
>>>>>>> Added modules to retrieve policy group and security policy objects
'''

RETURN = '''# '''
Expand Down Expand Up @@ -184,4 +190,4 @@ def main():

module.exit_json(changed=changed, **resp)
if __name__ == '__main__':
main()
main()

0 comments on commit b88099a

Please sign in to comment.