Closed xulleon closed 5 years ago
I do not understand, why capitalized values are used in your application when model API have all the bit values in lower case:
class TcpBitsType(FixedBitsDict):
"""
TcpBitsType
acl tcp bits number
Keys are:- fin , syn , rst , psh , ack , urg
"""
def __init__(self):
dictionary_ = {
'fin': False,
'syn': False,
'rst': False,
'psh': False,
'ack': False,
'urg': False,
}
pos_map_ = {
'fin': 0,
'syn': 1,
'rst': 2,
'psh': 3,
'ack': 4,
'urg': 5,
}
super().__init__(dictionary_, pos_map_)
Please adhere using model API as it was generated.
The BITS value got changed to all lower case. since ATOM and YDK did not do anything, most likely the change came from INFRA team. therefore, close the case
In the XR UM model, Cisco-IOS-XR-um-access-list-datatypes.py, TcpBitsType should have values [fin, syn, rst, psh, ack, urg]. It is BITS type. When retrieving it from member, it got [FIN, SYN, RST, PSH, Ack, URG]. The upper case value works except "Ack". with other tool, only "ack" is valid.
But when FIN was used, it was accepted.
Expected Behavior
Should be able to configure it successfully for all TcpBitsType values.
Current Behavior
The Netconf rejects value Ack.
Steps to Reproduce
Use the above RPC on a XR device.
Additional Info and Logs
YANG model:
Generated class:
Failure log:
System Information
YDK-0.5.5.post2