Add "reset" action for API
for example
reset ip bgp 192.168.122.11
API
'{"op": "reset", "path": ["ip", "bgp", "192.168.122.14"]}' http://localhost/reset
Add "reset" action for API
for example
reset ip bgp 192.168.122.11
API
'{"op": "reset", "path": ["ip", "bgp", "192.168.122.14"]}' http://localhost/reset
PR https://github.com/vyos/vyos-1x/pull/1333
[email protected]# curl --unix-socket /run/api.sock -X POST -Fkey=mykey -Fdata='{"op": "reset", "path": ["ip", "bgp", "192.168.122.11"]}' http://localhost/reset {"success": true, "data": "", "error": null}[edit] [email protected]# [edit] [email protected]# run show ip bgp sum IPv4 Unicast Summary (VRF default): BGP router identifier 192.168.122.14, local AS number 65001 vrf-id 0 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc 192.168.122.11 4 65001 51 65 0 0 0 00:00:02 Idle 0 N/A Total number of neighbors 1 [edit]