Skip to content

Updated to more correct relationship#523

Open
isaac-s wants to merge 1 commit intocloudify-cosmo:masterfrom
isaac-s:patch-1
Open

Updated to more correct relationship#523
isaac-s wants to merge 1 commit intocloudify-cosmo:masterfrom
isaac-s:patch-1

Conversation

@isaac-s
Copy link
Contributor

@isaac-s isaac-s commented Mar 23, 2017

At runtime, it doesn't matter whether the port is connected_to the network or contained_in, because the code looks for any kind of a relationship. So the original code works. However, it serves as a bad example because this relationship between a port and a network is incorrect. Among other things, a contained_in relationship between a port and a network would prevent the user from using scaling groups to include a Server and a Port in the same scaling group; that wouldn't pass validation, because Port would be contained_in a network and thus Server and Port have an ancestry conflict.

At runtime, it doesn't matter whether the port is `connected_to` the network or `contained_in`, because the code looks for any kind of a relationship. So the original code works. However, it serves as a bad example because this relationship between a port and a network is *incorrect*. Among other things, a `contained_in` relationship between a port and a network would prevent the user from using scaling groups to include a Server and a Port in the same scaling group; that wouldn't pass validation, because `Port` would be `contained_in` a network and thus `Server` and `Port` have an ancestry conflict.
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.

1 participant