hcinetdiff – Wild route check box comparisons missing.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf hcinetdiff – Wild route check box comparisons missing.

  • Creator
    Topic
  • #53881
    Alex Puzikov
    Participant

      Hi Folks.

      Just realized that hcinetdiff tool does not perform comparisons on Wild route check.

      Code:

      % hcinetdiff NetConfig NetConfig.bkp
      The comparison is completed and there is no difference.
      %
      % diff NetConfig NetConfig.bkp
      4273c4273
      <             { WILDCARD ON } --- >             { WILDCARD OFF }
      %

      Since we are using hcinetdiff as a validation tool to identify changes in NetConfig – this is definitely not a good news for us. 🙁

      We are on Cloverleaf 5.8.5

    Viewing 4 reply threads
    • Author
      Replies
      • #79357
        Elisha Gould
        Participant

          I have noticed the same. To fix this, hcinetdiff needs to be modified to add the missing configuration items (ps hcinetdiff is a tcl script and has the items that should be diff’d at the bottom)

          I also found nLoad/nfSave also have the issue of missing configuration information that is required in 5.8.

        • #79358
          Matthew Rasmussen
          Participant

            HA!

            Glad you posted that!  I just realized it ignores changes to the bind address as well!

          • #79359
            Matthew Rasmussen
            Participant

              OK, so I have been successfully add bind address detection as well as several other relevant difference values.  But there are two that i really need, but cannot access becuase they are in the prologue:

              There is no pre-defined section for prologue in the default DiffList, so I tried this, but with no avail:

              set DiffList(prologue) {

                 { who: “GUI user” }

                 { date: “Config change time/date” }

              }

              Any ideas?  I guess I could just pipe everything before “end_prologue” to the standard diff, but would like to do it all in the hci command if possible.

            • #79360
              Elisha Gould
              Participant

                To include the diff for the prologue, you’ll probably need to modify some files.

                The loading of the NetConfig is in: $HCIROOT/tcl/lib/cloverleaf/nci.tlib

                This is missing a netcfgGetPrologue proc. See below for the update I made to grab this info:

                Code:

                diff nci.tlib.bak nci.tlib
                109c109
                #@package: nci netconfig netcfgLoad netcfgModified netcfgGetVersion netcfgGetConnList netcfgGetDestList netcfgGetConnCount runtimeGetConnCount netcfgGetGroupList netcfgGetGroupCount netcfgGetProcList netcfgGetProcCount netcfgGetConnData netcfgGetProcData netcfgGetDestData netcfgGetProcConns netcfgGetPrologue netcfgIsConnInProcess netcfgGetGroupConns netcfgIsConnInGroup netcfgGetConnCacheMsgFlag netcfgReloadLock netcfgLoadCheck runtimeRootConnCount
                156a157
                > #   netcfgGetPrologue   – Get the Prologue
                178a180
                > #    get prologue list                  netcfgGetPrologue
                305a308,319
                > # netcfgGetPrologue
                > #
                > # PACKAGE-EXPORT: netcfgGetPrologue
                > #
                > proc netcfgGetPrologue {} {
                >     global _nfg_Prologue
                >
                >     NCFG:checkReload            ;# Reload if necessary
                >     return $_nfg_Prologue
                > }
                >
                > ######################################################################
                670c684
                    global _ncfg_ConnData _ncfg_ProcessData _ncfg_ProcessConns _ncfg_Version _nfg_Prologue
                712c726
                    if [getNetVersion $ncf _ncfg_Version _nfg_Prologue] {

                The hcinetdiff would also need an update to compare the prologue data.

              • #79361
                Matthew Rasmussen
                Participant

                  WOW!  Thanks Elisha!!

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.