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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverJunos

type DriverJunos struct {
	Timeout   time.Duration    // Timeout for SSH timed sessions
	Datastore string           // NETCONF datastore
	Session   *session.Session // Session data
}

DriverJunos type is for creating a Junos based driver. Maintains state for session and connection. Implements Driver{}

func New

func New() *DriverJunos

New creates a new instance of DriverJunos

func (*DriverJunos) Close

func (d *DriverJunos) Close() error

Close function closes the socket

func (*DriverJunos) Dial

func (d *DriverJunos) Dial() error

Dial function (call this after New())

func (*DriverJunos) DialTimeout

func (d *DriverJunos) DialTimeout() error

DialTimeout NOT IMPLEMENTED. This driver is transactional based and not required.

func (*DriverJunos) GetConfig

func (d *DriverJunos) GetConfig() (*rpc.RPCReply, error)

GetConfig requests the contents of a datastore

func (*DriverJunos) Lock

func (d *DriverJunos) Lock(ds string) (*rpc.RPCReply, error)

Lock the target datastore

func (*DriverJunos) SendRaw

func (d *DriverJunos) SendRaw(rawxml string) (*rpc.RPCReply, error)

SendRaw sends a raw XML envelope

func (*DriverJunos) SetDatastore

func (d *DriverJunos) SetDatastore(ds string) error

SetDatastore sets the target datastore on the data structure

func (*DriverJunos) Unlock

func (d *DriverJunos) Unlock(ds string) (*rpc.RPCReply, error)

Unlock the target datastore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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