Hello,
I am developing ZTP script for ISR4431. I found that certain commands are generating the error message of 'NoneType' object has no attribute 'attrib' and it's not caught by
CLIConfigurationError exception in GuestShell Python.
>>> configurep('no ip identd')
'NoneType' object has no attribute 'attrib'
REQUEST:
<?xml version="1.0" encoding="UTF-8"?>
<pnp xmlns="urn:cisco:pnp" version="1.0" sid="FD6CD5CAA31882816FEB9FB82993149C9AC2575F4E706F13533DB852D670F49D84F34B553BE098FC7D7C022CE8A0A6B77769AD1C2839ABBCF583441A6CFE1D5C" udi="PID:ISR4431/K9,VID:V01,SN:FGL192311L5">
<request correlator="python_cli_api@1534839397.34" xmlns="urn:cisco:pnp:cli-config">
<configApply details="all">
<config-data>
<cli-config-data-block>no ip identd</cli-config-data-block>
</config-data>
</configApply>
</request>
</pnp>
RESPONSE:
<pnp xmlns="urn:cisco:pnp" version="1.0" udi="PID:ISR4431/K9,VID:V01,SN:FGL192311L5" sid="B070F4C9592290C1FFA177E1EDAADC41241BF73A8EDF7EF0D0B1386CD464816FA4A6CE409F5812226120354FD6E640D047CD63E4DFB4B1831219C1551E40CE47"><response xmlns="urn:cisco:pnp:cli-config" correlator="python_cli_api@1534839397.34" success="1"><resultEntry lineNumber="1" cliString="no ip identd"><invalid /></resultEntry></response></pnp>
If I were to enter the same command in IOS-XE, no error is generated. Another command "no mop enabled" configured under interface will generate the same error message.
Appreciate your advice.