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

Cy 802 openstack plugin v3 #296

Merged
merged 7 commits into from
Mar 24, 2019
Merged

Cy 802 openstack plugin v3 #296

merged 7 commits into from
Mar 24, 2019

Conversation

EarthmanT
Copy link
Collaborator

No description provided.

@mabuaisha mabuaisha force-pushed the CY-802-Openstack-Plugin-V3 branch from 7e2e449 to f3551db Compare March 22, 2019 13:18
@mabuaisha mabuaisha force-pushed the CY-802-Openstack-Plugin-V3 branch from f3551db to 846155f Compare March 22, 2019 13:22
id: { get_input: external_network_id }
kwargs:
routing:
external: true

Choose a reason for hiding this comment

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

@EarthmanT I do not think so we should add kwargs since it uses use_external_resource

  external-network:
    type: cloudify.nodes.openstack.Network
    properties:
      client_config: *client_config
      use_external_resource: true
      resource_config:
        id: { get_input: external_network_id }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why?

Choose a reason for hiding this comment

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

because it will be useless since it use use_external_resource

@@ -115,11 +115,13 @@ def _handle_external_router_resource(openstack_resource):
is connected to external network node resource
:param openstack_resource: Instance of openstack router resource
"""
remote_router = openstack_resource.get()

Choose a reason for hiding this comment

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

We should not delete this since we need it down there

ext_network_id = \
_get_external_network_id(remote_router.external_gateway_info)
_get_external_network_id(network_resource.external_gateway_info)

Choose a reason for hiding this comment

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

We still need the remote_router since we need to get the value for external_gateway_info which at the end of the day get the external network id and then compare it with external network from the realtionship

@EarthmanT EarthmanT force-pushed the CY-802-Openstack-Plugin-V3 branch from 66c6297 to ba1da35 Compare March 24, 2019 11:33
@EarthmanT EarthmanT merged commit 5a16bda into master Mar 24, 2019
@EarthmanT EarthmanT deleted the CY-802-Openstack-Plugin-V3 branch March 24, 2019 13: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.

3 participants