Skip to content
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

ENH: option to dynamically set the AMS net id at runtime #18

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

ZLLentz
Copy link
Member

@ZLLentz ZLLentz commented Mar 16, 2024

Description

Add a (default: true) option for setting the ams net id dynamically at runtime based on the current IP address.
This remains (default: false) for the vms for backcompat.

Built on top of #17 and includes the commits from that PR

Motivation and Context

An issue was brought up in the review that it'd be great to use these scripts to help us avoid ams net id collisions. This also goes a step further and helps us never need to manually set an ams net id ever again.

How Has This Been Tested?

Interactively I verified that this pulled the correct ams net id for the test plcs and that the non-dynamic mode could still be used.

Where Has This Been Documented?

Added a small note to https://confluence.slac.stanford.edu/display/PCDS/TcBSD+Ansible+Workflows

Pre-merge checklist

@ZLLentz ZLLentz requested review from ghalym and nrwslac March 16, 2024 00:22
ghalym
ghalym previously approved these changes Mar 18, 2024
@ZLLentz ZLLentz dismissed ghalym’s stale review March 18, 2024 16:38

The merge-base changed after approval.

@ZLLentz ZLLentz merged commit 24b4a11 into pcdshub:master Mar 18, 2024
1 check passed
@ZLLentz ZLLentz deleted the enh_dynamic_ams branch March 18, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants