<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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 class="moz-txt-link-freetext" href="https://www.railstutorial.org">https://www.railstutorial.org</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>
</body>
</html>