<div dir="ltr">Whoops, forgot to add a link, sorry.. Here it is<br><br>[0] <a href="http://paste.openstack.org/show/484552/">http://paste.openstack.org/show/484552/</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 1:24 PM, Aleksandr Didenko <span dir="ltr"><<a href="mailto:adidenko@mirantis.com" target="_blank">adidenko@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I'm working on a plugin for 8.0 atm and this is how it worked for me [0]. It's a restriction not for node role, it's for other plugin setting, but I suppose it should work in your case as well.<br>So in general it should look like:<br><br>condition: "settings:plugin_name.attribute_name.value == false"<br><br></div>Regards,<br></div>Alex<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 8:07 PM, Matthew Mosesohn <span dir="ltr"><<a href="mailto:mmosesohn@mirantis.com" target="_blank">mmosesohn@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Nikolas,<br><br></div>I'm not exactly sure about your case, but you should try something like this: <a href="https://github.com/openstack/fuel-plugin-detach-keystone/blob/master/node_roles.yaml#L14-L15" target="_blank">https://github.com/openstack/fuel-plugin-detach-keystone/blob/master/node_roles.yaml#L14-L15</a><br>  <span><span>restrictions:<br></span></span>
      
      
        
            <span>- <span>condition:</span> <span><span>"</span>settings:opendaylight_plugin:use_external_odl == false<span>"</span></span></span><br><span><span>- message:</span> <span><span>"OpenDaylight role can only be used without external ODL"</span><span></span></span></span><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 9:41 PM, Nikolas Hermanns <span dir="ltr"><<a href="mailto:nikolas.hermanns@ericsson.com" target="_blank">nikolas.hermanns@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
I am developing on a fuel plugin at the moment. (fuel-plugin-opendaylight)<br>
In node_roles.yaml I would like to define something similar to:<br>
opendaylight:<br>
  limits:<br>
    max: 1<br>
    min: if "attributes:use_external_odl == true" then 0 else 1<br>
<br>
attributes:use_external_odl comes from the environment_config. Is such thing possible? And where is the code where that logic is actually build up. Which repo is having that?<br>
<br>
BR Nikolas<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>
</div></div><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>