[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some question about get-all&kill-session



I am working on a trivial implementation  based on NETCONF v1, but during
programming,I am confused by the description, so I want to ask a few
questions.

1. Can <get-all>  get only config  without state information?

The draft-ietf-netconf-prot-02 takes the following example to illustrate how
<get-all> operation works:
      <rpc message-id="109" xmlns="http://ietf.org/netconf/base/1.0";>
         <get-all>
           <state xmlns="http://example.com/schema/1.2/int-stats";>
             <interface name="ethernet0/1">
                <intstats></intstats>
             </interface>
           </state>
           <format>xml</format>
         </get-all>
        </rpc>


If <get-all> can get both config and state, does it mean we can use the
following to get config without state?

       <rpc message-id="109" xmlns="http://ietf.org/netconf/base/1.0";>
         <get-all>
           <config xmlns="http://example.com/schema/1.2/config";>
             <interface name="ethernet0/1">
             </interface>
           </config>
           <format>xml</format>
         </get-all>
        </rpc>


If we can use <get-all> to obtain the individual config information,does it
mean <get-config> is redundant?


2. Another question about <get-all> is how to specify the datastore(running,
startup) in the <get-all> operation. Should we add parameter "target" to
<get-all>? Or do we mean the default target is "running", but I cannot find
such kind of explaination in the draft.


3. As to kill-session, I have two questions. The first one is how the
netconf assign session-id? Is there an algorithm or just use sequencial
number;

The second one is how to get the session-id of current session.

Since we have no specific operation to get the session-id, I wonder how this
operation can be implemented. Can someone can give us an example about
<kill-session>?


Thank you






--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>