[systemd-devel] [PATCH 2/2] networkd: integrate LLDP

Umut Tezduyar Lindskog umut at tezduyar.com
Mon Nov 24 11:31:18 PST 2014


On Sunday, November 23, 2014, Susant Sahani <susant at redhat.com> wrote:

>
> On 11/23/2014 09:33 PM, Umut Tezduyar Lindskog wrote:
>
>> Hi,
>>
> Hi Umut,
>
>>
>> On Sun, Nov 23, 2014 at 5:45 AM, Susant Sahani <susant at redhat.com> wrote:
>>
>>> This patch integrates LLDP with networkd.
>>>
>>> Example conf:
>>> file : lldp.network
>>>
>>> [Match]
>>> Name=em1
>>>
>>> [Network]
>>> LLDP=yes
>>> ---
>>>   man/systemd.network.xml                  |  7 +++++
>>>   src/network/networkd-link.c              | 45
>>> ++++++++++++++++++++++++++++++++
>>>   src/network/networkd-link.h              |  2 ++
>>>   src/network/networkd-network-gperf.gperf |  1 +
>>>   src/network/networkd.h                   |  3 +++
>>>   5 files changed, 58 insertions(+)
>>>
>>> diff --git a/man/systemd.network.xml b/man/systemd.network.xml
>>> index 4cc13b2..143c9ee 100644
>>> --- a/man/systemd.network.xml
>>> +++ b/man/systemd.network.xml
>>> @@ -234,6 +234,13 @@
>>>                                           </listitem>
>>>                                   </varlistentry>
>>>                                   <varlistentry>
>>> +                                        <term><varname>LLDP=</varname>
>>> </term>
>>> +                                        <listitem>
>>> +                                                <para>A boolean. When
>>> true, enables LLDP link receive support.
>>>
>>
>> Maybe enum instead of bool? lldp can run in "send-only",
>> "receive-only", "both" mode.
>>
> Now we don't support tx . that's why it's a boolean . Later when we add
> other features(TX) we will definitely modify that. It'a a very basic
> implementation now :). Lots of things are in TODO


Thanks.

>
> thanks
> Susant
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141124/448ab4fb/attachment.html>


More information about the systemd-devel mailing list