The yang file "ieee802-dot1ab-lldp.yang" defines the follwing 'tlvs-tx-enable' leaf variable with bits 0 ... 3
**leaf tlvs-tx-enable {
type bits {
bit port-desc {
position 0;
description
"Transmit 'Port Description TLV'.";
}
bit sys-name {
position 1;
description
"Transmit 'System Name TLV'.";
}
bit sys-desc {
position 2";
description
"Transmit 'System Description TLV'.";
}
bit sys-cap {
position 3;
description
"Transmit 'System Capabilities TLV'.";
}
}
CLI
device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable port-desc
device(/ieee802-dot1ab-lldp:lldp)> commit
device(/ieee802-dot1ab-lldp:lldp)> show
port eth2 00-08-B0-02-03-04 {
tlvs-tx-enable port-desc;
}
device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable sys-name port-desc
CLI syntax error: "set port eth2 00-08-B0-02-03-04 tlvs-tx-enable sys-name port-desc": Unknown command
device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable "sys-name port-desc"
CLI syntax error: "set port eth2 00-08-B0-02-03-04 tlvs-tx-enable "sys-name port-desc"": Unknown command
device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable sys-name
device(/ieee802-dot1ab-lldp:lldp)> commit
device(/ieee802-dot1ab-lldp:lldp)> show
port eth2 00-08-B0-02-03-04 {
tlvs-tx-enable sys-name;
}**
It isn't possible the set more than 1 bit in that tlvs-tx-enable variable at a time !
Maybe the syntax isn't quite correct?
The yang file "ieee802-dot1ab-lldp.yang" defines the follwing 'tlvs-tx-enable' leaf variable with bits 0 ... 3
CLI device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable port-desc
device(/ieee802-dot1ab-lldp:lldp)> commit device(/ieee802-dot1ab-lldp:lldp)> show
port eth2 00-08-B0-02-03-04 { tlvs-tx-enable port-desc; } device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable sys-name port-desc CLI syntax error: "set port eth2 00-08-B0-02-03-04 tlvs-tx-enable sys-name port-desc": Unknown command
device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable "sys-name port-desc" CLI syntax error: "set port eth2 00-08-B0-02-03-04 tlvs-tx-enable "sys-name port-desc"": Unknown command
device(/ieee802-dot1ab-lldp:lldp)> set port eth2 00-08-B0-02-03-04 tlvs-tx-enable sys-name device(/ieee802-dot1ab-lldp:lldp)> commit device(/ieee802-dot1ab-lldp:lldp)> show
port eth2 00-08-B0-02-03-04 { tlvs-tx-enable sys-name; }**
It isn't possible the set more than 1 bit in that tlvs-tx-enable variable at a time ! Maybe the syntax isn't quite correct?