Virtual Parameter for External IP Address

Jose Vela Delgado josevelacisco at gmail.com
Thu Nov 9 05:10:49 EST 2017


Thank you very much Micheal.

I have created this provisions and a preset that calls the provisions when
a 2 PERIODIC is generated but it still does not work.

Editing provision
Name

Script
declare(

"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.*",
    null, {path: 1});

Do you think I'm missing something to do?

‌

Jose Vela
*Técnico de networking routing, switching y GPON networks.*



*"El aprendizaje es experiencia, todo lo demás en información" * *Albert
Einstein.*

Mira mi perfil profesional y conecta conmigo en LinkedIn pinchando en este
enlace.
<https://mailtrack.io/trace/link/11272c613abc3aa5882669842efa38ca50a1d6dc?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=57ebe9999f9a77ce>

2017-11-08 13:12 GMT+01:00 Michael Neumann <mn at jm-data.at>:

> Hi Jose,
>
> look at this example in the wiki: https://github.com/zaidka/
> genieacs/wiki/Provisions#creatingdeleting-object-instances
> <https://mailtrack.io/trace/link/d0fa50341e7ce5f7a5b6a527ae6077843d464fb2?url=https%3A%2F%2Fgithub.com%2Fzaidka%2Fgenieacs%2Fwiki%2FProvisions%23creatingdeleting-object-instances&userId=44382&signature=0a62ef065cc09413>
>
> // Ensure that *all* other instances are deleted
> declare("InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_
> BROADCOM_COM_IPAddrAccCtrlListCfg.[]" null, {path: 0});
>
> // Add the two entries we care about
> declare("InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_
> BROADCOM_COM_IPAddrAccCtrlListCfg.[SourceIPAddress:192.168.1.0,SourceNetMask:255.255.255.0]",
> {path: now}, {path: 1});
> declare("InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_
> BROADCOM_COM_IPAddrAccCtrlListCfg.[SourceIPAddress:172.16.12.0,SourceNetMask:255.255.0.0]",
> {path: now}, {path: 1});
>
>
>
>
> You must try to find some parameters that are unique in your object then
> you can just say please create an object with that parameters.
>
> You can later access also that object with that path filtering ....
>
> // DELETE ALL UNWANTED OBJECTS
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.[]", null,
> {path: 0});
>
> // DEFINE WANTED OBJECT
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.[VlanMode:2,VlanId:202]",
> null, {path: 0});
>
> // CHANGE Parameter in that Object
> declare("InternetGatewayDevice.WANDevice.6.WANConnectionDevice.[VlanMode:2,VlanId:202].
> Enable", null, {value: true});
>
>
>
> Regards,
>
> Michael Neumann
>
>
>
>
> Von: Users [mailto:users-bounces at lists.genieacs.com] Im Auftrag von Jose
> Vela Delgado
> Gesendet: Mittwoch, 8. November 2017 13:03
> An: Community support for GenieACS users <users at lists.genieacs.com>
> Betreff: Re: Virtual Parameter for External IP Address
>
>
> Thanks for the reply Michael.
>
> I do not mind working with provisions, if that solves my problem. As you
> say, it should be something that shows the object, regardless of the
> instance number.
>
> How could I do that?
>
> Thanks in advance.
>
>
>
>> https://mailtrack.io/Enviado
> <https://mailtrack.io/trace/link/61344f076acc3d05e50865a15279aa9007151e08?url=https%3A%2F%2Fmailtrack.io%2FEnviado&userId=44382&signature=17243a5f72c409b5>
> con https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/
> ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_
> medium=signature&utm_campaign=signaturevirality
> <https://mailtrack.io/trace/link/a1b7fff532c268172daa4cffab2554f96c66d795?url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fmailtrack-for-gmail-inbox%2Fndnaehgpjlnokgebbaldlmgkapkpjkkb%3Futm_source%3Dgmail%26utm_medium%3Dsignature%26utm_campaign%3Dsignaturevirality&userId=44382&signature=ef450dd5da572234>
>
>
> Jose Vela
> Técnico de networking routing, switching y GPON networks.
>
>
>
> "El aprendizaje es experiencia, todo lo demás en información"  Albert
> Einstein.
>
> Mira mi perfil profesional y conecta conmigo en LinkedIn
> https://mailtrack.io/trace/link/c78401caa176c23a9a3ddac477fb8b
> 0c0561e3e6?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-
> vela-delgado&userId=44382&signature=a073bf85aea9969a
> <https://mailtrack.io/trace/link/7b21f78f8bfc17c4697c25358c9c63f80ab04798?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=9fd6ad3e8b33efb8>
>
> 2017-11-08 12:55 GMT+01:00 Michael Neumann <mailto:mn at jm-data.at>:
> Hi,
>
> it's not common to add an object with instance id 1 … you should more find
> a solution how you don’t need to care about the instance id.
>
> I think it's not possible to do that – the acs just send a command
> AddObject and the device is respondiong the instance number ….
>
> Why you want work with virtual parameters and not with a provision?
>
>
> Best Regards
>
> Michael Neumann
>
>
>
> Von: Users [mailto:mailto:users-bounces at lists.genieacs.com] Im Auftrag
> von Jose Vela Delgado
> Gesendet: Mittwoch, 8. November 2017 12:47
> An: Community support for GenieACS users <mailto:users at lists.genieacs.com>
> Betreff: Virtual Parameter for External IP Address
>
>
> Hello everyone.
>
> Will someone have a script to create a Virtual Parameter so that I can
> create the WANConnectionDevice.1 since as they can go down, only 2, 3 and 4
> appear and the one I need is 1.
>
> Thank you very much in advance.
>
>
> Device parameters
> • InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.
> WANPPPConnection.1.ExternalIPAddress
> • InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.
> WANIPConnection.1.ExternalIPAddress
> • InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.
> WANIPConnection.1.ExternalIPAddre
>
> Jose Vela
> Técnico de networking routing, switching y GPON networks.
>
>
>
> "El aprendizaje es experiencia, todo lo demás en información"  Albert
> Einstein.
>
> Mira mi perfil profesional y conecta conmigo en LinkedIn
> https://mailtrack.io/trace/link/8753eb229099ee0dfc5b7871f6c435
> fd4847055b?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-
> vela-delgado&userId=44382&signature=bb9dae206a746012
> <https://mailtrack.io/trace/link/7b21f78f8bfc17c4697c25358c9c63f80ab04798?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=9fd6ad3e8b33efb8>
>
>
>
>> _______________________________________________
> Users mailing list
> mailto:Users at lists.genieacs.com
> https://mailtrack.io/trace/link/952ff10ed632603eb6acff22582bf6
> 3b1d936884?url=http%3A%2F%2Flists.genieacs.com%
> 2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=ee7a49a3ce5e8258
> <https://mailtrack.io/trace/link/76a4269a24c439e50e29dc4e12c02d0f7d88dd86?url=http%3A%2F%2Flists.genieacs.com%2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=8576fc949f64d9ef>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
> <https://mailtrack.io/trace/link/59bba3db9b2fc9294f134257a25c1430dc6d2d1b?url=http%3A%2F%2Flists.genieacs.com%2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=8ece129157d3761e>
>

<https://mailtrack.io/> Enviado con Mailtrack
<https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171109/abb06cbe/attachment-0001.html>


More information about the Users mailing list