Closed psykokwak4 closed 7 years ago
Also, need to look into why below decoding (from the same module as above) is failing:
codec.decode(codec_provider, ''' <policy-manager xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-infra-policymgr-oper">
<global>
<policy-map-applied-types>
<policy-map-applied-type>
<type>qos</type>
</policy-map-applied-type>
<policy-map-applied-type>
<type>pbr</type>
</policy-map-applied-type>
</policy-map-applied-types>
<transient-policy-map-targets-types>
<transient-policy-map-targets-type>
<type>qos</type>
</transient-policy-map-targets-type>
<transient-policy-map-targets-type>
<type>pbr</type>
</transient-policy-map-targets-type>
</transient-policy-map-targets-types>
<transient-policy-map-applied-types>
<transient-policy-map-applied-type>
<type>qos</type>
</transient-policy-map-applied-type>
<transient-policy-map-applied-type>
<type>pbr</type>
</transient-policy-map-applied-type>
</transient-policy-map-applied-types>
<target-policy-map-types>
<target-policy-map-type>
<type>qos</type>
</target-policy-map-type>
<target-policy-map-type>
<type>pbr</type>
</target-policy-map-type>
</target-policy-map-types>
<class-map>
<class-map-types>
<class-map-type>
<type>qos</type>
</class-map-type>
<class-map-type>
<type>traffic</type>
</class-map-type>
</class-map-types>
</class-map>
<policy-map>
<transient-policy-map-type-xr>
<transient-policy-map-type>
<type>qos</type>
</transient-policy-map-type>
<transient-policy-map-type>
<type>pbr</type>
</transient-policy-map-type>
</transient-policy-map-type-xr>
<policy-map-unused-types>
<policy-map-unused-type>
<type>qos</type>
</policy-map-unused-type>
<policy-map-unused-type>
<type>pbr</type>
</policy-map-unused-type>
</policy-map-unused-types>
<transient-p-map-app-type-tables>
<transient-p-map-app-type-table>
<type>qos</type>
</transient-p-map-app-type-table>
<transient-p-map-app-type-table>
<type>pbr</type>
</transient-p-map-app-type-table>
</transient-p-map-app-type-tables>
<policy-map-types>
<policy-map-type>
<type>qos</type>
</policy-map-type>
<policy-map-type>
<type>pbr</type>
</policy-map-type>
</policy-map-types>
<transient-policy-map-types>
<transient-policy-map-type>
<type>qos</type>
</transient-policy-map-type>
<transient-policy-map-type>
<type>pbr</type>
</transient-policy-map-type>
</transient-policy-map-types>
</policy-map>
<summary>
<total-class-maps>0</total-class-maps>
<total-class-map-types>0</total-class-map-types>
<total-policy-maps>0</total-policy-maps>
<total-policy-map-types>0</total-policy-map-types>
</summary>
</global>
</policy-manager>''')
Can this be closed or does it need a fix?
The incorrect chk-sum
payload above is a known issue on xr, not sure about the decoding failing error.
Sure. We can reopen if this occurs again
From @GregoryBrown:
Payload contains unicode literals fails encoding, example snippet of payload: