using json-c). Use `--enable-json0` to enable this option.
+ Support for newer ethtool interface on Linux
(ETHTOOL_LINKSETTINGS) and additional speed settings.
+ + Current MAU type is displayed even when autoneg is off.
* Fix:
+ Correctly parse LLDP-MED civic address when the length of the
TLV exceeds the length of the address.
tag_datatag(w, "aggregation", "Port is aggregated. PortAggregID",
lldpctl_atom_get_str(port, lldpctl_k_port_dot3_aggregid));
- long int autoneg_support, autoneg_enabled, autoneg_advertised;
+ long int autoneg_support, autoneg_enabled, autoneg_advertised, mautype;
autoneg_support = lldpctl_atom_get_int(port,
lldpctl_k_port_dot3_autoneg_support);
autoneg_enabled = lldpctl_atom_get_int(port,
lldpctl_k_port_dot3_autoneg_enabled);
autoneg_advertised = lldpctl_atom_get_int(port,
lldpctl_k_port_dot3_autoneg_advertised);
- if (autoneg_support > 0 || autoneg_enabled > 0) {
+ mautype = lldpctl_atom_get_int(port, lldpctl_k_port_dot3_mautype);
+ if (autoneg_support > 0 || autoneg_enabled > 0 || mautype > 0) {
tag_start(w, "auto-negotiation", "PMD autoneg");
tag_attr (w, "supported", "supported",
(autoneg_support > 0)?"yes":"no");
Port:
PortID: mac 00:00:00:00:00:02
PortDescr: eth1
+ PMD autoneg: supported: no, enabled: no
+ MAU oper type: 10GigBaseCX4 - X copper over 8 pair 100-Ohm balanced cable
-------------------------------------------------------------------------------
"""
out = result.stdout.decode('ascii')
"type": "mac",
"value": "00:00:00:00:00:02"
},
- "descr": "eth1"
+ "descr": "eth1",
+ "auto-negotiation": {
+ "enabled": False,
+ "supported": False,
+ "current": "10GigBaseCX4 - X copper over 8 pair 100-Ohm balanced cable"
+ }
}
}}
}}
<port label="Port">
<id label="PortID" type="mac">00:00:00:00:00:02</id>
<descr label="PortDescr">eth1</descr>
+ <auto-negotiation enabled="no" label="PMD autoneg" supported="no">
+ <current label="MAU oper type">10GigBaseCX4 - X copper over 8 pair 100-Ohm balanced cable</current>
+ </auto-negotiation>
</port>
</interface>
</lldp>