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

h3c any netconf(ssh) call failed #89

Open
Niekq opened this issue Aug 24, 2019 · 3 comments
Open

h3c any netconf(ssh) call failed #89

Niekq opened this issue Aug 24, 2019 · 3 comments

Comments

@Niekq
Copy link

Niekq commented Aug 24, 2019

The request param just like the examples/ssh1/ssh1.go

Request: _<get-chassis-inventory/>_

Reply: &{XMLName:{Space:urn:ietf:params:xml:ns:netconf:base:1.0 Local:rpc-reply} Errors:[{Type:application Tag:operation-failed Severity:error Path: Message:The Line 2 Column 6 :"

<rpc message-id="d38f44", no target name. Info:applicationoperation-failederrorThe Line 2 Column 6 :"

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="d38f44", no target name.}] Data:applicationoperation-failederrorThe Line 2 Column 6 :"

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="d38f44", no target name. Ok:false RawReply:applicationoperation-failederrorThe Line 2 Column 6 :"

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="d38f44", no target name.}

@neilliu89
Copy link
Contributor

neilliu89 commented Jun 2, 2020

I have the same question.
I modify the session.go file's code like this, is ok. But I don't know why,maybe,it‘s the h3c's problem.
I remove the xml header info, like this:

func (s *Session) Exec(methods ...RPCMethod) (*RPCReply, error) {
	rpc := NewRPCMessage(methods)

	request, err := xml.Marshal(rpc)
	if err != nil {
		return nil, err
	}
	//header := []byte(xml.Header)
	//request = append(header, request...)
	log.Debugf("REQUEST: %s\n", request)

I have not devices to test other product devices, so just the h3c device is ok.

neilliu89 added a commit to neilliu89/go-netconf that referenced this issue Sep 12, 2020
neilliu89 added a commit to neilliu89/go-netconf that referenced this issue Sep 13, 2020
@zy943453722
Copy link

i have same question, who knows why? please explain, thanks!

@nemith
Copy link
Collaborator

nemith commented Jul 22, 2022

Wild guess this may be the use of uuid for message ids. My rewrite is going to use proper atomically increasing integers per-session but no ETA on it (See #24 )

Getting a dump of the complete comminication would be good to add to the unit tests. Also any virtual h3c or way we can have access to one?

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

No branches or pull requests

4 participants