summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2010-05-28Remove single quotes except on leaf-node.Stig Thormodsrud
2010-05-27additional fix for boot loading of deactivate nodes.Michael Larson
2010-05-27fix for loading config for deactivated nodes. allows nested deactivates ↵Michael Larson
within a single set of deactivated commands. only preserves the parent deactivated node in this case.
2010-05-26script that will remove migration comments from configuration file. to ↵Michael Larson
remove these comments from the comments in the action configuration the user should: 1) save their current configuration 2) run this script on the saved configuration 3) reload their configuration (which will strip the migration comments from the active configuration tree)
2010-05-25final fix for 5610. fixes loading where node in active config is deactivated ↵Michael Larson
and is active in loaded configuration.
2010-05-21fix for disable nodes loading (bug 5610). Additional checks added on ↵Michael Larson
configuration of disable nodes. requires vyatta-config-migrate package as well. Additional fix required for loading configuration with deactivated nodes that are activated through the loading process.
2010-05-17trap for illegal characters in comment field being set by user and provide ↵Michael Larson
feedback.
2010-05-14POC implementation of unified enumeration mechanismAn-Cheng Huang
* use "enumeration" template field for both CLI completion and GUI2 enumeration support. * CLI completion now uses enumeration if it exists. * add "existing-interfaces" script as an example.
2010-05-14initial checkin of comment feature for cli.Michael Larson
/* to create a comment */ > comment [PATH-TO-NODE] "my comments" /* to delete a comment */ > comment [PATH-TO-NODE] ""
2010-05-12added additional warning message if the user tries to deactivate a node that ↵Michael Larson
has already been deactivated.
2010-05-071) skip comment and empty lines in priority file;Arthur Xiong
2) remove priority from node.def when priority value is 0 in priority file; 3) copy over comment and empty lines in the beginning of node.def
2010-05-05boot loader support now added. various bug fixes and some small rework.Michael Larson
2010-05-04initial working version of activate and deactivate: load,save,show,commit ↵Michael Larson
supported.
2010-04-28Update to handle none default path to the templates if providedArthur Xiong
2010-04-28Update regex to handle priority line without space(s) and comment in theArthur Xiong
end
2010-04-28A script to automatically update/add priority tag with some value forArthur
each node.def according to the inputs.
2010-04-22support for PARENT reference in priority statements. Example:Michael Larson
priority: PARENT Means that this priority group will adopt the priority value of the parent. And the behavior on deletion of this priority root node will be deleted before the parent. On all other operations this node will be scheduled after the parent. This should fix problems in scheduling creation/deletion orders for priority groups so long as they are located within the same hierarchy. priority.pl has been updated as well.
2010-03-09Bugfix 5021: Make smp_affinity configuration tolerant of failures.Bob Gilligan
2010-03-05add cmd-wrapper move command (for app-mode)An-Cheng Huang
2010-01-19Restore priority commentsStephen Hemminger
Also sort the names when multiple values have same priority.
2009-12-21Rewrite priority script to use File::findStephen Hemminger
Use perl library rather than external find/grep. Cleaner and more efficient.
2009-12-21Move interfaces to vyatta-cfg-system packageStephen Hemminger
All the other templates and scripts related to interfaces are in vyatta-cfg-system
2009-12-16Fix DHCP command handlingStephen Hemminger
This fixes Bug 3917 by checking for interface current state rather than configuration state. Also changed variable names and command arguments to improve clarity. Instead of --op_command="dhcp-renew" use "--dhcp renew".
2009-12-08Bugfix 5143: Fix grep regex for NICs with >= 10 queues.Bob Gilligan
2009-11-14Fix breakage from pervious commit.Stig Thormodsrud
2009-11-05Allow inline comments in config template fields.Bob Gilligan
Also change priority.pl script to display inline comments found in "priority:" fields if they are present.
2009-10-30Sync config file after savingStephen Hemminger
By calling fsync, we can be more assured that file actually makes it to disk.
2009-10-26Generalize handling of multi-queue NICs.Bob Gilligan
Previously the script determined the driver that a NIC was using, then used that to parse the queue names from /proc/interrupts. Now, it determines the naming convention just by looking at the queue names. Now the script should work for all NICs that support one of the two standard naming conventions. Also added some support for single-queue NICs.
2009-10-21fixed script to handle multiple entries for same priorityslioch
2009-10-21sorts and generates priority statements from priority node.def entriesslioch
2009-10-19add sudo back to save command, and add check to save script that validates ↵slioch
vyatta config token at end of file. this will prevent the accidental overwrite of non vyatta config files. check on prevent existing files that don't contain ' === vyatta-config-version:' from being saved to.
2009-10-12Bugfix 2593: Introduce automatic static IRQ affinity balancing for some NICs.Bob Gilligan
This change implements a mechanism for setting the IRQ affinity of NIC interrupts in a way that is optimally balanced. The affinity settings are static, and are set up at configuration time. I've added "auto" as a new legal value to the "interfaces ethernet ethX smp_affinity" configuration parameter. If this value is set, then the system attempts to perform automatic IRQ affinity assignment. At this time, automatic IRQ affinity is supported only for multiqueue NICs that use the igb or bnx2 drivers. Even with these two, differences in the organization of queues and their naming convention necessitate some NIC-specific code. The assignment strategy attempts to assign all queues of all NICs that share the same queue number to the same CPU. This has been shown to be optimal for IP forwarding workloads in 2.6.31 kernels. Setting the value to "auto" for NICs that use other drivers will be a no-op.
2009-09-09Bugfix 4700, 4269: Fix set and commit-time checks for ethernet vif addresses tooBob Gilligan
Also restore "--valid-addr" flag to vyatta-interfaces.pl since it is used outside this package.
2009-09-09Bugfix 4700, 4269: Fix set and commit-time checks of ethernet address valuesBob Gilligan
Changed the the set-time and commit-time check of ethernet interface address values. These checks need to prevent configuring both DHCP and static IPv4 addresses on the same interfac. The previous checks were comparing against the running configuration tree, not the proposed config tree. Now the set-time check is purely a syntax check, and the commit-time check only checks for both DHCP and static IPv4 addresses in the proposed config. The system now allows DHCP and static IPv6 addresses to be configured on the same interface.
2009-08-27Failure to set address should fail the commitStephen Hemminger
The script was hiding any error exit codes from 'ip' command. Switch to using exec so that error exits fail the commit. Discovered when testing with IPV6 disabled.
2009-08-24Add a small script to test for node existanceStephen Hemminger
This does the same thing as vyatta-quagga-utils.pl --exists, but it is generally useful (outside quagga) and has less overhead than a perl compile.
2009-07-31Merge branch 'kenwood' of http://git.vyatta.com/vyatta-cfg into kenwoodslioch
2009-07-31cleaned out more of the islavista rank code. closing bug 4473 as a resultslioch
2009-07-29update cli-expand-var script to match current variable reference syntax.An-Cheng Huang
2009-07-28alter rename rule option to work for firewall and nat rulesMohit Mehta
2009-07-24Fix 4722: Output inconsistent from 'save' and 'load' commandsStig Thormodsrud
(cherry picked from commit abc33133b79759a629b14b81e6a65eed0fa23e8a)
2009-07-08load requires additional environment variablesAn-Cheng Huang
2009-06-30Fix 4664: 'set failed' is returned when duplicated interface IP address is setStig Thormodsrud
2009-06-30add option for renaming firewall rules to cmd-wrapper scriptMohit Mehta
2009-06-26make changes to work with dhcp 4.1.0Mohit Mehta
2009-06-12Manage speed duplex in vyatta-interfaces.plStephen Hemminger
Move the speed/duplex setting into script where we can handle errors better, and avoid setting speed/duplex twice. (cherry picked from commit 330470f1f060f579434eb89469f4ed021c95449d)
2009-05-21Bugfix 4432: Don't validate interface name in "check" sub-command.Bob Gilligan
The "check" sub-command is called by the CLI at "set" time. The interface may not be configured, or may be configured but not "up" at this time. So we don't want to perform any validation on the interface.
2009-05-21add "discard" command to cmd wrapperAn-Cheng Huang
2009-05-21Add script option to check if interface is upStephen Hemminger
Better than reading sysfs directly.
2009-05-20Use the default_smp_affinity /proc file if it is available.Bob Gilligan