<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Has anyone something to say about this? Could you help me?<br>
<br>
<div class="moz-cite-prefix">El 07/06/16 a las 16:25, Sergio
escribió:<br>
</div>
<blockquote cite="mid:5756D94A.500@electronicamartinez.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
Hello!<br>
<br>
I am trying to change the current GenieACS to add the
functionality of multiuser login, so that every user only sees its
CPEs.<br>
<br>
I've been thinking about dockerizing a new instance for every
customer, because we think that less than 10 users will have to
see its CPEs. But mounting 10 GenieACS via Docker would be so
resource-consuming... Isn't it?<br>
<br>
That's why I've thinking of improving GenieACS-GUI in order to be
able to separate CPEs for every customer. But I don't know much
about Ruby On Rails (I am currently reading <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://www.railstutorial.org"><a class="moz-txt-link-freetext" href="https://www.railstutorial.org">https://www.railstutorial.org</a></a>
) neither I am an expert on these software topics, and I need
advice.<br>
<u><br>
</u><big><big><u>First option:</u></big></big><br>
Would you make another record under collection "devices" of the
"genieacs" db in MongoDB? Like the following (In bold what is
added by me):<br>
<br>
{<br>
"_id" : "ZZZZZZ-XXXX-YYYYYYUUUUUU",<br>
"_registered" : ISODate("2016-06-01T10:28:10.051Z"),<br>
"_deviceId" : {<br>
"_Manufacturer" : "Cisco",<br>
"_OUI" : "ZZZZZZ",<br>
"_ProductClass" : "XXXX",<br>
"_SerialNumber" : "YYYYYYUUUUUU"<br>
},<br>
"_lastInform" : ISODate("2016-06-07T13:58:12.802Z"),<br>
<b>"_customerId" : 1,</b><br>
...<br>
...<br>
...<br>
}<br>
<br>
What would be the advantages? And the disadvantages? Which
CoffeeScript file would you edit to make this work? Or would you
do it via external update from a tab in the Ruby On Rails webpage?<br>
<big><big><br>
<u>Second option:</u></big></big><br>
Would you create a separate collection in MongoDB named "owner"
whose structure would be like:<br>
<br>
{<br>
"00:12:34:43:12:00" : 1,<br>
"FF:FF:FF:22:13:65" : 2,<br>
...<br>
...<br>
...<br>
}<br>
<br>
which would be updated every new CPE comes.<br>
<br>
What would be the advantages? And the disadvantages? Which
CoffeeScript file would you edit to make this work? Or would you
do it via external update from a tab in the Ruby On Rails webpage?<br>
<br>
<big><big><u>Third option:</u></big></big><br>
Would it be better to import a CSV with the MAC of the CPEs, so
that then, in the WebGui, you could select what is the owner of
each CPE?<br>
<br>
<br>
<br>
In all options, It would be desirable an additional tab in order
for an admin to manage the ownership of the CPEs. Is it right?<br>
<br>
Thank you for your reading. I highly appreciate all of your help.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a>
<a class="moz-txt-link-freetext" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>