sshmitm.plugins.netconf package
- class sshmitm.plugins.netconf.NetconfLoggingForwarder(session)
Bases:
NetconfBaseForwarderLog all NETCONF RPC operations and replies; forward everything unchanged.
- Parameters:
session (
Session)
- handle_rpc_reply(message_id, element)
Called for each server RPC reply after the
<hello>exchange.message_id is the
message-idattribute of the<rpc-reply>. element is the parsed<rpc-reply>element.Return a modified element to rewrite the reply, or
Noneto forward the original bytes unchanged. The default implementation always returnsNone.- Parameters:
message_id (
str)element (
Element)
- Return type:
Element|None
- handle_rpc_request(message_id, operation, element)
Called for each client RPC after the
<hello>exchange.message_id is the
message-idattribute of the<rpc>element. operation is the local name of the operation (e.g."get-config"). element is the parsed<rpc>Element.Return a modified element to rewrite the message, or
Noneto forward the original bytes unchanged. The default implementation always returnsNone.- Parameters:
message_id (
str)operation (
str)element (
Element)
- Return type:
Element|None