...
It assumes the xl toolkit is being used.
...
How the scripts are called
Normally the scripts are called by xl (and thence libxenlight?) because they are named in /etc/xen/<DomU name>.cfg.
Structure of the scripts
The scripts are written in bash.
The scripts use a lot of common components: bash scripts which are sourced mostly to define functions. For example, here is the start of the vif-bridge call tree.
vif-bridge | +-- . /etc/xen/scripts/vif-common.sh | +-- . /etc/xen/scripts/xen-hotplug-common.sh | | | +-- . /etc/xen/scripts/hotplugpath.sh | | | +-- . /etc/xen/scripts/logging.sh | | | +-- . /etc/xen/scripts/xen-script-common.sh | | | +-- . /etc/xen/scripts/locking.sh | +-- . xen-network-common.sh | +-- findCommand | +-- evalVariables |
Developing the scripts
Run-time values
...