netconf xml如下:
<get> <filter type="subtree"> <top xmlns="http://www.h3c.com/netconf/data:1.0" xmlns:h3c="http://www.h3c.com/netconf/base:1.0" xmlns:reg="http://www.h3c.com/netconf/base:1.0"> <Ifmgr> <Interfaces> <Interface/> </Interfaces> </Ifmgr> </top> </filter> </get>
报错如下:
<get> <filter type="subtree"> <top xmlns="http://www.h3c.com/netconf/data:1.0" xmlns:h3c="http://www.h3c.com/netconf/base:1.0" xmlns:reg="http://www.h3c.com/netconf/base:1.0"> <Ifmgr> <Interfaces> <Interface/> </Interfaces> </Ifmgr> </top> </filter> </get> rep:&{XMLName:{Space:urn:ietf:params:xml:ns:netconf:base:1.0 Local:rpc-reply} Errors:[{Type:rpc Tag:unknown-element Severity:error Path: Message:Unexpected element 'http://www.h3c.com/netconf/data:1.0':'Ifmgr' under element '/rpc/get[1]/filter[1]/top[1] Info: <error-type>rpc</error-type> <error-tag>unknown-element</error-tag> <error-severity>error</error-severity> <error-message xml:lang="en">Unexpected element 'http://www.h3c.com/netconf/data:1.0':'Ifmgr' under element '/rpc/get[1]/filter[1]/top[1]</error-message> <error-info> <bad-element>Ifmgr</bad-element> </error-info>}] MessageID:1 Data: <rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <error-type>rpc</error-type> <error-tag>unknown-element</error-tag> <error-severity>error</error-severity> <error-message xml:lang="en">Unexpected element 'http://www.h3c.com/netconf/data:1.0':'Ifmgr' under element '/rpc/get[1]/filter[1]/top[1]</error-message> <error-info> <bad-element>Ifmgr</bad-element> </error-info> </rpc-error> Ok:false RawReply: <?xml version="1.0" encoding="UTF-8"?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-> <rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <error-type>rpc</error-type> <error-tag>unknown-element</error-tag> <error-severity>error</error-severity> <error-message xml:lang="en">Unexpected element 'http://www.h3c.com/netconf/data:1.0':'Ifmgr' under element '/rpc/get[1]/filter[1]/top[1]</error-message> <error-info> <bad-element>Ifmgr</bad-element> </error-info> </rpc-error> </rpc-reply>} err:err:{Type:rpc Tag:unknown-element Severity:error Path: Message:Unexpected element 'http://www.h3c.com/netconf/data:1.0':'Ifmgr' under element '/rpc/get[1]/filter[1]/top[1] Info: <error-type>rpc</error-type> <error-tag>unknown-element</error-tag> <error-severity>error</error-severity> <error-message xml:lang="en">Unexpected element 'http://www.h3c.com/netconf/data:1.0':'Ifmgr' under element '/rpc/get[1]/filter[1]/top[1]</error-message> <error-info> <bad-element>Ifmgr</bad-element> </error-info>}
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论