<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">https://github.com/openstack/fuel-plugin-detach-keystone/blob/master/node_roles.yaml#L14-L15</a><br>  <span class=""><span class="">restrictions:<br></span></span>
      
      
        
            <span class="">- <span class="">condition:</span> <span class=""><span class="">"</span>settings:opendaylight_plugin:use_external_odl == false<span class="">"</span></span></span><br><span class=""><span class="">- message:</span> <span class=""><span class="">"OpenDaylight role can only be used without external ODL"</span><span class=""></span></span></span><br></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>