<div dir="ltr">Bumping this - any ideas?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 3:26 PM, Michael Ducharme <span dir="ltr"><<a href="mailto:mducharme@gmail.com" target="_blank">mducharme@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Dan,</div><div><br></div><div>Provided below:<br></div><div><br></div><div>Extension dnsresolve.js in /usr/lib/node_modules/<wbr>genieacs/config/ext:</div><div><br></div><div>const dns = require('dns');<br>const logger = require('../../lib/logger');<br><br>function myResolver(args, callback) {<br>  let resaddress = 'blah';<br><br>  <a href="http://logger.info" target="_blank">logger.info</a>({message: 'Looking up dns', hostname: args[0]});<br><br>  dns.lookup(args[0], (err, address, family) => {<br>     <a href="http://logger.info" target="_blank">logger.info</a>({message: 'Setting address', result: address});<br>     if (address != 'undefined') { resaddress = address; };<br>     <a href="http://logger.info" target="_blank">logger.info</a>({message: 'DNS lookup complete', result: resaddress});<br>     let result = { address: resaddress };<br>     callback(null, result);<br>  });<br>}<br><br>exports.resolveAddress = myResolver;<br><br></div><div><br></div><div>Virtual parameter IP-CLOUD-ADDR:<br><br>let serial = declare("Device.DeviceInfo.<wbr>SerialNumber", {value: 1}).value[0];<br>let dnsresolve = ext("dnsresolve.js", "resolveAddress", serial + ".<a href="http://sn.mynetname.net" target="_blank">sn.mynetname.net</a>");<br><br>return {writable: false, value: [dnsresolve.address, "xsd:string"]};<br><br></div>Virtual parameter VPN-IP:<br><br>// Example: Fetch Index for VPN Interface<br>let m = '';<br>let x = 'temp';<br>let foundint = false;<br>let goodint = false;<br>let intnames = declare(<br>  "Device.X_MIKROTIK_Interface.<wbr>Generic.*.Name",<br>  {value: Date.now()});<br>let lowerlayers = declare(<br>  "Device.IP.Interface.*.<wbr>LowerLayers",<br>  {value: Date.now()});<br>if (intnames.size) {<br>  for (let myint of intnames) {<br>    if (myint.value[0]=='l2tp-<wbr>toronto') {<br>      x = myint.path.substr(0, myint.path.lastIndexOf("."));<br>      foundint = true;<br>      break;<br>    }<br>  }  <br>}<br>if (foundint) {<br>if (lowerlayers.size) {<br>  for (let myint of lowerlayers) {<br>    if (myint.value[0]==x) {<br>      x = myint.path.substr(0, myint.path.lastIndexOf("."));<br>      goodint = true;<br>      break;<br>    }<br>  }  <br>}<br>}<br><br>if (goodint) {<br>let ipaddress = declare(<br>  x + ".IPv4Address.*.IPAddress",<br>  {value: Date.now()});<br><br>if (ipaddress.size) {<br>  for (let myaddress of ipaddress) {<br>    if (ipaddress.value[0]) {<br>      m = ipaddress.value[0];<br>      break;<br>    }<br>  }  <br>}<br>}<br><br>return {writable: false, value: [m, "xsd:string"]};<br><br>Virtual parameter LOOPBACK-IP:<br><br>// Example: Fetch Index for loopback Interface<br>let m = '';<br>let x = 'temp';<br>let foundint = false;<br>let goodint = false;<br>let intnames = declare(<br>  "Device.X_MIKROTIK_Interface.<wbr>Generic.*.Name",<br>  {value: Date.now()});<br>let lowerlayers = declare(<br>  "Device.IP.Interface.*.<wbr>LowerLayers",<br>  {value: Date.now()});<br>if (intnames.size) {<br>  for (let myint of intnames) {<br>    if (myint.value[0]=='loopback0') {<br>      x = myint.path.substr(0, myint.path.lastIndexOf("."));<br>      foundint = true;<br>      break;<br>    }<br>  }  <br>}<br>if (foundint) {<br>if (lowerlayers.size) {<br>  for (let myint of lowerlayers) {<br>    if (myint.value[0]==x) {<br>      x = myint.path.substr(0, myint.path.lastIndexOf("."));<br>      goodint = true;<br>      break;<br>    }<br>  }  <br>}<br>}<br><br>if (goodint) {<br>let ipaddress = declare(<br>  x + ".IPv4Address.*.IPAddress",<br>  {value: Date.now()});<br><br>if (ipaddress.size) {<br>  for (let myaddress of ipaddress) {<br>    if (ipaddress.value[0]) {<br>      m = ipaddress.value[0];<br>      break;<br>    }<br>  }  <br>}<br>}<br><br>return {writable: false, value: [m, "xsd:string"]};<br><br><br></div>Relevant parts of device tree (this is from a device that has all three addresses being pulled and works - the devices that are putting the IP cloud address into the wrong field are from a device that has no l2tp-toronto interface and no loopback0 interface):<br><span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 3 days ago"></span><br><ul><li><span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.DeviceInfo.SerialNumber</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 3 days ago">27OBFUSCATED</span></li></ul><ul class="m_683058650916642944gmail-list"><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.1</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.1.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.1.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Up</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path"><a href="http://Device.X_MIKROTIK_Interface.Generic.1.Name" target="_blank">Device.X_MIKROTIK_Interface.<wbr>Generic.1.Name</a></span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">l2tp-toronto</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.1.LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago"></span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.2</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.2.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.2.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Up</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path"><a href="http://Device.X_MIKROTIK_Interface.Generic.2.Name" target="_blank">Device.X_MIKROTIK_Interface.<wbr>Generic.2.Name</a></span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">loopback0</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.2.LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago"></span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.3</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.3.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.3.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Down</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path"><a href="http://Device.X_MIKROTIK_Interface.Generic.3.Name" target="_blank">Device.X_MIKROTIK_Interface.<wbr>Generic.3.Name</a></span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">afterhours</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>Generic.3.LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago"></span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.X_MIKROTIK_Interface.<wbr>GenericNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 4 days ago">3</span></li></ul><ul class="m_683058650916642944gmail-list"><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address.2</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address.2.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address.2.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Enabled</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address.2.IPAddress</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">192.168.0.101</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address.2.SubnetMask</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">255.255.255.0</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4Address.2.AddressingType</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">X_MIKROTIK_Dynamic</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.Ethernet.Link.1</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Up</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.1.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">1</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.2</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.2.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.2.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.2.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.Ethernet.Link.2</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.2.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">LowerLayerDown</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.2.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">0</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address.24</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address.24.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address.24.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Enabled</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address.24.IPAddress</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">192.168.77.251</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address.24.SubnetMask</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">255.255.255.255</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4Address.24.AddressingType</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">X_MIKROTIK_Dynamic</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.X_MIKROTIK_Interface.<wbr>Generic.1</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Up</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.3.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">1</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address.1</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address.1.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address.1.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Enabled</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address.1.IPAddress</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">172.16.50.255</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address.1.SubnetMask</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">255.255.255.255</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4Address.1.AddressingType</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Static</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.X_MIKROTIK_Interface.<wbr>Generic.2</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Up</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.4.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">1</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.5</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.5.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.5.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.5.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.Ethernet.Link.3</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.5.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">LowerLayerDown</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.5.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">0</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address.1</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address.1.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address.1.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Enabled</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address.1.IPAddress</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">10.5.50.1</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address.1.SubnetMask</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">255.255.255.0</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4Address.1.AddressingType</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Static</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.Ethernet.Link.4</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">LowerLayerDown</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.6.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">1</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address.1</span>
      <span class="m_683058650916642944gmail-actions">
              
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address.1.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address.1.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Enabled</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address.1.IPAddress</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">10.255.50.1</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address.1.SubnetMask</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">255.255.255.0</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4Address.1.AddressingType</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">Static</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.Enable</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">true</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>LowerLayers</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value m_683058650916642944gmail-value-writable" title="as of 6 minutes ago">Device.X_MIKROTIK_Interface.<wbr>Generic.3</span>
      <span class="m_683058650916642944gmail-actions">
            
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.Status</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">LowerLayerDown</span>
      <span class="m_683058650916642944gmail-actions">
          
      </span>
    </li><li>
      <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-path">Device.IP.Interface.7.<wbr>IPv4AddressNumberOfEntries</span>
        <span class="m_683058650916642944gmail-long-text m_683058650916642944gmail-param-value" title="as of 6 minutes ago">1</span></li></ul></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 10:53 AM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Post the code for your vparam and a trimmed down snapshot of the CPE data please.<div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_683058650916642944h5">On Fri, Sep 15, 2017 at 4:24 PM, Michael Ducharme <span dir="ltr"><<a href="mailto:mducharme@gmail.com" target="_blank">mducharme@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_683058650916642944h5"><div dir="ltr"><div><div><div><div><div>I have added three virtual parameters onto some devices, which show three different IP addresses - the loopback address, a tunnel address, and the dyndns address.<br><br></div>A few devices have blank loopback address and blank tunnel address (because they have no loopback or tunnel) and they do have the dyndns address. These devices are for some reason sometimes pulling the dyndns address into the wrong field. Each time I refresh the device it disappears from one field and reappears in another - moving back and forth between the "loopback address" field, the "tunnel address" field, and the correct dyndns address field.<br><br></div>I thought there was a bug in my code, but I have gone through everything carefully and it looks like it is simply not possible for my code to have a bug that would cause the dyndns address to get mixed up with the others the way I have written it - the dyndns address is pulled by grabbing the serial number from the device and using dns.lookup in an external module to get the dyndns IP address.<br><br></div>The other two (the loopback and the tunnel address) are pulled directly from the device via TR-069. Because the functions are so different, it is impossible for the device to return the dyndns address to the virtual parameter code for the loopback and tunnel address since it doesn't even provide that address directly via the TR-069 stack.<br><br></div>Instead, it appears to be a GenieACS bug. It almost seems like GenieACS is getting the return values mixed up. It doesn't happen with all devices though - it only happens with these two that have only one out of three of the parameters on the device, and that one is the dyndns. Devices that have all three or two out of three (or none) display correctly.<br><br></div>Could the callback somehow be returning the result to the wrong item?<br></div>
<br></div></div>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>