Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-960

Rancid 3 compatibility for generate-rancid.php

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Poller
    • r5742

    Description

      Rancid 3 now uses ";" instead of ":" as delimiter for IPv6 compatibility :
      Here is a quickfix.

      Index: scripts/generate-rancid.php
      ===================================================================
      --- scripts/generate-rancid.php (revision 5742)
      +++ scripts/generate-rancid.php (working copy)
      @@ -48,7 +48,7 @@
         {
           if ($device['os'] == $observiumos)
           {
      -      echo($device['hostname'] . ":" . $rancidos . ":up" . PHP_EOL);
      +      echo($device['hostname'] . ";" . $rancidos . ";up" . PHP_EOL);
           }
         }
       }
      

      Maybe we should do a file for rancid2 and one for rancid3 ? Or a config parameter ?

      Attachments

        Activity

          People

            landy Mike Stupalov
            kedare Mathieu Poussin (K3dare)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: