“CABUORCH-1799”的版本间的差异
来自qingwei personal wiki
(→scope) |
(→ios cmd) |
||
第6行: | 第6行: | ||
=== ios cmd === | === ios cmd === | ||
<source lang="shell"> | <source lang="shell"> | ||
− | + | # 需要删除下面两种情况 | |
ip route 60.10.13.61 255.255.255.255 100.1.1.0 | ip route 60.10.13.61 255.255.255.255 100.1.1.0 | ||
2018年6月12日 (二) 07:23的版本
描述
remove L3 static routes by NSO REST API not using no command
wiki
scope
ios cmd
# 需要删除下面两种情况
ip route 60.10.13.61 255.255.255.255 100.1.1.0
ip route vrf lcha-617 60.10.13.61 255.255.255.255 100.1.1.2
NSO curl Delete
curl -i -u admin:admin http://127.0.0.1:8080/api/running/devices/device/f0bf1cdf-bee1-3525-817c-b593fcb8c8bb/config/ios:ip/route
<ip-route-forwarding-list>
<prefix>10.124.8.0</prefix>
<mask>255.255.255.0</mask>
<forwarding-address>20.6.6.1</forwarding-address>
</ip-route-forwarding-list>
<vrf>
<name>lcha-te72</name>
</vrf>
# delete CURL
curl -i -u admin:admin -X "DELETE" http://127.0.0.1:8080/api/config/devices/device/f0bf1cdf-bee1-3525-817c-b593fcb8c8bb/config/ios:ip/route/ip-route-forwarding-list/10.124.8.0,255.255.255.0,20.6.6.1