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

Re: Separation of configuration and control - good or bad?



Juergen Schoenwaelder writes:
>I am talking about the filter
>expression which you pass to get-config() to select what you are
>retrieving.

I think Larry was talking about using xpath for more than that.
A snippet from his mail is attached.

Thanks,
 Phil

    <transaction id="29">
            <deleteRequest opId="2" select="/root/configuration/protocol/ospf/area[@id='0']" />
            <deleteRequest opId="1" select="/root/configuration/protocol/ospf/area[@id='3']" />
            <addRequest opId="3" select="/root/configuration/protocol/ospf">
                <area id="4">
                    <interface id="ge-2/2">
                        <authentication-key>
                            <keyname>gargoyle</keyname>
                            <key-id>3</key-id>
                        </authentication-key>
                        <metric>1</metric>
                        <hello-interval>10</hello-interval>
                        <dead-interval>40</dead-interval>
                        <retransmit-interval>10</retransmit-interval>
                        <transit-delay>5</transit-delay>
                    </interface>
                </area>
            </addRequest>
            <addRequest opId="4" select="/root/configuration/protocol/ospf/area[@id='2']/interface[@
id='ge-1/5']">
                <dead-interval>40</dead-interval>
            </addRequest>
            <addRequest opId="5" select="/root/configuration/protocol/is-is">
                <area id="5"></area>
            </addRequest>
            <addRequest opId="6" select="/root/configuration/protocol/ospf/area[@id='1']">
                <label-switched-path id="to-SFO">
                    <metric>15</metric>
                </label-switched-path>
            </addRequest>
            <replaceRequest opId="7" select="/root/configuration/protocol/ospf/area[@id='6']/label-s
witched-path[@id='to-SFO']">
                <metric>20</metric>
            </replaceRequest>
        </transaction>

--
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/>