cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
591
Views
0
Helpful
1
Replies

Netconf edit-config with no-networking

martmitc
Cisco Employee
Cisco Employee

Can an example of a netconf edit-config request with the no-networking input parameter be provided.

1 Accepted Solution

Accepted Solutions

Jan Lindblad
Cisco Employee
Cisco Employee

Sure.

The NSO-specific options to <edit-config> are defined in nso/4.4.2/src/ncs/yang//tailf-netconf-ncs.yang which has a namespace id "http://tail-f.com/ns/netconf/ncs" . So applying no-networking would look like something like this:

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">

  <edit-config>

    <target>

      <running/>

    </target>

    <no-networking xmlns="http://tail-f.com/ns/netconf/ncs"/>

    <config xmlns="http://tail-f.com/ns/config/1.0">

      <devices xmlns="http://tail-f.com/ns/ncs">

        <device>

         ...

View solution in original post

1 Reply 1

Jan Lindblad
Cisco Employee
Cisco Employee

Sure.

The NSO-specific options to <edit-config> are defined in nso/4.4.2/src/ncs/yang//tailf-netconf-ncs.yang which has a namespace id "http://tail-f.com/ns/netconf/ncs" . So applying no-networking would look like something like this:

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">

  <edit-config>

    <target>

      <running/>

    </target>

    <no-networking xmlns="http://tail-f.com/ns/netconf/ncs"/>

    <config xmlns="http://tail-f.com/ns/config/1.0">

      <devices xmlns="http://tail-f.com/ns/ncs">

        <device>

         ...