Need ability to set module and kernel options from the CLI. Hopefully, just need to set GRUB_CMDLINE_LINUX variable when running the vyatta-grub-setup script.
Description
Details
- Difficulty level
- Normal (likely a few hours)
- Version
- 1.2.0
- Why the issue appeared?
- Will be filled on close
Related Objects
Event Timeline
Reference for why and examples of how to add kernel flags.
http://people.binf.ku.dk/~hanne/b2evolution/blogs/index.php/2015/03/04/ixgbe-failed-to-load-because
T419 also needs this capability.
@dmbaturin what you think about:
set system kernel module <modulename> option <parameter> <value> set system kernel boot <parameter> <value>
Example:
set system kernel module vxlan option udp_port 1337 set system kernel boot ixgbe.allow_unsupported_sfp 1
Another idea would be to wrap the system options in the python configuration script with e.g. a dictionary.
Example: set system kernel vxlan-port 1337
When using a configuration dictionary vxlan-port would be the key and the value would be a list consisting of the configuration file and options, e.g. ['/etc/modprobe.d/vyos_vxlan.conf', 'options vxlan vxlan_port=']
This results in a clean API which is applied to the appropriate filed sunder the hood as VyOS is used to do.
Another example:
set system kernel ixgbe-unsupported-sfp enable with an ixgbedictionary key has the value ['/etc/modprobe.d/vyos_ixgbe.conf', 'options ixgbe allow_unsupported_sfp=']