if (!strcmp(b_map->string, "ifname")) {
commands_new(
commands_new(configure_lldp_portid_type,
- b_map->string, "Interface Name",
- NULL, NULL, NULL),
+ b_map->string, "Interface Name",
+ cmd_check_no_env, NULL, "ports"),
NEWLINE, NULL,
NULL, cmd_portid_type,
b_map->string);
} else if (!strcmp(b_map->string, "macaddress")) {
commands_new(
commands_new(configure_lldp_portid_type,
- b_map->string, "MAC Address",
- NULL, NULL, NULL),
+ b_map->string, "MAC Address",
+ cmd_check_no_env, NULL, "ports"),
NEWLINE, NULL,
NULL, cmd_portid_type,
b_map->string);
commands_new(configure_lldp,
"capabilities-advertisements",
"Enable chassis capabilities advertisement",
- NULL, NULL, NULL),
+ cmd_check_no_env, NULL, "ports"),
NEWLINE, "Enable chassis capabilities advertisement",
NULL, cmd_chassis_cap_advertise, "enable");
commands_new(
.Cd configure
.Cd lldp portidsubtype
-.Cd ifname | macaddress | local Ar value Op Cd description Ar description
+.Cd ifname | macaddress
+.Pp
+.Cd configure
+.Op ports Ar ethX Op ,...
+.Cd lldp portidsubtype
+.Cd local Ar value Op Cd description Ar description
.Bd -ragged -offset XXXXXX
Force port ID subtype. By default,
.Nm