On 14/07/18 17:23, Ilias Tsoumas wrote: > Hello Mark, > > For the sake of clarification, let's try to explain my thoughts. I want > to understand if I can use juju's bundles as directed (acyclic) graphs. > Is there the information about direction? If no, do you propose to use > the bundles as undirected graphs? Otherwise, where I can find the > aforementioned directionality?
You can think of bundles as undirected graphs, with the applications as nodes, and the relations as edges. For any given edge between two applications, one application is the provider, and one is the consumer (requires). It is possible to relate two applications multiple times over different interfaces if the charms support them. > As @Merlijn Sebrechts <mailto:merlijn.sebrec...@gmail.com> said > > If you want to know the direction of a relationship, you need to > look at the endpoints in the metadata.yaml of both charms and see > which is the provides side and which is the requires side. > > In this case, I should do an api call for each relation in order to > check if the :endpoint part is under the requires or provides tag of > metada.yaml. Both the requires and provides information are available in the metadata.yaml for any given charm. Does this answer your questions? Tim -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju