Skip to content

Commit

Permalink
set fabric port to 443 on versions 0.30.0 or above
Browse files Browse the repository at this point in the history
  • Loading branch information
emoscardini committed Aug 25, 2023
1 parent 7457c71 commit 5da1575
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG
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.0.10] - 2023-08-25

### Changed
- Change fabric port to 443 for ziti version 0.30.0 and above

## [1.0.9] - 2023-08-02

- Rebuild to comsume ziti_router_auto_enroll 1.0.11.
Expand Down
12 changes: 11 additions & 1 deletion router_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def create_parser():
:return: A Namespace containing arguments
"""
__version__ = '1.0.9'
__version__ = '1.0.10'
parser = argparse.ArgumentParser()

parser.add_argument('registration_key',
Expand Down Expand Up @@ -605,6 +605,16 @@ def handle_ziti_router_auto_enroll(args, router_info, enrollment_commands):
else:
enrollment_commands.append(router_info['productMetadata']['zitiBinaryBundleLinuxAMD64'])

# check if ziti version is 0.30.0 or above
fabric_port = ziti_router_auto_enroll.compare_semver(
router_info['productMetadata']['zitiVersion'],'0.30.0'
)

# pass in fabric port 443 for versions 0.30.0 and above
if fabric_port >= 0:
logging.debug("Setting fabric port to 443")
enrollment_commands.append('--controllerFabricPort')
enrollment_commands.append('443')
# print enrollment command in debug
logging.debug(enrollment_commands)

Expand Down

0 comments on commit 5da1575

Please sign in to comment.