summaryrefslogtreecommitdiff
path: root/python/vyos/configsession.py
AgeCommit message (Collapse)Author
2021-02-17configsession: T3259: avoid deadlock when data fills stdout pipeJohn Estabrook
If the subprocess is producing enough data (in this case showConfig on a large config file), then the construction: p = subprocess.Popen(.., stdout=subprocess.PIPE, ..) p.wait() will deadlock with the subprocess waiting for data to be consumed, while the Python process waits for its termination. So consume data, then wait for termination.
2020-10-21configsession: T3004: add call to config load scriptJohn Estabrook
2020-08-31configd: T2582: inject shim env variable into configsessionJohn Estabrook
ConfigSession needs to have required env vars manully injected; add the shim definition env var to the list, if config daemon is active.
2020-08-08http api: T1431: update args of call to install-imageJohn Estabrook
commit 3f8884587 added an endpoint for image management; T2753 updated the command line options. Make script call consistent.
2020-04-22http api: T2096: form of show/generate should be consistent with other cmdsJohn Estabrook
2020-03-11http api: T2096: Added show and generateMatthias Fetzer
2020-02-05smoke-test: adding generate cmd to configsessionhagbard
- in preparation for a wireguard cli test case, generate is used to create the keys later used in the config
2020-01-24Python: T1986: close subprocess channelChristian Poessinger
Without closing the communication channel to the subprocess, Python will complain e.g. when executing vyos-smoketest binary. /usr/lib/python3/dist-packages/vyos/configsession.py:110: ResourceWarning: unclosed file <_io.BufferedReader name=3> self.__run_command([CLI_SHELL_API, 'setupSession']) ResourceWarning: Enable tracemalloc to get the object allocation traceback
2019-10-23[HTTP API] Add endpoints for config file and image management.Daniil Baturin
2019-09-19[boot-config-loader] T1622: (bugfix) set gid and write permissionsJohn Estabrook
Set gid and permissions so that vyatta-cfg group has access to the active config; fix typo in arg len check; reorganize; add log output.
2019-08-31[boot-config-loader] T1622: Add failsafe and back traceJohn Estabrook
2019-08-05T1431: add showConfig operation to the HTTP API.Daniil Baturin
2019-08-05[vyos.configsession] Return the output of the external process from ↵Daniil Baturin
__run_command.
2019-06-16T1432: inject VyOS-specific environment variables into the session environment.Daniil Baturin
They are widely referenced by command templates, but a process started as a service doesn't automatically get them.
2019-06-16T1432: add a finalizer to vyos.configsession to avoid leaking sessions.Daniil Baturin
2019-06-16T1432: add a discard function to vyos.configsessionDaniil Baturin
2019-06-13T1431: make it possible to obtain session environment and run vyos.config ↵Daniil Baturin
functions under it. This is required for programs running outside a CLI session, like the future API daemon.
2019-06-12T1432: correct the ConfigSessionError exception name.Daniil Baturin
2019-06-12T1432: initial implementation of the config write API.Daniil Baturin