Page MenuHomeVyOS Platform

repository organisation change
Closed, WontfixPublicFEATURE REQUEST

Description

The code in the repository is re-organised when the debian package is recreated. Many folders in src/ are regrouped into what will become /usr/libexec/vyos.
While it is not an issue on its own, it prevents the git repository to be copied on a live system and to change the relevant environment variable to use it such as

vyos_libexec_dir=/usr/libexec/vyos
vyos_op_scripts_dir=/usr/libexec/vyos/op_mode
vyatta_libexecdir=/opt/vyatta/libexec
vyos_completion_dir=/usr/libexec/vyos/completion
vyos_validators_dir=/usr/libexec/vyos/validators
vyos_conf_scripts_dir=/usr/libexec/vyos/conf_mode

to be for example

vyos_libexec_dir=/home/user/vyos-1x/src/libexec
vyos_op_scripts_dir=/home/user/vyos-1x/src/libexec/op_mode
vyos_completion_dir=/home/user/vyos-1x/src/libexec/completion
vyos_validators_dir=/home/user/vyos-1x/src/libexec/validators
vyos_conf_scripts_dir=/home/user/vyos-1x/src/libexec/conf_mode

and change the PYTHONPATH with

export PYTHONPATH=/home/user/vyos-1x/python/:$PYTHONPATH

to then use the git code.

should git be installed on the machine, changes could be pushed out of the server.

This would seriously reduce the development test cycle as removing the need to generate a debian package.

Details

Difficulty level
Hard (possibly days)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

dmbaturin added a subscriber: dmbaturin.

Since we are heading towards a freeze, I believe it's better to live big changes for later, even though I don't categorically disagree with the idea.

I agree that this kind of changes are better done at the start of a development cycle.

Viacheslav changed Difficulty level from Unknown (require assessment) to Hard (possibly days).
dmbaturin claimed this task.
dmbaturin edited projects, added Invalid; removed VyOS 1.4 Sagitta.

The situation is significantly more complicated now that we have libvyosconfig, but the smoketest infrastructure is also much better. The original wording no longer applies.