summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
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
2009-05-20Bugfix 4427: Handle multiqueue NICs.Bob Gilligan
Added code to deal with NICs that utilize more than one IRQ. The "set" sub-command of this script will now assign the requested affinity mask to all IRQs that are associated with the NIC.
2009-05-18notes on arbitrary root node loading in merge operations.slioch
2009-05-15root node support on load merge operation. additional work needed for deeper ↵slioch
merge path support
2009-05-15merge option added to load script. "load [configfile] --merge" adds ↵slioch
configuration to current running configuration.
2009-05-01add "load" support in vyatta-cfg-cmd-wrapperAn-Cheng Huang
2009-04-28Use getIP() to check for duplicatesStephen Hemminger
Simpler to use new getIP() for all address fetching
2009-04-28Catch incorrect address formatStephen Hemminger
Don't just silently exit on incorrect address format. At least print an error
2009-04-28Fix bug in is_ip_configuredStephen Hemminger
Bug 4311 Doing grep ($ip, @list) will return whole list since it evaluted $ip as a expression and the result was defined.
2009-04-28DHCP should be checking config not flagsStephen Hemminger
If interface is down (because of release), then renew should still be able restart interface.
2009-04-28Need to convert path to have slashesStephen Hemminger
More convient to do it here.
2009-04-27Merge branch 'jenner' of 192.168.100.1:git/vyatta-cfg into jennerStephen Hemminger
2009-04-27Cleanup exports of Vyatta::MiscStephen Hemminger
Remove duplicates from list, and make sure getIP is exported, and that explicit imports are listed.
2009-04-27fix broken call to getIPMohit Mehta
2009-04-27vyatta-interfaces changes for DHCPStephen Hemminger
Need good way to find path to get current MTU.
2009-04-27Handle errors better in show_mtuStephen Hemminger
2009-04-27Add method to show configured mtuStephen Hemminger
2009-04-24Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg into jennerStephen Hemminger
2009-04-21Merge branch 'jenner' of http://git.vyatta.com/vyatta-cfg into jennerStig Thormodsrud
2009-04-21Add some debug files to help diagnose boot issue with new cli ordering.Stig Thormodsrud
These should be removed before release.