- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Nov 29 2023
Nov 28 2023
Tested on VyOS 1.4-rolling-202311100309
- IKEv1
- 2 proposals
- the pfs is enabled
You can use GraphQL query. It shows you what does container.py for raw format
set service https api graphql set service https api keys id KID key 'foo'
Query
curl -k --raw 'https://localhost/graphql' \ -H 'Content-Type: application/json' \ -d '{"query":" { ShowImageContainer (data: {key: \"foo\"}) {\n success\n errors\n data {\n result\n }\n}\n}\n"}'
For example
Nov 27 2023
Seems like it's the same for the other functions
sudo podman ps --all vs. sudo podman ps --all --format='{{json .}}'
sudo podman network ls vs. sudo podman network ls --format='{{json .}}'
The implementation in file container.py has the command podman image ls which is ok when called from shell.
When called from API it should have been podman image ls --format='{{json .}}'
Seems like I was wrong, the content is returned but not in structured json format.
For further automation it would be nice to have json objects instead of a string which needs to be parsed by the client.
Great addition, it has one minor bug.
The problem is that, comparing to command output on 1.3, it only show the leases granted by the router (and doesn't contain leases granted by the second router, regardless of states primary|secondary.
So user might think synchronization between routers defined in fail-over mode is broken.
But this is not the case. As explained in the description, all information about leases, granted by both routers, is present on lease files on both routers.
Nov 26 2023
PR for 1.5 https://github.com/vyos/vyos-1x/pull/2544
Nov 25 2023
KeyboardInterrupt is caught with an appropriate error message now.
What is the difference between local router and failover router? It is not clear. My local router in failover mode ;) but state master.
Nov 24 2023
Backport to 1.4?
And going further, we may create an extra column, in order to print if the lease was granted by Local-Router or by fail-over router..
Example:
Changing this line: https://github.com/vyos/vyos-1x/blob/current/src/op_mode/dhcp.py#L117C9-L117C107
Do you want to see leases state == backup?
What is the expected?
Pretty sure some preceding backports are pending. Please give me a couple of days. I plan to sync up 1.4 with 1.5 and update the docs.
Looks like this has been resolved using the latest 1.4 nftables. I am now able to specify local time without the use of UTC.
Nov 23 2023
We'll discuss this internally, but for sure a fix should be applied.
Thanks for such a detailed bug-report.
Agree with @Viacheslav and @GurliGebis comments above.
I agree, without it, you end up repeating yourself alot, with the established, related and invalid rules.
As long as they are applied before the zone specific rules (which is how I guess it used to work), it makes sense.
There are different commands
vyos@r1:~$ show bgp neighbors 192.168.122.14 advertised-routes % No such neighbor or address family vyos@r1:~$ vyos@r1:~$ show ip bgp neighbors 192.168.122.14 advertised-routes vyos@r1:~$
Should we return global state policy?
It was useful.
Tested in VyOS 1.4-rolling-202311100309:
Tested in VyOS 1.4-rolling-202311100309
Configs:
Node-1
Backport to 1.4 has conflicts https://github.com/vyos/vyos-1x/pull/2533
Nov 22 2023
@Viacheslav
I missed running git pull on my ansible execution node. Works as it should. Thank you!
A fix that changes the behavior back to it was https://github.com/vyos/vyos-1x/pull/2527