Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about #1282 #1313

Closed
yyt460860627 opened this issue Dec 15, 2020 · 0 comments
Closed

question about #1282 #1313

yyt460860627 opened this issue Dec 15, 2020 · 0 comments

Comments

@yyt460860627
Copy link

yyt460860627 commented Dec 15, 2020

question about #1282

Hi, I try fix the issues like this,but found that it won't return error info.
for example

<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <target>
    <running/>
  </target>
  <config>
    <system xmlns="http://openconfig.net/yang/system">
      <logging>
        <remote-servers>
          <remote-server xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="replace">
            <host>1.255.111.0</host> // 123123
            <config>
              <host>1.255.111.0</host>
              <source-address>129.9.21.212</source-address> // 123123
            </config>
          </remote-server>
        </remote-servers>
      </logging>
    </system>
  </config>
</edit-config>

it return "ok"

in early vesion(before fiexd #1123 ), it will reply :
<?xml version="1.0" encoding="utf-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="7">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>bad-element</error-tag>
    <error-severity>error</error-severity>
    <error-app-tag>6890776</error-app-tag>
    <error-path>/system/logging/remote-servers/remote-server/config</error-path>
    <error-message xml:lang="en">Invalid XML element with mixed content.</error-message>
    <error-info>
      <bad-element>config</bad-element>
    </error-info>
  </rpc-error>
</rpc-reply>

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant