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

Added port creation and floating IP logic. #11

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

skanthed
Copy link
Contributor

@skanthed skanthed commented Oct 7, 2024

Description:

  • Added logic to automate port creation and floating IP attachment during node provisioning.

Copy link
Collaborator

@tzumainn tzumainn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments!

esi/lib/networks.py Outdated Show resolved Hide resolved
esi/lib/networks.py Outdated Show resolved Hide resolved
@tzumainn
Copy link
Collaborator

tzumainn commented Oct 7, 2024

As a more general note - you'll likely want to deploy this locally and test with updated UI code. In my experience, these method signatures can fluctuate as the UI changes, and it's better to test them together rather than have multiple incremental updates to the SDK.

@skanthed
Copy link
Contributor Author

Link to the esi-ui PR - CCI-MOC/esi-ui#27

Copy link
Collaborator

@tzumainn tzumainn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added two inline comments!

:return: The created port object
"""
if not name:
name = 'esi-port-{0}'.format(network.name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you name the port the same way we do here? https://github.com/CCI-MOC/esisdk/blob/main/esi/lib/nodes.py#L212

It actually probably makes sense to create a new port_name function, and just call it both here and in the place that I linked.

esi/lib/networks.py Outdated Show resolved Hide resolved
@skanthed
Copy link
Contributor Author

skanthed commented Nov 6, 2024

@tzumainn Look into this and UI code both are updated.

esi/lib/networks.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@tzumainn tzumainn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this with the updated UI - works well!

@tzumainn tzumainn merged commit c2d8f90 into CCI-MOC:main Nov 7, 2024
4 checks passed
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