go-junos icon indicating copy to clipboard operation
go-junos copied to clipboard

Error on commit

Open zachfi opened this issue 7 years ago • 7 comments

Trying to commit now I get:

expected element type <commit-results> but have <ok>

Is this perhaps something upstream? I see that we are looking for commit-results in the XML, so perhaps this is a change on newer firmware?

zachfi avatar Jul 07 '18 18:07 zachfi

What version of JUNOS are you running, and what platform are you on?

scottdware avatar Jul 09 '18 17:07 scottdware

I'm on an SRX 300 using firmware15.1X49-D130.6 currently.

zachfi avatar Jul 11 '18 19:07 zachfi

Thanks, I'll dig into it and figure out what's up.

scottdware avatar Jul 12 '18 11:07 scottdware

Let me know if I can provide any further detail. Its worth noting that the change does actually get committed, so it seems that its just a result response that is not parsing correctly. I'm not sure if there is a way in go to allow one of two keys in the response, but maybe you can teach me a clever trick.

Thanks for looking.

zachfi avatar Jul 12 '18 16:07 zachfi

Is this a single SRX? Or a cluster?

daemus avatar Dec 06 '18 19:12 daemus

This is just a single SRX.

zachfi avatar Dec 21 '18 05:12 zachfi

The problem is somewhat larger: MX960 responds:

<commit-results>
<routing-engine junos:style="show-name">
<name>re0</name>
<commit-check-success/>
</routing-engine>
<routing-engine junos:style="show-name">
<name>re1</name>
<commit-check-success/>
</routing-engine>
</commit-results>
<ok/>

But, (I tests only MX80 and MX204) responds: <ok/>

abaluta avatar Jun 26 '19 12:06 abaluta