<div dir="ltr"><div><div><div>Thanks you very much Dan, it's working very well.<br><br></div>The last issue I'm trying to solve is a workaround into the show.html.erb to exclude all the device with an id containing "*SIP*" the display of the button add firmware who make bugs with the SIP Phone I'm using.<br><br><br></div><div>Thanks you for your time Dan<br></div>Best regards,<br><br></div>Fabien B <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-22 15:39 GMT+02:00 Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Look at device_parameters.yml in the gui config. parameters.json is in the cwmp config. Make sure you restart the cwmp and NBI process after you make changes to the parameters.json file. And to restart the gui after changing the device_parameters.yml file.<br>
<br>
-dan<br>
<div><div class="h5"><br>
> On May 22, 2015, at 4:55 AM, Fabien Bazille <<a href="mailto:fab.baz22@gmail.com">fab.baz22@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I would like to display some values on the show device page, I managed to display them on the index page, but i think the problem should be in the parameter.json.<br>
><br>
> Parameter.json:<br>
><br>
>  "InternetGatewayDevice.WANDevice./^\\d+$/.WANConnectionDevice./^\\d+$/.WANIPConnection./^\\d+$/.MACAddress" : {"alias" : "summary.mac", "type" : "mac"},<br>
><br>
>   "InternetGatewayDevice.WANDevice./^\\d+$/.WANConnectionDevice./^\\d+$/.WANPPPConnection./^\\d+$/.ExternalIPAddress" : {"alias" : "summary.ip"},<br>
><br>
>   "InternetGatewayDevice.LANDevice./^\\d+$/.WLANConfiguration./^\\d+$/.SSID" : {"alias" : "summary.wlanSsid"},<br>
><br>
>   "InternetGatewayDevice.LANDevice./^\\d+$/.WLANConfiguration./^\\d+$/.PreSharedKey./^\\d+$/.KeyPassphrase" : {"alias" : "summary.wlanPassphrase"},<br>
><br>
>  "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.DownstreamAttenuation" : {"alias" : "summary.DownstreamAttenuation"},<br>
><br>
>  "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.UpstreamAttenuation" : {"alias" : "summary.UpstreamAttenuation"},<br>
><br>
>  "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.DownstreamNoiseMargin" : {"alias" : "summary.DownstreamNoiseMargin"},<br>
><br>
> "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.UpstreamNoiseMargin" : {"alias" : "summary.UpstreamNoiseMargin"},<br>
><br>
>  "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.DownstreamCurrRate" : {"alias" : "summary.DownstreamCurrRate"},<br>
>    "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.UpstreamCurrRate" : {"alias" : "summary.UpstreamCurrRate"},<br>
><br>
> I think it's the show.html.erb in the div summary who cause my trouble:<br>
><br>
> <div class="summary"><br>
> <% for k,v in Rails.configuration.summary_parameters %><br>
>   <% if v.is_a?(String) %><br>
>   <p><br>
>     <strong><%= k %>:</strong><br>
>     <%= param_value(v, @device) %><br>
>     <% if (p = get_param(v, @device)) != nil and p['_writable'] and can_edit_parameters %><br>
>     &mdash;<br>
>     <% options = Rails.configuration.parameters_edit[p['_path'].gsub(/\.\d+\./, '..')] %><br>
>     <a href="#" onclick='editParam("<%= v %>", "<%= p['_type'] %>", <%= p['_value'].to_json.html_safe %>, <%= options.to_json.html_safe %>);return false;'>Edit</a><br>
>     <% end %><br>
>   </p><br>
>   <% else %><br>
>     <h2><%= k %></h2><br>
>     <%= render partial: 'object_table', locals: {params: v} %><br>
>   <% end %><br>
> <% end %><br>
> </div><br>
><br>
> If you have an advice, i'll take it.<br>
><br>
> Thanks for your time<br>
> Regards,<br>
><br>
> Fabien B<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
> <a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
</blockquote></div><br></div>