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

Config.xml parse

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 2.1k 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.
  • M
    mike99
    last edited by Jun 29, 2010, 5:48 PM Jun 29, 2010, 2:51 PM

    Hi, I'm serching information on how config.xml is parse to create the script.

    OLSR web interface lack a lot of options and I need to add one. If I add this option in the web interface to add it in the config.xml (or add it direcly in the config.xml), when the config will be parse, it would not know how to interpret this new option so I have to add somewhere what to do with this option.

    I serched on the pfsense wiki and documentation but have not found anything on this. Is their a how to or doc for this ?

    Also, as a suggestion, it would probably be easyer for developer and the one who want to add option like me to have a more standard script. OpenWRT have found a good way to parse script without having to interpret it and just give the true olsr.conf command line with some Openwrt command like "config", "option" and "option library".

    Exemple of a PF OLSR SCRIPT :

    <enablehttpinfo>on</enablehttpinfo>
    <port>81</port>

    this options doesn't exit in olsr.conf script so the have to be interpret while parsing the config.xml file.

    Exemple of the same option in OpenWRT script :

    config 'LoadPlugin'                  
       option library 'olsrd_httpinfo.so.0.1'
       option port '8117'

    This options are true olsr.conf option so if we add a new option and olsrd know how to interpret it, it will work without adding how to interpret this line when parsing the file. If we update the plugin, we can easyly add the new option with

    option newoption 'parameter'.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jun 30, 2010, 2:02 PM

      look in /etc/inc/services.inc around line 952.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received