Preset : how should it work ?

Dan Morphis dan at milkcarton.com
Tue Dec 22 11:57:01 EST 2015


You will have issues with the way you are doing your preconditions. For
your first preset, you want to add a precondition that it not have the tags
"READY" or "STAGE 1 OK". By deleting the tags, you also prevent the CPE
from being reconfigured if its ever factory defaulted by the customer/ACS.

Here is how I use presets to configure CPEs.

All CPEs get a base config (enable and disable services on the CPE, etc).
Then I use notification mechanism I added (
https://github.com/akcoder/genieacs) in my fork to figure out what needs to
happen with the CPE, and add tags to the CPE based on that. For example I
add the tag "Routed" or "Bridged". Then there is a preset which has tag =
"Routed" as the precondition which adds objects and sets some specific
values. Finally, I create a device specific preset which sets the WiFi SSID
and passphrase and PPPoE credentials.

In this way, if the customer ever factory defaults the CPE, the tags will
still be applied to the CPE, discrepancies will be detected by Genie after
the refresh happens (a complete refresh always happens on a 0 BOOTSTRAP
event). And in about 5 minutes the CPE will come back online. Doing things
this way has eliminated a lot of support calls from customers that are
"experts" and think factory resetting the CPE is the solution to all of
lifes problems.

-dan

On Tue, Dec 22, 2015 at 2:19 AM, Nicolas Grondin <grondin.nicolas at gmail.com>
wrote:

> Hi,
> I plan to use presets to configure CPE.
> But i ignore how presets work.
>
> I create 2 generic presets for all my CPE (OUI and Product Classe
> preconditions) and 1 preset for individual CPE (Serial Number).
> To force the presets to applys in the right order i use tags.
>
> 1st-preset :
>
>    - Precondition :
>       - OUI = 00E0FC
>       - Product Class = HG658 V2
>    - Configurations :
>       - Add objects
>       - Set Values
>       - Add Tag  "STAGE1 OK"
>
> 2nd-preset :
>
>    - Precondition
>       - OUI = 00E0FC
>       - Prodcut Class ) HG658 V2
>       - Tag = "STAGE1 OK"
>    - Configurations:
>       - Del Tag "STAGE1 OK"
>       - Add objects
>       - Add Tag "READY"
>
> Individual-preset-<DevicID> :
>
>    - Precondition :
>       - Serial Number = <SN of CPE>
>       - Tag = "READY"
>    - Configurations :
>       - Del Tag "READY"
>       - Set Values
>       - Add Tag "Provisioned"
>
>
> When a CPE connects the first time, 1st-preset apply.
> When CPE next inform, nothing else happens until i modifiy the 2nd-preset
> (edit, no change and save). In the CWMP log file, there's the line
> " Presets discrepancy found". and the CPE applys the 2nd-preset.
>
> I succeed to make the CPE applies the Individual preset byt editing and
> saving the preset with no change.
>
> How could we have the same behavior without editing and saving the preset
> to force presets to be applyied each time the CPE connects to inform the
> ACS ?
>
> Or when will the scripting functionality be available ?
>
> Thanks a lot.
>
> Regards,
> Nicolas
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20151222/81ccbff4/attachment.html>


More information about the Users mailing list