Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Config file output in Canonical (Standard) form and sort

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    1 Posts 1 Posters 956 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rnsc
      last edited by

      I would have assumed that any change in feature or function would be out of the question for a release candidate, even a small one… yet I do see requests, and some apparently being accepted.  So here goes.  If this should be re-entered elsewhere, please tell me so.  Thanks.


      Sometimes I want to compare two configurations to see what is different.  Sometimes between machines, sometimes to understand what changed and messed me up.  Working with the configuration, sections get put in different order, or things that are disabled leave empty sections.

      It would be valuable to have the configuration file stored, at least for the backup if not on the pfsense disk, in a canonical form so that if they are the same, a file compare will match.  This would require a perhaps arbitrary, but consistent sort.

      For those who want to order things, either the basic structure could include a numeric tag, or there could be a prefix on the string that is sorted by that is recognized and ignored by the operational code (Yes, a kludge, but it might get the feature in there in the shorter term without a change in structure).

      Is this of use to anyone else?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.