According to the below documentation, mac-address is read as binary value by confd.
yang:mac-address The mac-address type represents an IEEE 802 MAC address.
The length of the ConfD C_BINARY representation is always 6.
• value.type = C_BINARY
• union element = buf
• C type = confd_buf_t
• SMIv2 type = OCTET STRING
how do I set a mac-address string “01:01:01:01:01:01” as confd_tag_value_t in confd.
Using CONFD_SET_TAG_BINARY is giving me “30:31:3a:30:31:3a” value
Is this what you are looking for? If you have string representation, you first need to split string to individual numbers and convert them to u_int8_t.
i believe MAC address is to be filled as a binary representation of the actual MAC - not a string ASCII codes… If mac address is “11:22:33:44:55:66”, then it should be: