Skip to content

Commit

Permalink
added diverter files & commands to bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
emoscardini committed Mar 26, 2024
1 parent 0bea847 commit ac7d040
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.4.3] - 2024-03-26
### Added

- Added diverter commands and file to bundle

## [1.4.2] - 2024-03-20
### Added

Expand Down
Binary file modified dist/support_bundle
Binary file not shown.
14 changes: 11 additions & 3 deletions support_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ def get_ziti_info(tmp_dir):
'/usr/lib/systemd/resolved.conf.d/01-netfoundry.conf',
'/usr/lib/systemd/resolved.conf.d/01-ziti.conf',
'/etc/salt/minion.d/nf-minion.conf',
'/var/log/router_registration.log'
'/var/log/router_registration.log',
'/opt/openziti/bin/user/user_rules.sh'
]
for ziti_file in other_ziti_files:
try:
Expand Down Expand Up @@ -467,9 +468,16 @@ def run_system_commands(output_dir):
["systemctl", "status","salt-minion"],
["systemctl", "status","ziti-router-upgrade"],
["curl", "https://localhost/version", "--insecure"],
["curl", "https://localhost/health-checks", "--insecure"]
["curl", "https://localhost/health-checks", "--insecure"],
["ls", "/opt/openziti/bin/"],
["ls", "/opt/openziti/etc/"],
["zfw", "-L", "-i"],
["zfw", "-L", "-f"],
["zfw", "-L", "-E"]
]

if os.path.isfile("/opt/openziti/bin/zfw"):
sys.path.append("/opt/openziti/bin")
output_file_list = []
for command in command_list:
if isinstance(command,list):
Expand Down Expand Up @@ -725,7 +733,7 @@ def main():
# main
if __name__ == '__main__':
try:
__version__ = '1.4.2'
__version__ = '1.4.3'
# change log
# https://github.com/netfoundry/edge-router-support-bundle/blob/main/CHANGELOG.md

Expand Down

0 comments on commit ac7d040

Please sign in to comment.