[openstack-dev] [vitrage] relationship_type in static_datasources
Afek, Ifat (Nokia - IL)
ifat.afek at nokia.com
Tue Aug 30 15:01:46 UTC 2016
Hi Yujun,
From: Yujun Zhang
Date: Monday, 29 August 2016 at 11:59
entities:
- type: switch
name: switch-1
id: switch-1 # should be same as name
state: available
relationships:
- type: nova.host
name: host-1
id: host-1 # should be same as name
is_source: true # entity is `source` in this relationship
relation_type: attached
- type: switch
name: switch-2
id: switch-2 # should be same as name
is_source: false # entity is `target` in this relationship
relation_type: backup
I think that’s the idea, instead of making this assumption in the code.
But I wonder why the static physical configuration file use a different format from vitrage template definitions[1]
[1] https://github.com/openstack/vitrage/blob/master/doc/source/vitrage-template-format.rst
What do you mean? The purpose of the templates is to describe the condition-action behaviour, wheres the purpose of the static configuration is to define resources to be added to vitrage graph. Can you please explain how you would make the formats more similar?
Best Regards,
Ifat.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160830/3f8aab91/attachment.html>
More information about the OpenStack-dev
mailing list