03-29-2020 08:19 AM
I'm trying to run a script from the devnet python code samples and continue to get the following errrors while trying to modify an ip address on an interface:
What IP address do you want to set? 192.168.40.1
What Subnet Mask do you want to set? 255.255.255.0
{
"errors": {
"error": [
{
"error-message": "/if:interfaces/interface{Loopback100}/type: Runtime mapping error.",
"error-path": "/ietf-interfaces:interfaces/interface=Loopback100",
"error-tag": "malformed-message",
"error-type": "application"
}
]
}
}
Ending Interface Configuration
Name: Loopback100
IP Address: 172.16.100.1 / 255.255.255.0
Any help in what I'm doing wrong?
Solved! Go to Solution.
03-29-2020 09:31 AM
Not sure how is your rights on the device and what device is this ?
here is example for rererence :
03-29-2020 01:22 PM
Hi
Can you provide a link to the devnet code or lab you are working on?
Have a look here for some sample code that you can run on the sandbox.
03-29-2020 09:31 AM
Not sure how is your rights on the device and what device is this ?
here is example for rererence :
03-29-2020 01:22 PM
Hi
Can you provide a link to the devnet code or lab you are working on?
Have a look here for some sample code that you can run on the sandbox.
03-29-2020 05:11 PM
I marked this open case as solved and closed so that your all not working on it and prioritizing anything here. I was just trying to learn some new tech and there is plenty of other code to learn the same thing on all your sites.
Thanks for your help on a Sunday and stay safe during this virus problem
Dale
03-30-2020 05:51 AM
Hey Dale, I thought the issue was due to the sandbox being under maintenance yesterday. I see the same issue as you, however, I think this only works on interfaces other than loopback
(venv) STUACLAR-M-R6EU:restconf_update_ipaddress stuaclar$ python updateip.py The router has the following interfaces: * GigabitEthernet1 * GigabitEthernet2 * GigabitEthernet3 * Loopback5 * Loopback22 * Loopback72 * Loopback100 * Loopback103 * Loopback678 * Loopback1069 * Loopback1245 * Loopback1246 * VirtualPortGroup0 Which Interface do you want to configure? GigabitEthernet3 GigabitEthernet3 Starting Interface Configuration Name: GigabitEthernet3 IP Address: 192.168.40.1 / 255.255.255.0 What IP address do you want to set? 192.168.50.1 What Subnet Mask do you want to set? 255.255.255.0 Ending Interface Configuration Name: GigabitEthernet3 IP Address: 192.168.50.1 / 255.255.255.0
03-30-2020 06:16 AM
03-30-2020 06:25 AM
03-30-2020 06:40 AM
03-30-2020 06:48 AM
03-30-2020 06:50 AM
03-30-2020 06:59 AM
thank you! :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide