People should now use "configure lldp fast-start", but we keep the
previous configuration working as well.
Add an entry in NEWS.
Fix #680 (well, previous commit did)
* Fix:
+ Do not break zero-copy traffic on Linux (#732 and #733)
+ Fix crash on rapid addition/removal of interfaces (#744)
* Fix:
+ Do not break zero-copy traffic on Linux (#732 and #733)
+ Fix crash on rapid addition/removal of interfaces (#744)
+ + Enable fast start unconditionally (and move its configuration in "configure lldp") (#683)
lldpd (1.0.19)
* Changes:
lldpd (1.0.19)
* Changes:
void register_commands_configure_dot3(struct cmd_node *);
void register_commands_medpow(struct cmd_node *);
void register_commands_dot3pow(struct cmd_node *);
void register_commands_configure_dot3(struct cmd_node *);
void register_commands_medpow(struct cmd_node *);
void register_commands_dot3pow(struct cmd_node *);
+void register_commands_faststart(struct cmd_node *, struct cmd_node *);
/* tokenizer.c */
int tokenize_line(const char *, int *, char ***);
/* tokenizer.c */
int tokenize_line(const char *, int *, char ***);
-static void
-register_commands_fast_start(struct cmd_node *configure_lldp, struct cmd_node *unconfigure_lldp)
+void
+register_commands_faststart(struct cmd_node *configure_lldp, struct cmd_node *unconfigure_lldp)
{
struct cmd_node *configure_fast = commands_new(configure_lldp, "fast-start",
"Fast start configuration", cmd_check_no_env, NULL, "ports");
{
struct cmd_node *configure_fast = commands_new(configure_lldp, "fast-start",
"Fast start configuration", cmd_check_no_env, NULL, "ports");
struct cmd_node *unconfigure_lldp =
commands_new(unconfigure, "lldp", "LLDP configuration", NULL, NULL, NULL);
struct cmd_node *unconfigure_lldp =
commands_new(unconfigure, "lldp", "LLDP configuration", NULL, NULL, NULL);
- register_commands_fast_start(configure_lldp, unconfigure_lldp);
+ register_commands_faststart(configure_lldp, unconfigure_lldp);
commands_new(
commands_new(commands_new(configure_lldp, "tx-interval",
commands_new(
commands_new(commands_new(configure_lldp, "tx-interval",
struct cmd_node *configure_med =
commands_new(configure, "med", "MED configuration", NULL, NULL, NULL);
struct cmd_node *configure_med =
commands_new(configure, "med", "MED configuration", NULL, NULL, NULL);
+ struct cmd_node *unconfigure_med =
+ commands_new(unconfigure, "med", "MED configuration", NULL, NULL, NULL);
register_commands_medloc(configure_med);
register_commands_medpol(configure_med);
register_commands_medpow(configure_med);
register_commands_medloc(configure_med);
register_commands_medpol(configure_med);
register_commands_medpow(configure_med);
+ register_commands_faststart(configure_med, unconfigure_med);
("configure lldp portidsubtype ifname", "lldp-portid-type", "ifname"),
("unconfigure lldp fast-start", "fast-start", "no"),
("configure lldp fast-start tx-interval 2", "fast-start-interval", 2),
("configure lldp portidsubtype ifname", "lldp-portid-type", "ifname"),
("unconfigure lldp fast-start", "fast-start", "no"),
("configure lldp fast-start tx-interval 2", "fast-start-interval", 2),
+ # the two next ones are deprecated
+ pytest.param(
+ "unconfigure med fast-start",
+ "fast-start",
+ "no",
+ marks=pytest.mark.skipif(
+ "'LLDP-MED' not in config.lldpd.features",
+ reason="LLDP-MED not supported",
+ ),
+ ),
+ pytest.param(
+ "configure med fast-start tx-interval 2",
+ "fast-start-interval",
+ 2,
+ marks=pytest.mark.skipif(
+ "'LLDP-MED' not in config.lldpd.features",
+ reason="LLDP-MED not supported",
+ ),
+ ),
("configure system interface pattern eth*", "iface-pattern", "eth*"),
("configure system interface permanent eth*", "perm-iface-pattern", "eth*"),
("configure system ip management pattern 10.*", "mgmt-pattern", "10.*"),
("configure system interface pattern eth*", "iface-pattern", "eth*"),
("configure system interface permanent eth*", "perm-iface-pattern", "eth*"),
("configure system ip management pattern 10.*", "mgmt-pattern", "10.*"),