-
Notifications
You must be signed in to change notification settings - Fork 581
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
LLDPd integrated switch workaround. Issue #9635 #860
Conversation
@@ -120,11 +120,21 @@ function lldpd_sync_config() { | |||
|
|||
/* Interface list */ | |||
$interfaces = array(); | |||
$platform = system_identify_specific_platform(); | |||
$int_switch = array('SG-1100', 'SG-3100'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more platforms that just these with integrated switches. You should check for the presence of the function switch_get_devices()
, if it's found, and has a non-empty result, then you know the device has a switch.
Might need to also check for the presence of /etc/inc/switch.inc
and require_once('switch.inc');
before that function is available, but I think it gets included early enough in other files that may not be necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it! fixed
tested on SG-1100, XG-7100 and KVM
I think this check isn't correct. As I was written in bug report: people can use their own Laggs/bonding. As I use lagg on ix0-1 on XG7100 for spf+. There 2 ways to fix this:
|
ix0-1 is not an integrated switch, do you have issues running LLDPd on it?
in this case, it will not allow you to run LLDPd on the XG-7100 ETH2-ETH8 ports or run LLDPd on any SG-1100 ports |
Sorry for late reply,
LAGG1 has child ix0 & ix1 and LAGG0 is managed switch.
SONMP warning generates each minute, spamming the log as previously. P.S. offtopic:
|
Please report it on the redmine issue page |
You speak about p.s. offtopic or all comment in general? I already posted full post to redmine issue |
Additionally maybe even lldpd on VLANs will generate such errors but I can't check this as all my pfsense servers have VLANs on LAGGs. Could you please check it? Update, find one pfSense: With passive NDP: |
Redmine Issue: https://redmine.pfsense.org/issues/9635
Ready for review
Add a workaround for appliances with integrated switches to allow run LLDPd on it,
as by default LLDPd uses parent physical interface to run, which doesn't work with integrated switches