<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-family: Courier, sans-serif; font-size: 14px; color: rgb(0, 0, 0); "><div>Hi All,</div><div><br></div><div>Currently in the horizon/openstack_dashboard/dashboards/project/networks/workflows.py in classes such as CreateNetwork, CreateNetworkInfo and CreateSubnetInfo, the <u>contributes</u> or <u>default_steps</u> as shown below are fixed. Is it possible to add entries to those attributes conditionally?</div><div><br></div><div><pre><a class="l" name="156" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#156">156</a><b>class</b> <a class="xc" name="CreateSubnetInfo"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=CreateSubnetInfo" class="xc">CreateSubnetInfo</a>(<a class="d" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#workflows">workflows</a>.<a href="http://www.xrefs.info/openstack-horizon-latest/s?defs=Step">Step</a>):
<a class="l" name="157" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#157">157</a>    <a class="xv" name="action_class"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=action_class" class="xv">action_class</a> = <a class="d" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#CreateSubnetInfoAction">CreateSubnetInfoAction</a>
<span style="background-color: rgb(255, 255, 10);"><a class="l" name="158" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#158">158</a>    <a class="xv" name="contributes"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=contributes" class="xv">contributes</a> = (<span class="s">"with_subnet"</span>, <span class="s">"subnet_name"</span>, <span class="s">"cidr"</span>,
<a class="l" name="159" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#159">159</a>                   <span class="s">"ip_version"</span>, <span class="s">"gateway_ip"</span>, <span class="s">"no_gateway"</span>)</span>
<a class="hl" name="160" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#160">160</a></pre><pre><a class="l" name="262" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#262">262</a><b>class</b> <a class="xc" name="CreateNetwork"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=CreateNetwork" class="xc">CreateNetwork</a>(<a class="d" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#workflows">workflows</a>.<a href="http://www.xrefs.info/openstack-horizon-latest/s?defs=Workflow">Workflow</a>):
<a class="l" name="263" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#263">263</a>    <a class="xv" name="slug"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=slug" class="xv">slug</a> = <span class="s">"create_network"</span>
<a class="l" name="264" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#264">264</a>    <a class="xv" name="name"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=name" class="xv">name</a> = _(<span class="s">"Create Network"</span>)
<a class="l" name="265" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#265">265</a>    <a class="xv" name="finalize_button_name"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=finalize_button_name" class="xv">finalize_button_name</a> = _(<span class="s">"Create"</span>)
<a class="l" name="266" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#266">266</a>    <a class="xv" name="success_message"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=success_message" class="xv">success_message</a> = _(<span class="s">'Created network "%s".'</span>)
<a class="l" name="267" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#267">267</a>    <a class="xv" name="failure_message"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=failure_message" class="xv">failure_message</a> = _(<span class="s">'Unable to create network "%s".'</span>)
<span style="background-color: rgb(255, 255, 10);"><a class="l" name="268" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#268">268</a>    <a class="xv" name="default_steps"></a><a href="http://www.xrefs.info/openstack-horizon-latest/s?refs=default_steps" class="xv">default_steps</a> = (<a class="d" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#CreateNetworkInfo">CreateNetworkInfo</a>,
<a class="l" name="269" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#269">269</a>                     <a class="d" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#CreateSubnetInfo">CreateSubnetInfo</a>,
<a class="hl" name="270" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#270">270</a>                     <a class="d" href="http://www.xrefs.info/openstack-horizon-latest/xref/openstack_dashboard/dashboards/project/networks/workflows.py#CreateSubnetDetail">CreateSubnetDetail</a>)</span></pre><pre>Thanks for your input.</pre><pre>Nader.</pre></div></body></html>