netconf

package
v0.0.0-...-2f4518d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2019 License: BSD-2-Clause-Views Imports: 3 Imported by: 4

Documentation

Overview

Package netconf is a simple NETCONF client based on RFC6241 and RFC6242 (although not fully compliant yet).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Transport          transport.Transport
	SessionID          int
	ServerCapabilities []string
	ErrOnWarning       bool
}

Session defines the necessary components for a NETCONF session

func NewSession

func NewSession(t transport.Transport) (*Session, error)

NewSession creates a new NETCONF session using the provided transport layer.

func (*Session) Close

func (s *Session) Close() error

Close is used to close and end a transport session

func (*Session) Exec

func (s *Session) Exec(methods ...rpc.RPCMethod) (*rpc.RPCReply, error)

Exec is used to execute an RPC method or methods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL