OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Reading from (and writing to) /conf/config.xml
« previous next »
  • Print
Pages: [1]

Author Topic: Reading from (and writing to) /conf/config.xml  (Read 2433 times)

mihak

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 5
    • View Profile
Reading from (and writing to) /conf/config.xml
« on: March 21, 2021, 06:43:53 pm »
I saw several methods used across front-end and backend packages how configuration is read and written to config.xml


Is there (documented?) reviewed and recommended approach for all devs how to read from and write to config.xml? On front-end I would appreciate guidance on php and js patterns for read/write, on the backend at least a read/write pattern for shell scripting and Python.


Or is the recommended approach to use API and CLI exclusively and not ever even think about config.xml directly?



Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Reading from (and writing to) /conf/config.xml
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2