cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
599
Views
0
Helpful
0
Replies
duchm72
Beginner

How to set a scheduled-time to NETCONF edit-config method ?

I'm using NETCONF to enable/disable an interface of the csr-1000v router. How can I set the scheduled-time to the activity ? For example of scheduled-time: 2021-05-01T11:15:00+07:00

Thank you !

 

This is my script.

<rpc message-id="105"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<scheduled-time xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-time">2021-05-01T11:15:00+07:00</scheduled-time>
<config>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
<interface>
<name>Loopback1</name>
<type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:softwareLoopback</type>
<enabled>false</enabled>
</interface>
</interfaces>
</config>
</edit-config>
</rpc>

 

But it is not accepted.

<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="105"><rpc-error>
<error-type>protocol</error-type>
<error-tag>unknown-element</error-tag>
<error-severity>error</error-severity>
<error-path>
/rpc/edit-config
</error-path><error-info><bad-element>scheduled-time</bad-element>
</error-info>
</rpc-error>
</rpc-reply>

0 REPLIES 0
Create
Recognize Your Peers
Content for Community-Ad