illumio-pylo 0.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. illumio_pylo/API/APIConnector.py +1308 -0
  2. illumio_pylo/API/AuditLog.py +42 -0
  3. illumio_pylo/API/ClusterHealth.py +136 -0
  4. illumio_pylo/API/CredentialsManager.py +286 -0
  5. illumio_pylo/API/Explorer.py +1077 -0
  6. illumio_pylo/API/JsonPayloadTypes.py +240 -0
  7. illumio_pylo/API/RuleSearchQuery.py +128 -0
  8. illumio_pylo/API/__init__.py +0 -0
  9. illumio_pylo/AgentStore.py +139 -0
  10. illumio_pylo/Exception.py +44 -0
  11. illumio_pylo/Helpers/__init__.py +3 -0
  12. illumio_pylo/Helpers/exports.py +508 -0
  13. illumio_pylo/Helpers/functions.py +166 -0
  14. illumio_pylo/IPList.py +135 -0
  15. illumio_pylo/IPMap.py +285 -0
  16. illumio_pylo/Label.py +25 -0
  17. illumio_pylo/LabelCommon.py +48 -0
  18. illumio_pylo/LabelGroup.py +68 -0
  19. illumio_pylo/LabelStore.py +403 -0
  20. illumio_pylo/LabeledObject.py +25 -0
  21. illumio_pylo/Organization.py +258 -0
  22. illumio_pylo/Query.py +331 -0
  23. illumio_pylo/ReferenceTracker.py +41 -0
  24. illumio_pylo/Rule.py +671 -0
  25. illumio_pylo/Ruleset.py +306 -0
  26. illumio_pylo/RulesetStore.py +101 -0
  27. illumio_pylo/SecurityPrincipal.py +62 -0
  28. illumio_pylo/Service.py +256 -0
  29. illumio_pylo/SoftwareVersion.py +125 -0
  30. illumio_pylo/VirtualService.py +17 -0
  31. illumio_pylo/VirtualServiceStore.py +75 -0
  32. illumio_pylo/Workload.py +506 -0
  33. illumio_pylo/WorkloadStore.py +289 -0
  34. illumio_pylo/__init__.py +82 -0
  35. illumio_pylo/cli/NativeParsers.py +96 -0
  36. illumio_pylo/cli/__init__.py +134 -0
  37. illumio_pylo/cli/__main__.py +10 -0
  38. illumio_pylo/cli/commands/__init__.py +32 -0
  39. illumio_pylo/cli/commands/credential_manager.py +168 -0
  40. illumio_pylo/cli/commands/iplist_import_from_file.py +185 -0
  41. illumio_pylo/cli/commands/misc.py +7 -0
  42. illumio_pylo/cli/commands/ruleset_export.py +129 -0
  43. illumio_pylo/cli/commands/update_pce_objects_cache.py +44 -0
  44. illumio_pylo/cli/commands/ven_duplicate_remover.py +366 -0
  45. illumio_pylo/cli/commands/ven_idle_to_visibility.py +287 -0
  46. illumio_pylo/cli/commands/ven_upgrader.py +226 -0
  47. illumio_pylo/cli/commands/workload_export.py +251 -0
  48. illumio_pylo/cli/commands/workload_import.py +423 -0
  49. illumio_pylo/cli/commands/workload_relabeler.py +510 -0
  50. illumio_pylo/cli/commands/workload_reset_names_to_null.py +83 -0
  51. illumio_pylo/cli/commands/workload_used_in_rule_finder.py +80 -0
  52. illumio_pylo/docs/Doxygen +1757 -0
  53. illumio_pylo/tmp.py +104 -0
  54. illumio_pylo/utilities/__init__.py +0 -0
  55. illumio_pylo/utilities/cli.py +10 -0
  56. illumio_pylo/utilities/credentials.example.json +20 -0
  57. illumio_pylo/utilities/explorer_report_exporter.py +86 -0
  58. illumio_pylo/utilities/health_monitoring.py +102 -0
  59. illumio_pylo/utilities/iplist_analyzer.py +148 -0
  60. illumio_pylo/utilities/iplists_stats_duplicates_unused_finder.py +75 -0
  61. illumio_pylo/utilities/resources/iplists-import-example.csv +3 -0
  62. illumio_pylo/utilities/resources/iplists-import-example.xlsx +0 -0
  63. illumio_pylo/utilities/resources/workload-exporter-filter-example.csv +3 -0
  64. illumio_pylo/utilities/resources/workloads-import-example.csv +2 -0
  65. illumio_pylo/utilities/resources/workloads-import-example.xlsx +0 -0
  66. illumio_pylo/utilities/ven_compatibility_report_export.py +240 -0
  67. illumio_pylo/utilities/ven_idle_to_illumination.py +344 -0
  68. illumio_pylo/utilities/ven_reassign_pce.py +183 -0
  69. illumio_pylo-0.2.5.dist-info/LICENSE +176 -0
  70. illumio_pylo-0.2.5.dist-info/METADATA +197 -0
  71. illumio_pylo-0.2.5.dist-info/RECORD +73 -0
  72. illumio_pylo-0.2.5.dist-info/WHEEL +5 -0
  73. illumio_pylo-0.2.5.dist-info/top_level.txt +1 -0
@@ -0,0 +1,183 @@
1
+ import os
2
+ import sys
3
+ import argparse
4
+
5
+ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))))
6
+ import illumio_pylo as pylo
7
+
8
+
9
+ # <editor-fold desc="Argparse stuff">
10
+ parser = argparse.ArgumentParser(description='TODO LATER')
11
+ parser.add_argument('--pce', type=str, required=True,
12
+ help='hostname of the PCE')
13
+
14
+ parser.add_argument('--dev-use-cache', type=bool, nargs='?', required=False, default=False, const=True,
15
+ help='For developers only')
16
+ parser.add_argument('--debug', '-d', type=bool, nargs='?', required=False, default=False, const=True,
17
+ help='extra debugging messages for developers')
18
+
19
+ parser.add_argument('--filter-env-label', type=str, required=False, default=None,
20
+ help='Filter agents by environment labels (separated by commas)')
21
+ parser.add_argument('--filter-loc-label', type=str, required=False, default=None,
22
+ help='Filter agents by environment labels (separated by commas)')
23
+ parser.add_argument('--filter-app-label', type=str, required=False, default=None,
24
+ help='Filter agents by role labels (separated by commas)')
25
+ parser.add_argument('--filter-role-label', type=str, required=False, default=None,
26
+ help='Filter agents by role labels (separated by commas)')
27
+
28
+ parser.add_argument('--confirm', action='store_true',
29
+ help='Confirm reassignment request')
30
+ parser.add_argument('--stop-after', type=int, nargs='?', required=False, default=False, const=True,
31
+ help='Stop reassigning agents after X number of agents have already been processed')
32
+
33
+ parser.add_argument('--target-pce', type=str, required=True,
34
+ help='the new PCE these VENs should report to')
35
+
36
+ args = vars(parser.parse_args())
37
+ # </editor-fold>
38
+
39
+ if args['debug']:
40
+ pylo.log_set_debug()
41
+
42
+ hostname = args['pce']
43
+ use_cached_config = args['dev_use_cache']
44
+ request_upgrades = args['confirm']
45
+ target_pce_string = args['target_pce']
46
+ stop_after_x_agents = args['stop_after']
47
+
48
+ org = pylo.Organization(1)
49
+ fake_config = pylo.Organization.create_fake_empty_config()
50
+
51
+ if use_cached_config:
52
+ org.load_from_cache_or_saved_credentials(hostname)
53
+ else:
54
+ print(" * Looking for credentials for PCE '{}'... ".format(hostname), end="", flush=True)
55
+ connector = pylo.APIConnector.create_from_credentials_in_file(hostname, request_if_missing=True)
56
+ print("OK!")
57
+
58
+ print(" * Downloading Workloads/Agents listing from the PCE... ", end="", flush=True)
59
+ fake_config['workloads'] = connector.objects_workload_get()
60
+ print("OK!")
61
+
62
+ print(" * Downloading Labels listing from the PCE... ", end="", flush=True)
63
+ fake_config['labels'] = connector.objects_label_get()
64
+ print("OK!")
65
+
66
+ print(" * Parsing PCE data ... ", end="", flush=True)
67
+ org.pce_version = connector.version
68
+ org.connector = connector
69
+ org.load_from_json(fake_config)
70
+ print("OK!")
71
+
72
+ print(" * PCE data statistics:\n{}".format(org.stats_to_str(padding=' ')))
73
+
74
+ print(" * Parsing filters")
75
+
76
+ env_label_list = {}
77
+ if args['filter_env_label'] is not None:
78
+ print(" * Environment Labels specified")
79
+ for raw_label_name in args['filter_env_label'].split(','):
80
+ print(" - label named '{}'".format(raw_label_name), end='', flush=True)
81
+ label = org.LabelStore.find_label_by_name_and_type(raw_label_name, pylo.label_type_env)
82
+ if label is None:
83
+ print("NOT FOUND!")
84
+ raise pylo.PyloEx("Cannot find label named '{}'".format(raw_label_name))
85
+ else:
86
+ print(" FOUND")
87
+ env_label_list[label] = label
88
+
89
+ loc_label_list = {}
90
+ if args['filter_loc_label'] is not None:
91
+ print(" * Location Labels specified")
92
+ for raw_label_name in args['filter_loc_label'].split(','):
93
+ print(" - label named '{}' ".format(raw_label_name), end='', flush=True)
94
+ label = org.LabelStore.find_label_by_name_and_type(raw_label_name, pylo.label_type_loc)
95
+ if label is None:
96
+ print("NOT FOUND!")
97
+ raise pylo.PyloEx("Cannot find label named '{}'".format(raw_label_name))
98
+ else:
99
+ print("FOUND")
100
+ loc_label_list[label] = label
101
+
102
+ app_label_list = {}
103
+ if args['filter_app_label'] is not None:
104
+ print(" * Application Labels specified")
105
+ for raw_label_name in args['filter_app_label'].split(','):
106
+ print(" - label named '{}' ".format(raw_label_name), end='', flush=True)
107
+ label = org.LabelStore.find_label_by_name_and_type(raw_label_name, pylo.label_type_app)
108
+ if label is None:
109
+ print("NOT FOUND!")
110
+ raise pylo.PyloEx("Cannot find label named '{}'".format(raw_label_name))
111
+ else:
112
+ print("FOUND")
113
+ app_label_list[label] = label
114
+
115
+ role_label_list = {}
116
+ if args['filter_role_label'] is not None:
117
+ print(" * Role Labels specified")
118
+ for raw_label_name in args['filter_role_label'].split(','):
119
+ print(" - label named '{}' ".format(raw_label_name), end='', flush=True)
120
+ label = org.LabelStore.find_label_by_name_and_type(raw_label_name, pylo.label_type_role)
121
+ if label is None:
122
+ print("NOT FOUND!")
123
+ raise pylo.PyloEx("Cannot find label named '{}'".format(raw_label_name))
124
+ else:
125
+ print("FOUND")
126
+ role_label_list[label] = label
127
+
128
+
129
+ agents = org.AgentStore.items_by_href.copy()
130
+
131
+ for agent_href in list(agents.keys()):
132
+ agent = agents[agent_href]
133
+ workload = agent.workload
134
+
135
+ if len(env_label_list) > 0 and (workload.env_label is None or workload.env_label not in env_label_list):
136
+ del agents[agent_href]
137
+ continue
138
+ if len(loc_label_list) > 0 and (workload.loc_label is None or workload.loc_label not in loc_label_list):
139
+ del agents[agent_href]
140
+ continue
141
+ if len(app_label_list) > 0 and (workload.app_label is None or workload.app_label not in app_label_list):
142
+ del agents[agent_href]
143
+ continue
144
+
145
+ if len(role_label_list) > 0 and (workload.role_label is None or workload.role_label not in role_label_list):
146
+ del agents[agent_href]
147
+ continue
148
+
149
+ if 'active_pce_fqdn' in agent.raw_json and agent.raw_json['active_pce_fqdn'] == target_pce_string:
150
+ del agents[agent_href]
151
+ continue
152
+
153
+ print("")
154
+
155
+
156
+ print("\n *** Now Requesting Agents Reassignment to the new PCE '{}' ***".format(target_pce_string))
157
+ processed_agent_count = 0
158
+ for agent in agents.values():
159
+ if stop_after_x_agents is not False and processed_agent_count >= stop_after_x_agents:
160
+ print("\n ** Reassignment Processed stopped after {} agents as requested while there is {} more to process **".format(stop_after_x_agents, len(agents)-stop_after_x_agents))
161
+ break
162
+
163
+ print(" - Agent #{}/{}: wkl NAME:'{}' HREF:{} Labels:{}".format(processed_agent_count, len(agents), agent.workload.get_name(),
164
+ agent.workload.href,
165
+ agent.workload.get_labels_str())
166
+ )
167
+ if agent.workload.online is not True:
168
+ print(" * SKIPPED because Workload is not online")
169
+ continue
170
+ if not request_upgrades:
171
+ print(" * SKIPPED Reassign Request process as option '--confirm' was not used")
172
+ continue
173
+ if use_cached_config:
174
+ print(" * SKIPPED Upgrade process as --dev-use-cache option was used!")
175
+ continue
176
+
177
+ connector.objects_agent_reassign_pce(agent.href, target_pce_string)
178
+ processed_agent_count += 1
179
+
180
+
181
+ print("\n ** {} Agents were reassigned to PCE '{}' **".format(processed_agent_count, target_pce_string))
182
+
183
+
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,197 @@
1
+ Metadata-Version: 2.1
2
+ Name: illumio_pylo
3
+ Version: 0.2.5
4
+ Summary: A set of tools and library for working with Illumio PCE
5
+ Home-page: https://github.com/cpainchaud/pylo
6
+ Author: Christophe Painchaud
7
+ Author-email: shellescape@gmail.com
8
+ License: Apache License
9
+ Version 2.0, January 2004
10
+ http://www.apache.org/licenses/
11
+
12
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
13
+
14
+ 1. Definitions.
15
+
16
+ "License" shall mean the terms and conditions for use, reproduction,
17
+ and distribution as defined by Sections 1 through 9 of this document.
18
+
19
+ "Licensor" shall mean the copyright owner or entity authorized by
20
+ the copyright owner that is granting the License.
21
+
22
+ "Legal Entity" shall mean the union of the acting entity and all
23
+ other entities that control, are controlled by, or are under common
24
+ control with that entity. For the purposes of this definition,
25
+ "control" means (i) the power, direct or indirect, to cause the
26
+ direction or management of such entity, whether by contract or
27
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
28
+ outstanding shares, or (iii) beneficial ownership of such entity.
29
+
30
+ "You" (or "Your") shall mean an individual or Legal Entity
31
+ exercising permissions granted by this License.
32
+
33
+ "Source" form shall mean the preferred form for making modifications,
34
+ including but not limited to software source code, documentation
35
+ source, and configuration files.
36
+
37
+ "Object" form shall mean any form resulting from mechanical
38
+ transformation or translation of a Source form, including but
39
+ not limited to compiled object code, generated documentation,
40
+ and conversions to other media types.
41
+
42
+ "Work" shall mean the work of authorship, whether in Source or
43
+ Object form, made available under the License, as indicated by a
44
+ copyright notice that is included in or attached to the work
45
+ (an example is provided in the Appendix below).
46
+
47
+ "Derivative Works" shall mean any work, whether in Source or Object
48
+ form, that is based on (or derived from) the Work and for which the
49
+ editorial revisions, annotations, elaborations, or other modifications
50
+ represent, as a whole, an original work of authorship. For the purposes
51
+ of this License, Derivative Works shall not include works that remain
52
+ separable from, or merely link (or bind by name) to the interfaces of,
53
+ the Work and Derivative Works thereof.
54
+
55
+ "Contribution" shall mean any work of authorship, including
56
+ the original version of the Work and any modifications or additions
57
+ to that Work or Derivative Works thereof, that is intentionally
58
+ submitted to Licensor for inclusion in the Work by the copyright owner
59
+ or by an individual or Legal Entity authorized to submit on behalf of
60
+ the copyright owner. For the purposes of this definition, "submitted"
61
+ means any form of electronic, verbal, or written communication sent
62
+ to the Licensor or its representatives, including but not limited to
63
+ communication on electronic mailing lists, source code control systems,
64
+ and issue tracking systems that are managed by, or on behalf of, the
65
+ Licensor for the purpose of discussing and improving the Work, but
66
+ excluding communication that is conspicuously marked or otherwise
67
+ designated in writing by the copyright owner as "Not a Contribution."
68
+
69
+ "Contributor" shall mean Licensor and any individual or Legal Entity
70
+ on behalf of whom a Contribution has been received by Licensor and
71
+ subsequently incorporated within the Work.
72
+
73
+ 2. Grant of Copyright License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ copyright license to reproduce, prepare Derivative Works of,
77
+ publicly display, publicly perform, sublicense, and distribute the
78
+ Work and such Derivative Works in Source or Object form.
79
+
80
+ 3. Grant of Patent License. Subject to the terms and conditions of
81
+ this License, each Contributor hereby grants to You a perpetual,
82
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
83
+ (except as stated in this section) patent license to make, have made,
84
+ use, offer to sell, sell, import, and otherwise transfer the Work,
85
+ where such license applies only to those patent claims licensable
86
+ by such Contributor that are necessarily infringed by their
87
+ Contribution(s) alone or by combination of their Contribution(s)
88
+ with the Work to which such Contribution(s) was submitted. If You
89
+ institute patent litigation against any entity (including a
90
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
91
+ or a Contribution incorporated within the Work constitutes direct
92
+ or contributory patent infringement, then any patent licenses
93
+ granted to You under this License for that Work shall terminate
94
+ as of the date such litigation is filed.
95
+
96
+ 4. Redistribution. You may reproduce and distribute copies of the
97
+ Work or Derivative Works thereof in any medium, with or without
98
+ modifications, and in Source or Object form, provided that You
99
+ meet the following conditions:
100
+
101
+ (a) You must give any other recipients of the Work or
102
+ Derivative Works a copy of this License; and
103
+
104
+ (b) You must cause any modified files to carry prominent notices
105
+ stating that You changed the files; and
106
+
107
+ (c) You must retain, in the Source form of any Derivative Works
108
+ that You distribute, all copyright, patent, trademark, and
109
+ attribution notices from the Source form of the Work,
110
+ excluding those notices that do not pertain to any part of
111
+ the Derivative Works; and
112
+
113
+ (d) If the Work includes a "NOTICE" text file as part of its
114
+ distribution, then any Derivative Works that You distribute must
115
+ include a readable copy of the attribution notices contained
116
+ within such NOTICE file, excluding those notices that do not
117
+ pertain to any part of the Derivative Works, in at least one
118
+ of the following places: within a NOTICE text file distributed
119
+ as part of the Derivative Works; within the Source form or
120
+ documentation, if provided along with the Derivative Works; or,
121
+ within a display generated by the Derivative Works, if and
122
+ wherever such third-party notices normally appear. The contents
123
+ of the NOTICE file are for informational purposes only and
124
+ do not modify the License. You may add Your own attribution
125
+ notices within Derivative Works that You distribute, alongside
126
+ or as an addendum to the NOTICE text from the Work, provided
127
+ that such additional attribution notices cannot be construed
128
+ as modifying the License.
129
+
130
+ You may add Your own copyright statement to Your modifications and
131
+ may provide additional or different license terms and conditions
132
+ for use, reproduction, or distribution of Your modifications, or
133
+ for any such Derivative Works as a whole, provided Your use,
134
+ reproduction, and distribution of the Work otherwise complies with
135
+ the conditions stated in this License.
136
+
137
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
138
+ any Contribution intentionally submitted for inclusion in the Work
139
+ by You to the Licensor shall be under the terms and conditions of
140
+ this License, without any additional terms or conditions.
141
+ Notwithstanding the above, nothing herein shall supersede or modify
142
+ the terms of any separate license agreement you may have executed
143
+ with Licensor regarding such Contributions.
144
+
145
+ 6. Trademarks. This License does not grant permission to use the trade
146
+ names, trademarks, service marks, or product names of the Licensor,
147
+ except as required for reasonable and customary use in describing the
148
+ origin of the Work and reproducing the content of the NOTICE file.
149
+
150
+ 7. Disclaimer of Warranty. Unless required by applicable law or
151
+ agreed to in writing, Licensor provides the Work (and each
152
+ Contributor provides its Contributions) on an "AS IS" BASIS,
153
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
154
+ implied, including, without limitation, any warranties or conditions
155
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
156
+ PARTICULAR PURPOSE. You are solely responsible for determining the
157
+ appropriateness of using or redistributing the Work and assume any
158
+ risks associated with Your exercise of permissions under this License.
159
+
160
+ 8. Limitation of Liability. In no event and under no legal theory,
161
+ whether in tort (including negligence), contract, or otherwise,
162
+ unless required by applicable law (such as deliberate and grossly
163
+ negligent acts) or agreed to in writing, shall any Contributor be
164
+ liable to You for damages, including any direct, indirect, special,
165
+ incidental, or consequential damages of any character arising as a
166
+ result of this License or out of the use or inability to use the
167
+ Work (including but not limited to damages for loss of goodwill,
168
+ work stoppage, computer failure or malfunction, or any and all
169
+ other commercial damages or losses), even if such Contributor
170
+ has been advised of the possibility of such damages.
171
+
172
+ 9. Accepting Warranty or Additional Liability. While redistributing
173
+ the Work or Derivative Works thereof, You may choose to offer,
174
+ and charge a fee for, acceptance of support, warranty, indemnity,
175
+ or other liability obligations and/or rights consistent with this
176
+ License. However, in accepting such obligations, You may act only
177
+ on Your own behalf and on Your sole responsibility, not on behalf
178
+ of any other Contributor, and only if You agree to indemnify,
179
+ defend, and hold each Contributor harmless for any liability
180
+ incurred by, or claims asserted against, such Contributor by reason
181
+ of your accepting any such warranty or additional liability.
182
+
183
+ END OF TERMS AND CONDITIONS
184
+ Project-URL: Homepage, https://github.com/cpainchaud/pylo
185
+ Project-URL: Issues, https://github.com/cpainchaud/pylo/issues
186
+ Requires-Python: >=3.11
187
+ License-File: LICENSE
188
+ Requires-Dist: click ==8.1.7
189
+ Requires-Dist: colorama ~=0.4.4
190
+ Requires-Dist: cryptography ~=42.0.5
191
+ Requires-Dist: openpyxl ~=3.1.2
192
+ Requires-Dist: paramiko ~=3.4.0
193
+ Requires-Dist: prettytable ~=3.10.0
194
+ Requires-Dist: requests ~=2.31.0
195
+ Requires-Dist: xlsxwriter ~=3.2.0
196
+
197
+ README.md
@@ -0,0 +1,73 @@
1
+ illumio_pylo/AgentStore.py,sha256=O4dz9m0KM0TQPZvvEMoD_5pCkMvQ70YVDaWqbqqhR4k,5091
2
+ illumio_pylo/Exception.py,sha256=3lxS-ANBaEvHAKhDb8UzNLj5IpQBmRHNs4YkHONmQjs,1033
3
+ illumio_pylo/IPList.py,sha256=XljZM4AHjM59PoR0bPLoJDVjLFJGVjewF91GwXV29UY,4501
4
+ illumio_pylo/IPMap.py,sha256=Jh7qpsp2G8faHU6hX6ahvpoJGJkmuLYyCEn1YVUl_2k,9980
5
+ illumio_pylo/Label.py,sha256=4lP7t-elH3NiTVaV1l73xh-5Dpi-3ZETmJZ9DcIFDEw,736
6
+ illumio_pylo/LabelCommon.py,sha256=2HzljD2xJSBjf4Ywxk8JpBQQfbiZILCMV_Mj_EATIGk,1500
7
+ illumio_pylo/LabelGroup.py,sha256=bVXvONHwR44GkF-9S19Fs2cnc4g8IW42VjyKi7QXmvQ,2624
8
+ illumio_pylo/LabelStore.py,sha256=_feA5HdrfnOgcWStBToesu1S2ymHQKEKEG2Ygcadh9g,19809
9
+ illumio_pylo/LabeledObject.py,sha256=6j80GB5RQqgN4dvGSbcwd1ZS8j_VE4qwhbAlBt9OwS8,651
10
+ illumio_pylo/Organization.py,sha256=Cz9bTBQKuMkjGDV21G4NdPm18SwMnpuzO8Z3UjKAY4U,12242
11
+ illumio_pylo/Query.py,sha256=lgLjst41ma3HMVkngvTjL7zSLjh80RoXYL5vS3PWO7Q,13330
12
+ illumio_pylo/ReferenceTracker.py,sha256=HyY0NwZwOdAzSXJrs6i6dhB_kgn1tidZL5LFLLkPuSM,1070
13
+ illumio_pylo/Rule.py,sha256=pHTe-7eLgJ-ucXHvv6XQWihQ8WPhNoxCzTJ9NvJHj44,25496
14
+ illumio_pylo/Ruleset.py,sha256=f8HIS2LIQ-LRBYWooLur_AR0OwMOTVpMquYAjwQZdcM,11987
15
+ illumio_pylo/RulesetStore.py,sha256=wJLAKi32y-YiI8NLWWa_Ykrn54AQDcLz3rRlvTGUToI,3379
16
+ illumio_pylo/SecurityPrincipal.py,sha256=8c7VYirJvByjW4r8Vz4NYHXlGYawOVE6YHDpizSIIO4,2280
17
+ illumio_pylo/Service.py,sha256=AIvBd_2p_ZSwakZLW__i8uwBnT0LPSXSSI0NzRIQGlI,8012
18
+ illumio_pylo/SoftwareVersion.py,sha256=Wg8Mi7vcoL9JgFSRo3i5aiX_OkUIU3ahmgLUrzJ9JYw,4348
19
+ illumio_pylo/VirtualService.py,sha256=KAKE4iWuNmOumGradR2vwZxZ_3iiZg4pBST5ixCZSng,561
20
+ illumio_pylo/VirtualServiceStore.py,sha256=b6bcMixq0Vfv7WjQTQnFHGCv_Mld7sOfvGi4NtFAMQ4,3057
21
+ illumio_pylo/Workload.py,sha256=IEgxTs7FXQi2kU8o-EcdcNsYtUWGR8Ak9WqcY7xPdlE,18972
22
+ illumio_pylo/WorkloadStore.py,sha256=NpZbHblaqAw2BYEyWRmE4zMd5a4ZK7XjgSmOY0awIr8,10625
23
+ illumio_pylo/__init__.py,sha256=QJonnBmUx06ukjWT-3Jd6XSE6vHqOzSWTOCQePO3TV4,4129
24
+ illumio_pylo/tmp.py,sha256=tIdrjA-I3neGOzZLXt1Xyr7U3KNZDNpVareGLIrxJck,2639
25
+ illumio_pylo/API/APIConnector.py,sha256=CMULUbBLCAl8XeHkD2SeQW7YoNrlO0keRbSRbbpaHnc,59005
26
+ illumio_pylo/API/AuditLog.py,sha256=p0mfjrE5S8qoJgA5LIP_XGFBP3iL86Nl6BQEmhMVrPA,1533
27
+ illumio_pylo/API/ClusterHealth.py,sha256=GdMpVQrHUW4zLM-409GcPHM8H8b3LAppO37ZcUZyT_Q,5122
28
+ illumio_pylo/API/CredentialsManager.py,sha256=8Z_R3AuVJk3Nhq1cwxHDBXp-z3GfIGOaNQeZBFpAw3c,10909
29
+ illumio_pylo/API/Explorer.py,sha256=fFAIF-67_uuKgJOP0eZPPJrOGuYmFl33GK75AyMjgJU,47590
30
+ illumio_pylo/API/JsonPayloadTypes.py,sha256=GB718ljkcSKSyxrEgv5v9Fwew7cDoRZT9BX6k1F24nE,6549
31
+ illumio_pylo/API/RuleSearchQuery.py,sha256=O0-MsUXhwmywoO0G-GXnLq6kkVC9LgmxMZwqVKc_oJE,5325
32
+ illumio_pylo/API/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
+ illumio_pylo/Helpers/__init__.py,sha256=6E2eTZe-4qfPKGjRRQNtYsPrBhJSAjbdvv_DpniV_rY,49
34
+ illumio_pylo/Helpers/exports.py,sha256=5DMsOFFLL0hlpkgy0rqefLOmt3EWTxBh-TbQfUHJAXY,21186
35
+ illumio_pylo/Helpers/functions.py,sha256=TjI_NmD3cm1Escp3h51SFEDgS1vT9dUa8PX9-e0siao,4680
36
+ illumio_pylo/cli/NativeParsers.py,sha256=nzDL54EV0J-Iz0P9EkeiPl6DWQBSbCu-MpEPRad3j6c,4055
37
+ illumio_pylo/cli/__init__.py,sha256=IUu28pYmwkzV7jRg5GSIrUldQV1vGyoJDrPw78LoMA4,6109
38
+ illumio_pylo/cli/__main__.py,sha256=ll1gK8k1YL_kPsImI7WVlw2sCyNyhocnuCqko6mGaYI,223
39
+ illumio_pylo/cli/commands/__init__.py,sha256=wGP3U6I1fO13_-HzF0EKURhUvZetC5cXKDN8slaVVuA,1388
40
+ illumio_pylo/cli/commands/credential_manager.py,sha256=oS7fM7HMmkaLoQZHOctpSZNeCgIqZpl9-y2C3OBt0Tk,6868
41
+ illumio_pylo/cli/commands/iplist_import_from_file.py,sha256=kyEkNu9kjCsZQ45ZafOuOKMsSsmn6CxCgAOKTGY6Y_s,8278
42
+ illumio_pylo/cli/commands/misc.py,sha256=uOM7gz6CDHVkLbgpQjYvyHnhLLgAOF7G59FQ5sV6BFA,181
43
+ illumio_pylo/cli/commands/ruleset_export.py,sha256=sVAyHrgMb4r9FNSv-b9KsJQPRpcROTR32Q0aBAQAcQE,5537
44
+ illumio_pylo/cli/commands/update_pce_objects_cache.py,sha256=kNBAmPIbJyw97FRcNREy059A5FLOGm_poKJYGdTWqr4,1256
45
+ illumio_pylo/cli/commands/ven_duplicate_remover.py,sha256=HMg8X5ZpJZDbuglZCg2a1xMzKlmI8LRybrK6ur8AweA,18951
46
+ illumio_pylo/cli/commands/ven_idle_to_visibility.py,sha256=dNLPA4t1O-aAh3AXEX5veJFds8Rf1_PWRSW9T1QrBnE,13381
47
+ illumio_pylo/cli/commands/ven_upgrader.py,sha256=K6xHDihg2CgwNqNMkHHMXVySyjJOZz7iJ4xF8lmk2D0,11026
48
+ illumio_pylo/cli/commands/workload_export.py,sha256=3kA7QNOmcdTUuOPrWLeJNLTVsyayxoOM5Y1yF4J2_98,11109
49
+ illumio_pylo/cli/commands/workload_import.py,sha256=_OQ0GboV7VPANgzZnhb1a4HEAKfmpVRoeyZu991TcL0,20635
50
+ illumio_pylo/cli/commands/workload_relabeler.py,sha256=cB0C0GWaZDXyyBgMfj_cohlEsPoTZDGXitYo7g8BUNA,25189
51
+ illumio_pylo/cli/commands/workload_reset_names_to_null.py,sha256=hVPo2EDIzJEQboVm4q6eiLvtjJbpBEXcMoAEsTPvXGM,3377
52
+ illumio_pylo/cli/commands/workload_used_in_rule_finder.py,sha256=2MO9jjYh-mkY6rkfvDyW0Ok6El_AqDWGXiFDYq5YgTk,3361
53
+ illumio_pylo/docs/Doxygen,sha256=AVvSIRYLHFWJ15YLGahhzhsW0ZUUFO5lVxd2-F3iWz8,74257
54
+ illumio_pylo/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ illumio_pylo/utilities/cli.py,sha256=7Wv7qhdc91-vsaxiu4j8k7LY7V9dcwWHnHV7PLpOBAI,320
56
+ illumio_pylo/utilities/credentials.example.json,sha256=CZcp3aAbdVljfyQzFbgxIZCU9Ln2eWZKfWcmN9VAeVc,439
57
+ illumio_pylo/utilities/explorer_report_exporter.py,sha256=23wUjqc20eHgvwxyVYuoFfNozah2491XFaTUFBYHw7w,2693
58
+ illumio_pylo/utilities/health_monitoring.py,sha256=sqe9gArMZm3s8y6Jg6F9SO_Rm2dj1aM99xpPi8WSFZc,3700
59
+ illumio_pylo/utilities/iplist_analyzer.py,sha256=FEvWBplgJz-sQ_hsRD8vUVucFuLLi1UzpwQyj5bsuLM,5013
60
+ illumio_pylo/utilities/iplists_stats_duplicates_unused_finder.py,sha256=cmxf_PUG5h3apmLLzIeAhKujUfm9QDOEF-TNK0ZEu8I,2547
61
+ illumio_pylo/utilities/ven_compatibility_report_export.py,sha256=fllRDquAmgnlRn-bPP4vrz_YNQA2ObpGbGfcrv8VR7M,9565
62
+ illumio_pylo/utilities/ven_idle_to_illumination.py,sha256=GKfpKHN4KdtYcmm-tepFaQhCtk-vLg5dH-NdnR2FJeU,14824
63
+ illumio_pylo/utilities/ven_reassign_pce.py,sha256=eKMfVMgkESBI-fXB-sBHMOsW24ooN-ng4mP9LOLpkW8,7700
64
+ illumio_pylo/utilities/resources/iplists-import-example.csv,sha256=beM9OBWJQNiYXlGh1KYiHxCN8LpZk4uPpoiO14-CgOE,200
65
+ illumio_pylo/utilities/resources/iplists-import-example.xlsx,sha256=VW-7CRr8NA2Vultv9jLGd8-_jzVp5ZtL3KgswjOUHeQ,16893
66
+ illumio_pylo/utilities/resources/workload-exporter-filter-example.csv,sha256=cn5IA8AGEPjvS-EsPXA_GJ-LFsdF9t_44rSzFTCmAzE,36
67
+ illumio_pylo/utilities/resources/workloads-import-example.csv,sha256=DEOGVikFjxQpMFFI0l0jb3hrxEEeZCpTGkmWkz6GUcY,91
68
+ illumio_pylo/utilities/resources/workloads-import-example.xlsx,sha256=U8Ac2BZidA6NlvBFAVPHqeY5zmg3rjmIAXp5b3b1P5w,17101
69
+ illumio_pylo-0.2.5.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
70
+ illumio_pylo-0.2.5.dist-info/METADATA,sha256=i9SEpntCasrOYFfIPNEbiNviyHwTggT5Zd-78xNKNtw,12224
71
+ illumio_pylo-0.2.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
72
+ illumio_pylo-0.2.5.dist-info/top_level.txt,sha256=c5cu_ZMuSuxjq48ih58Kc0Tr8-JdQtV8GrKJicvWNFE,13
73
+ illumio_pylo-0.2.5.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ illumio_pylo