Giter Site home page Giter Site logo

Comments (5)

ndejong avatar ndejong commented on August 18, 2024

from pfsense_fauxapi.

phase5 avatar phase5 commented on August 18, 2024

Thank you for the prompt response.

I can confirm that the interfaces are present and correct after a reboot.
There is an easy work-around for me in this case where I can just have a batch of vlans created in advance.

I will certainly have a look at the extra functionality when you have it implemented though.

from pfsense_fauxapi.

phase5 avatar phase5 commented on August 18, 2024

I spent a little more time on this over the past week and it seems the problem does indeed extend to interfaces as well as VLAN's.

If I pre-create my VLAN's in bulk as described earlier, that part is fine.
However, if I then create a new interface on one of those VLANs, assign it a static IP and explicitly mark it as enabled then I do get the adapter showing up but the IP on the summary page is missing and the new routes do not appear in the routing table. Going into the interface, unticking enabled, save, tick enabled again, save and then apply resolves the issue.

Something probably related is that if I do the above to make an interface work, but later remove the interface (via API) and then add another one (with a different IP but the same adapter name) the the interface shows up immediately but shows the old IP address. Routing table follows suit too.

If I remove a working adapter then the routes and actual interface appear to remain active behind the scenes.

The only way I have found to overcome this so far is to reboot, which is not really feasible to do on a regular basis.

Anyone got any idea's how I might work around this? I am not in a position to pre-create 500 interfaces like I am VLAN's. I did notice there were "modified by X person on X date" fields around the json and I wondered if anyone knew if they were in any way related to triggering pfSense to actually apply the changes.

from pfsense_fauxapi.

ndejong avatar ndejong commented on August 18, 2024

from pfsense_fauxapi.

phase5 avatar phase5 commented on August 18, 2024

Hi N,

Thanks very much. I have done quite a few tests with your suggestion and it appears to work perfectly.
I cannot confirm if it affects the previous vlan issue because I have them all pre-created now, but I suspect it may well sort that too. It has certainly sorted my issue above and 2 other related issues we found since.

I had seen the send event thing before but hadn't realized it supported reloading all interfaces like that. Maybe you could add a second example under the "filter reload" one for the "interface reload all", which would then make it really obviously.

I can't thank you enough for that pointer. We had resigned to living with having to go in the click SAVE APPLY all the time.

from pfsense_fauxapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.