Skip to content
Snippets Groups Projects
  • Alexandru Ardelean's avatar
    909f0630
    lldpd: fix reload function for when interfaces change · 909f0630
    Alexandru Ardelean authored
    
    The problem is that interfaces are specified at start as
    command line arguments, making them unchange-able via reload.
    
    That means, we have to move (since lldpd allows this) the
    interfaces-match-pattern option to be in a config file and reload
    the configuration.
    It's either that, or do a 'restart'.
    
    Since we're generating the lldpd.conf file, we'll have to
    move the 'sysconfdir' of lldpd to /tmp, where the files will
    get written ; this will prevent any unncessary flash writes.
    
    Signed-off-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>
    909f0630
    History
    lldpd: fix reload function for when interfaces change
    Alexandru Ardelean authored
    
    The problem is that interfaces are specified at start as
    command line arguments, making them unchange-able via reload.
    
    That means, we have to move (since lldpd allows this) the
    interfaces-match-pattern option to be in a config file and reload
    the configuration.
    It's either that, or do a 'restart'.
    
    Since we're generating the lldpd.conf file, we'll have to
    move the 'sysconfdir' of lldpd to /tmp, where the files will
    get written ; this will prevent any unncessary flash writes.
    
    Signed-off-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>