+lldpd (1.0.0)
+ * Fix:
+ + Ensure chassis-related changes are propagated immediately.
+
lldpd (0.9.9)
* Changes:
+ lldpcli can now display local interfaces with LLDP data sent on
config->c_description?config->c_description:"(NULL)");
free(cfg->g_config.c_description);
cfg->g_config.c_description = xstrdup(config->c_description);
+ lldpd_update_localchassis(cfg);
levent_update_now(cfg);
}
if (CHANGED_STR(c_platform)) {
config->c_platform?config->c_platform:"(NULL)");
free(cfg->g_config.c_platform);
cfg->g_config.c_platform = xstrdup(config->c_platform);
+ lldpd_update_localchassis(cfg);
levent_update_now(cfg);
}
if (CHANGED_STR(c_hostname)) {
config->c_hostname?config->c_hostname:"(NULL)");
free(cfg->g_config.c_hostname);
cfg->g_config.c_hostname = xstrdup(config->c_hostname);
+ lldpd_update_localchassis(cfg);
levent_update_now(cfg);
}
if (CHANGED(c_set_ifdescr)) {
return routing;
}
-static void
+void
lldpd_update_localchassis(struct lldpd *cfg)
{
struct utsname un;
void lldpd_loop(struct lldpd *);
int lldpd_main(int, char **, char **);
void lldpd_update_localports(struct lldpd *);
+void lldpd_update_localchassis(struct lldpd *);
void lldpd_cleanup(struct lldpd *);
/* frame.c */
assert out['lldp.eth0.chassis.descr'] == "Modified description"
+def test_overrided_description2(lldpd1, lldpd, lldpcli, namespaces):
+ with namespaces(2):
+ lldpd()
+ lldpcli("configure", "system", "description", "Modified description")
+ lldpcli("update")
+ time.sleep(1)
+ with namespaces(1):
+ out = lldpcli("-f", "keyvalue", "show", "neighbors")
+ assert out['lldp.eth0.chassis.descr'] == "Modified description"
+
+
def test_hide_kernel(lldpd1, lldpd, lldpcli, namespaces):
with namespaces(2):
lldpd("-k")