Page MenuHomeVyOS Platform

HTTP API add action "reset"
Closed, ResolvedPublicFEATURE REQUEST

Description

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

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

PR https://github.com/vyos/vyos-1x/pull/1333

vyos@r14# 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]
vyos@r14# 
[edit]


vyos@r14# 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]
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.2) board.