tag_attr(w, "age" , "Time",
display_age(lldpctl_atom_get_int(port, lldpctl_k_port_age)));
}
+ if (local) {
+ tag_datatag(w, "status", "Administrative status",
+ lldpctl_atom_get_str(port, lldpctl_k_port_status));
+ }
display_chassis(w, chassis, details);
display_port(w, port, details);
tag_start(w, "lldp", "LLDP interfaces");
while ((iface = cmd_iterate_on_interfaces(conn, env))) {
lldpctl_atom_t *port;
- port = lldpctl_get_port(iface);
+ port = lldpctl_get_port(iface);
display_interface(conn, w, hidden, iface, port, details, protocol);
lldpctl_atom_dec_ref(port);
}
del out['lldp.eth0.chassis.descr']
del out['lldp.eth0.chassis.Router.enabled']
del out['lldp.eth0.chassis.Station.enabled']
- assert out == {"lldp.eth0.via": "unknown",
+ assert out == {"lldp.eth0.status": "RX and TX",
"lldp.eth0.chassis.mac": "00:00:00:00:00:01",
"lldp.eth0.chassis.name": "ns-1.example.com",
"lldp.eth0.chassis.mgmt-ip": "fe80::200:ff:fe00:1",