netconf icon indicating copy to clipboard operation
netconf copied to clipboard

[Feature request] Allow the user to pass a complete RPC file

Open jean-christophe-manciot opened this issue 2 years ago • 1 comments

@choppsv1 netconf: 2.1.0 (pypi)

Many commands cannot be executed with the current netconf-client implementation, such as:

  • discard-changes
  • lock
  • unlock
  • get-schema
  • get-data
  • edit-data
  • ...

In order to allow all these commands, I suggest to allow the user to pass a RPC file containing the complete RPC, such as:

<discard-changes xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"/>

or

    <lock xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <target>
        <candidate/>
      </target>
    </lock>

and so on...

You could call this option --rpc <file_name>.

jean-christophe-manciot avatar Jun 06 '22 13:06 jean-christophe-manciot

@choppsv1 @userzimmermann The new RPC call syntax could look like this:

netconf-client --host <ip_address> --port 830 -u <username> -p <password> --rpc rpc_file.xml

Any thoughts?

jean-christophe-manciot avatar Jun 09 '22 12:06 jean-christophe-manciot