Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface down when initially created via FauxAPI #2

Closed
maesterX opened this issue Feb 27, 2017 · 2 comments
Closed

Interface down when initially created via FauxAPI #2

maesterX opened this issue Feb 27, 2017 · 2 comments

Comments

@maesterX
Copy link

maesterX commented Feb 27, 2017

When creating an interface with the following JSON:

{'wan': {'enable': '', 'if': 'igb0', 'descr': 'pfSYNC', 'ipaddr': '<IP>', 'subnet': '30', 'spoofmac': ''}, 'lan': {'enable': '', 'if': 'igb1', 'ipaddr': '<IP>', 'subnet': '24', 'ipaddrv6': '', 'subnetv6': '', 'media': '', 'mediaopt': '', 'track6-interface': 'wan', 'track6-prefix-id': '0', 'gateway': 'GW_LAN', 'gatewayv6': ''}, 'opt1': {'descr': 'WANBOND', 'if': 'lagg0', 'enable': '', 'spoofmac': '', 'mtu': '9000'}, 'opt2': {'descr': 'WAN', 'if': 'lagg0_vlan1112', 'enable': '', 'ipaddr': '<IP>', 'subnet': '29', 'gateway': 'WANv4GW', 'spoofmac': ''}, 'opt3': {'descr': 'VL3301Pub', 'if': 'lagg0_vlan3301', 'spoofmac': '', 'enable': 'True', 'blockpriv': '', 'blockbogons': '', 'ipaddr': '<IP>', 'subnet': '30'}}

The interfaces appear on the pfSense dashboard as down and doesn't come up unless i disable and re-enable the interface via the GUI. This occurs despite using config.reload().

Is this expected behaviour and if not, can you suggest a possible cause?

Regards,
Ochuko

@ndejong
Copy link
Owner

ndejong commented Apr 13, 2017

The configuration you are supplying appears to be an incomplete - you MUST provide a FULL config, not just the parts of the config you wish to set

Have a read over here to understand more about why:- #3

N

@phase5
Copy link

phase5 commented Jul 26, 2017

Anyone else having this issue, please look at #10.
ndejong provided a solution to a similar issue that I think may have helped here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants