Page MenuHomeVyOS Platform

HTTPS API unavailable after delete VRF
Not ApplicablePublicBUG

Description

To reproduce, use nonexists VRf for config API

set service https api keys id foo key 'foo'
set system ip arp table-size '32768'

Before VRF

vyos@r1# curl -k --location --request POST 'https://localhost/retrieve'   --form data='{"op": "showConfig", "path": ["system", "ip"]}'   --form key='foo'
{"success": true, "data": {"arp": {"table-size": "32768"}}, "error": null}

Add and delete vrf

set vrf name foo table 1010
set service https vrf foo
commit
del service https vrf foo
commit

Re-check

vyos@r1# curl -k --location --request POST 'https://localhost/retrieve'   --form data='{"op": "showConfig", "path": ["system", "ip"]}'   --form key='foo'
{"error": "service https api unavailable at this proxy address: set service https api-restrict virtual-host"

Details

Version
1.3.4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Not reproduced in 1.3.5

vyos@r1# set service https vrf foo
[edit]
vyos@r1# commit
[edit]
vyos@r1# del service https vrf foo
[edit]
vyos@r1# commit
[edit]
vyos@r1# curl -k --location --request POST 'https://localhost/retrieve'   --form data='{"op": "showConfig", "path": ["system", "ip"]}'   --form key='foo'
{"success": true, "data": {"arp": {"table-size": "32768"}}, "error": null}[edit]
vyos@r1# 
[edit]
vyos@r1# run show ver

Version:          VyOS 1.3.5
Release train:    equuleus