sysrepo union type leaf is wrong in SR_EV_ENABLED event #3475
Labels
is:bug
Bug description.
status:completed
From the developer perspective, the issue was solved (bug fixed, question answered,...)
Issue:
the pbit default value is "any" in enum type. dei default value is "any" in enum type, but pbit is SR_STRING_T "any" in SR_EV_ENABLED.
I don't set such two nodes pbit/dei in my configuration.
In libyang 2.1.80, sysrepo 2.2.73, libnetconf2 2.1.34, netopeer2 2.1.62:
under SR_EV_ENABLED, SR_EV_UPDATE and SR_EV_CHANGE, the pbit/dei type is SR_ENUM_T, value is "any".
In libyang 3.4.2, sysrepo 2.11.7, libnetconf2 3.5.1, netopeer2 2.2.31:
under SR_EV_UPDATE and SR_EV_CHANGE, the pbit/dei type is SR_ENUM_T, value is "any".
under SR_EV_ENABLED, the pbit type is SR_STRING_T, value is "any"; the dei type is SR_ENUM_T, value is "any".
The pbit is SR_STRING_T is wrong here.
The YANG definition:
bbf-frame-classification@2022-03-01, it is imported by ietf-interfaces@2018-02-20
The startup/running datastore dump by sysrepocfg:
The text was updated successfully, but these errors were encountered: