summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2011-08-17Bugfix 7350: Allow default config.boot to be selected as config file.Bob Gilligan
Previously, the user could only select the running config file, which includes any changes the user may have made and saved, plus system generated changes such as the MAC addresses of ethernet interfaces. This change allows them to select that file or the system's default config file.
2011-08-14Bugfix 7070: Need to provide full path for irq-affinity.pl in system()Bob Gilligan
(cherry picked from commit c78c504b6a63b2af51ae02f51cf1c447dd945818)
2011-08-12Add hook to call a config migration script when upgrading from VSE Demo.Bob Gilligan
(cherry picked from commit d891558527fdc077b8c0b37c24cb8b17a2ae7043)
2011-07-05Move the is_uniq_address function to Interface.pmJohn Southworth
2011-07-01bugfix 6801: check to see if the same address is configured on another ↵John Southworth
interface in the working config before allowing an address to be set on an interface, allows for swapping addresses in the same commit
2011-06-24Make add system image use the new config directory for copying filesJohn Southworth
2011-07-14Bugfix 5856: Add username and password options.Bob Gilligan
In order to allow username and password parameters in the corresponding op mode command, we allow username and password to be specified on the install-image command line.
2011-05-25alternative fix for bug 6958An-Cheng Huang
2011-05-20irq-affinity: more fixupStephen Hemminger
1. Fix thread_per_core -- now a global variable 2. Add documentation about where still broken with offline cpus 3. Break out hamming weight function (might be used to fix #2) Tested on UP, 4 core x 2 thread, 8 socket (virt) and Multiqueue and single queue NIC.
2011-05-20irq-affinity: use sysfs to read cpu topologyStephen Hemminger
Change to using sysfs to read cpu topology. This makes code more robust and follow the standard practice of other utilities. As an added benefit, irq-affinty now handles offline cpu's and other cases where cpu numbers are not fully populated.
2011-05-20irq-affinity: initialize sockets to 1Stephen Hemminger
2011-05-19irq-affinity: fix handling of UP systemStephen Hemminger
On a UP system, there is no "physical-id" in /proc/cpuinfo.
2011-05-19Use syslog perror for debug optionStephen Hemminger
Rather than reinventing existing code, use library.
2011-05-17Bugfix: 6773 (again). Fix handling of single-queue NICs on MPs.Bob Gilligan
Some single-queue NICs use the multiqueue IRQ naming format (e.g. eth0-rx-0). We need to select the CPU assignements for these IRQs using the same algorithm that we use for single-queue NICs using the standard naming format (e.g. eth0).
2011-05-17Fix calculation of number of cores on systems with more than one socket.Bob Gilligan
2011-05-17Merge branch 'napa' of http://git.vyatta.com/vyatta-cfg-system into napaBob Gilligan
2011-05-18Fix 5912: "show vrrp" doesn't list sync-groupStig Thormodsrud
2011-05-17irq-affinity: add workaround to avoid some cpu'sStephen Hemminger
For routing and other applications it is helpful to provide some mechanism to reserve some set of CPU's and not assign interface IRQ's to them. Uses environment variable VYATTA_IRQAFFINITY_BANNED_CPUS as mechanism similar to irqbalance(8).
2011-05-17Merge branch 'napa' of vm:vyatta/napa/vyatta-cfg-system into napaStephen Hemminger
2011-05-17Fix grub syntax errorStephen Hemminger
left over from conversion to new grub.
2011-05-17Support more than 10 CPUs.Bob Gilligan
2011-05-16eliminate hard-coded commit hook directoryAn-Cheng Huang
2011-05-16smp-affinity: fix typo for assign_multiqueueStephen Hemminger
Multiqueue setup was broken ixgbe because of s/assign/assing/
2011-05-12Merge branch 'napa' of git.vyatta.com:/git/vyatta-cfg-system into napaJohn Southworth
2011-05-12Bugfix 7076: make add system image copy to /config instead of ↵John Southworth
/opt/vyatta/etc/config
2011-05-12Merge branch 'napa' of suva.vyatta.com:/git/vyatta-cfg-system into napaStephen Hemminger
2011-05-12Remove unused parts of rl-system.initStephen Hemminger
The script was looking up hostname and setting $LOGFILE, but these parts are never used in current code.
2011-05-11Fix Bug 7012 make /config available with init-floppyMohit Mehta
2011-05-10support interactive mode for rest api for install image op mode commands.Michael Larson
2011-05-09Convert mac octets from hexStephen Hemminger
Bug 7063 Need to convert MAC octets from hex to numeric before doing math operations.
2011-05-06Support netxen NIC irq naming conventionStephen Hemminger
Bug 7062 The irq's on Netxen NIC are named: eth0[0] eth0[1] eth0[2] ... This confuses the auto IRQ affinity script.
2011-05-05Make ext4 the default file system typeStephen Hemminger
2011-05-04Update grub config to new syntaxStephen Hemminger
The 'terminal' config statement is replaced by terminal_input and terminal_output.
2011-05-04Align install-image partition correctlyStephen Hemminger
Need to pass correct offset for start of root partition
2011-05-03Adjust root partition offset based on disk sizeStephen Hemminger
On tiny disks, then it doesn't make sense to waste space by offsetting root partition. On big disks, it doesn't hurt and it allows for running on SSD.
2011-05-03Make irq affinity handle any irq naming conventionStephen Hemminger
Bug 7032 (reprise) Since there are various forms of multi-queue naming, it is better to just go with the simplest pattern which is to take all the irq's of form ethX-... and sort them.
2011-05-02Fix irq-affinity mapping for multiqueue NIC'sStephen Hemminger
Bug 7032 Fix matchinging of irq's named 'eth0-TxRx-0'. And change the code to handle any form of IRQ naming of multiqueue that is eth0-xxx-0.
2011-04-30Yet another better alignment startStephen Hemminger
Parted has magic value '0%' which causes it to choose optimum alignment (2048 on most disks).
2011-04-30Fix alignment of root partitionStephen Hemminger
Redo Bug 7038 The previous change did nothing; the alignment option only reports alignment, it does not change values. Need to manually reserve space before root partition.
2011-04-28Tell parted to align disk partitionStephen Hemminger
Bug 7038 Align the created disk partition for both install-system and initial install-image. Note: can't fix existing systems where disk is already partitioned. They will just have to suffer with poor performance.
2011-04-20Fix Bug 6811 ENH: add a proper post-configuration boot scriptMohit Mehta
* added /config/scripts/vyatta-postconfig-bootup.script that gets called from /etc/rc.local. Users/Support can put in any workarounds in the script for unfixed bugs and enhancements that are not in Vyatta yet. Placing the script under /config makes sure that changes to the script will be preserved for the new image
2011-04-18* run start-up script vyatta-config-reboot-params very early in boot processMohit Mehta
This script executes scripts lying in the following directory: /opt/vyatta/bin/sudo-users/check-params-on-reboot.d Scripts in check-params-on-reboot.d are intended for parameters that require a reboot to take effect after they are set/changed. Because of the reboot requirement, underlying value and related config paramter value can become out-of-sync in couple of cases: 1. change parameter value, don't save config, reboot. Underlying value is different than the value in config file. 2. install new image; when new image boots, underlying value is the default Vyatta shipped value not the value in config file. More info: http://bugzilla.vyatta.com/show_bug.cgi?id=6915#c1 This check-in also adds ipv6_disable_blacklist script in check-params-on-reboot.d to fix the above mentioned problem for 'system ipv6 disable' and 'system ipv6 blacklist'
2011-04-13* Add help and checks for VRRP transition-script nodesMohit Mehta
to push users towards putting scripts in /config/scripts
2011-04-13fix typo in irq-affinityStephen Hemminger
2011-04-13Fix irq naming convention mapping codeStephen Hemminger
The mislabeled commit ddce08161907797fe914ba609b362d812e23fc8a Fix wrong name in get_irq_affinity Was some code to handle Broadcom device IRQ naming convention that was untested. The part that built regex was incorrectly expanding a string with regex characters.
2011-04-13Bonding script typoStephen Hemminger
Was using 'smp_affinity' where code meant 'get_irq_affinity'
2011-04-10Fix wrong name in get_irq_affinityStephen Hemminger
2011-03-30Merge branch 'napa' of 192.168.230.2:vyatta/napa/vyatta-cfg-system into napaStephen Hemminger
2011-03-30Reset irq affinity when adding interface to bond groupStephen Hemminger
Bug 6947 When adding device to bond-group, restore smp affinity
2011-03-25Fix use of uninitialized ospeedStephen Hemminger
If speed can not be determined then ospeed is undef.