]> git.ipfire.org Git - thirdparty/lldpd.git/commit
med: Add configure inventory commands
authorHarshal Gohel <harshaldhruvkumar.gohel@philips.com>
Mon, 11 Apr 2022 12:42:50 +0000 (18:12 +0530)
committerVincent Bernat <vincent@bernat.ch>
Sun, 15 May 2022 09:54:47 +0000 (11:54 +0200)
commit8ef9c766be010f465bc750a9853961a04b6dccd4
tree6b2410f54187c0a61973ff5cd8499095c31efb23
parent12e81bd1d50ac0ff0d2c2d00d013897160e58e5d
med: Add configure inventory commands

Default inventory information is fetched from dmi table.
Most of embedded devices do not run EFI bootloader hence dmi information
will not be available in /sys/class/dmi

- Add `configure inventory` commands
- Add `unconfigure inventory` commands
- New code is dependent on enable-lldpmed
- Add write support on lldpctl atoms
- Add support for setting inventory configuration in daemon
- Refactor `lldp_med` to assign `c_med_sw` only once.
  We have the configurability of inventory information, So
  it is not required for daemon to keep assigning `c_med_sw`
12 files changed:
src/client/Makefile.am
src/client/client.h
src/client/conf-inv.c [new file with mode: 0644]
src/client/conf.c
src/ctl.h
src/daemon/client.c
src/daemon/lldpd.c
src/lib/atom.h
src/lib/atoms/chassis.c
src/lib/helpers.c
src/lib/helpers.h
src/lib/lldpctl.h