ipxe icon indicating copy to clipboard operation
ipxe copied to clipboard

Bring in LLDP support

Open Teknoenie opened this issue 4 years ago • 7 comments

Hi iPXE devs. I'm looking to see if support for LLDP is possible or not. While searching Google I came across this repository[1] which seems to have it, but the code looks quite old. Would it be possible to get this merged into the primary iPXE code?

This would be incredibly useful for my site where I have ~3k computers that utilize LLDP for identifying their rack positions and naming them based on type, dimensions and the like.

[1] https://github.com/mgenov/ipxe/commit/ea0686cf7cc0dec5e5fde16ee412f7e6392b7a9e

Teknoenie avatar May 10 '21 06:05 Teknoenie

Looks like this was sent to the iPXE devel mailing list https://lists.ipxe.org/pipermail/ipxe-devel/2014-June/003589.html

NiKiZe avatar May 10 '21 12:05 NiKiZe

Yes, this is what lead me to check to see if it ever did get merged into iPXE, but a quick search of the iPXE code didn't show anything having LLDP support so I thought I'd double check in case I missed something. \

Teknoenie avatar May 10 '21 20:05 Teknoenie

The lldp commit can probably be rebased easily(?) Not sure about the settings commit.

NiKiZe avatar May 10 '21 21:05 NiKiZe

Is there an estimation as to when this could be done?

Teknoenie avatar May 11 '21 06:05 Teknoenie

Is there an estimation as to when this could be done?

Maybe there was a misunderstanding. If you want to use the LLDP commit on top of current master, it has minimal conflicts and you should be able to rebase it (on your own)

If it is something that is urgent, you could reach out and offer to pay for the time to implement the feature.

NiKiZe avatar May 11 '21 07:05 NiKiZe

I think i've been able to rebase the code to master but I'm not really sure what I'm doing as this is my first attempt at submitting a patch to a project like iPXE and I'm not by any stretch a strong git user/coder.

Since I've never done this before I thought it would make more sense to submit a text version of the patch rather than submit any MR/PR. I tested

make
make bin-x86_64-efi/snponly.efi
make bin-x86_64-efi/ipxe.efi

all with and without #define LLDP in src/config/general.h and it seems to not have broken anything. I have not yet tested that it works and is able to poll LLDP information from a switch yet. Hopefully I'll get to that later today.

If this is acceptable, how should I go about properly submitting this patch?

lldp-merge.txt

Teknoenie avatar Jun 28 '21 08:06 Teknoenie

Probably making pull request with this change would be preferable (just guessing). But first test if it works and allows you to poll LLDP info from switch ;D

JuniorJPDJ avatar Jul 08 '21 03:07 JuniorJPDJ

is something pending here? The merge https://github.com/ipxe/ipxe/pull/413 seemed to have resolved the issue.

steverweber avatar Apr 09 '23 15:04 steverweber

perhaps could use some wiki info on https://ipxe.org/docs

steverweber avatar Apr 09 '23 15:04 steverweber

Should have yes, for now see the git commit for documentation.

NiKiZe avatar Apr 09 '23 16:04 NiKiZe