Giter VIP home page Giter VIP logo

Comments (5)

majst01 avatar majst01 commented on September 27, 2024

tcpdump on the switch interface if lldpad is running on the server:

07:14:30.390385 LLDP, length 59                                                                                                                                                                                                                                          
        Chassis ID TLV (1), length 7                                                                                                                                                                                                                                     
          Subtype MAC address (4): b4:96:91:af:72:c0 (oui Unknown)                                                                                                                                                                                                       
          0x0000:  04b4 9691 af72 c0                                                                                                                                                                                                                                     
        Port ID TLV (2), length 7                                                                                                                                                                                                                                        
          Subtype MAC address (3): b4:96:91:af:72:c0 (oui Unknown)                                                                                                                                                                                                       
          0x0000:  03b4 9691 af72 c0                                                                                                                                                                                                                                     
        Time to Live TLV (3), length 2: TTL 120s                                                                                                                                                                                                                         
          0x0000:  0078                                                                                                                                                                                                                                                  
        Organization specific TLV (127), length 25: OUI Ethernet bridged (0x0080c2)                                                                                                                                                                                      
          ETS Configuration Subtype (9)                                                                                                                                                                                                                                  
            Willing:1, CBS:2, RES:0, Max TCs:0                                                                                                                                                                                                                           
            Priority Assignment Table                                                                                                                                                                                                                                    
             Priority : 0   1   2   3   4   5   6   7                                                                                                                                                                                                                    
             Value    : 0   0   0   0   0   0   0   0                                                                                                                                                                                                                    
            TC Bandwidth Table                                                                                                                                                                                                                                           
             TC%   : 0   1   2   3   4   5   6   7                                                                                                                                                                                                                       
             Value : 0   0   0   0   0   0   0   0                                                                                                                                                                                                                       
            TSA Assignment Table                                                                                                                                                                                                                                         
             Traffic Class: 0   1   2   3   4   5   6   7                                                                                                                                                                                                                
             Value        : 0   0   0   0   0   0   0   0                                                                                                                                                                                                                
          0x0000:  0080 c209 8000 0000 0000 0000 0000 0000                                                                                                                                                                                                               
          0x0010:  0000 0000 0000 0000 00                                                                                                                                                                                                                                
        Organization specific TLV (127), length 6: OUI Ethernet bridged (0x0080c2)                                                                                                                                                                                       
          Priority Flow Control Configuration Subtype (11)                                                                                                                                                                                                               
            Willing: 1, MBC: 0, RES: 0, PFC cap:8                                                                                                                                                                                                                        
            PFC Enable                                                                                                                                                                                                                                                   
             Priority : 0  1  2  3  4  5  6  7                                                                                                                                                                                                                           
             Value    : 0  0  0  0  0  0  0  0                                                                                                                                                                                                                           
          0x0000:  0080 c20b 8800                                                                                                                                                                                                                                        
        End TLV (0), length 0  

from go-lldpd.

majst01 avatar majst01 commented on September 27, 2024

Got it lldpad to send sysName and sysDesc with the following lldpad.conf fragment:

lldp :
{
  if2 :
  {
    adminStatus = 3;
    tlvid00000005 :
    {
      enableTx = true;
      info = "00000000-0000-0000-0000-3cecef18aea0";
    };
    tlvid00000006 :
    {
      enableTx = true;
      info = "provisioned";
    };
  };
  if3 :
  {
    adminStatus = 3;
    tlvid00000005 :
    {
      enableTx = true;
      info = "00000000-0000-0000-0000-3cecef18aea0";
    };
    tlvid00000006 :
    {
      enableTx = true;
      info = "provisioned";
    };
  };
};

from go-lldpd.

majst01 avatar majst01 commented on September 27, 2024

According to lldp.h ttl should be tlvid 3:

/* IEEE 802.3AB Clause 9: TLV Types */
#define CHASSIS_ID_TLV    1
#define PORT_ID_TLV       2
#define TIME_TO_LIVE_TLV  3
#define PORT_DESCRIPTION_TLV	4
#define SYSTEM_NAME_TLV		5
#define SYSTEM_DESCRIPTION_TLV	6
#define SYSTEM_CAPABILITIES_TLV	7
#define MANAGEMENT_ADDRESS_TLV	8
#define ORG_SPECIFIC_TLV  127
#define END_OF_LLDPDU_TLV 0
lldp :
{
  if10 :
  {
    adminStatus = 3;
    tlvid00000003 :
    {
      enableTx = true;
      info = 10;
    };
    tlvid00000005 :
    {
      enableTx = true;
      info = "00000000-0000-0000-0000-3cecef18aea0";
    };
    tlvid00000006 :
    {
      enableTx = true;
      info = "provisioned";
    };
  };
};

from go-lldpd.

majst01 avatar majst01 commented on September 27, 2024

Create this file in metal-stack/metal-hammer#48

from go-lldpd.

majst01 avatar majst01 commented on September 27, 2024

The root cause is different, socket where the lldp packets are sent must be set to prio7.

Will be fixed in #9

from go-lldpd.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.