The netconf.base
Module¶
-
class
netconf.base.
NetconfFramingTransport
(stream, max_chunk, debug)¶ Bases:
netconf.base.NetconfPacketTransport
Packetize an ssh stream into netconf PDUs – doesn’t need to be SSH specific
-
close
()¶
-
is_active
()¶
-
receive_pdu
(new_framing)¶
-
send_pdu
(msg, new_framing)¶
-
-
class
netconf.base.
NetconfPacketTransport
¶ Bases:
object
-
receive_pdu
(new_framing)¶
-
send_pdu
(msg, new_framing)¶
-
-
class
netconf.base.
NetconfSession
(stream, debug, session_id, max_chunk=16384)¶ Bases:
object
Netconf Protocol Server and Client
-
close
()¶
-
is_active
()¶
-
reader_exits
()¶
-
reader_handle_message
(msg)¶
-
send_hello
(caplist, session_id=None)¶
-
send_message
(msg)¶
-
-
netconf.base.
chunkit
(msg, maxsend, minsend=0, pad=u'\n')¶ chunkit iterates over a msg returning chunks of at most maxsend size, and of at least minsend size if non-zero. Padding will be added if required. This function currently requires that maxsend is at least large enough to hold 2 minsend chunks.
-
netconf.base.
lookahead
(iterable)¶ Return an element and an indication if it’s the last element