summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control4
-rw-r--r--debian/vyatta-cfg-system.postinst.in2
-rwxr-xr-xscripts/install-system142
-rwxr-xr-xscripts/keepalived/vyatta-keepalived.pl21
-rwxr-xr-xscripts/keepalived/vyatta-show-vrrp.pl75
-rwxr-xr-xscripts/keepalived/vyatta-vrrp-state.pl9
-rwxr-xr-xscripts/rl-system.init5
-rw-r--r--scripts/snmp/vyatta-snmp.pl35
-rw-r--r--templates/interfaces/bridge/node.def2
-rw-r--r--templates/interfaces/bridge/node.tag/address/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/description/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/bridge-group/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/bridge/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/description/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/priority/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/description/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def3
-rw-r--r--templates/interfaces/tunnel/node.def2
-rw-r--r--templates/interfaces/tunnel/node.tag/address/node.def4
-rw-r--r--templates/interfaces/tunnel/node.tag/description/node.def2
-rw-r--r--templates/interfaces/tunnel/node.tag/key/node.def5
-rw-r--r--templates/interfaces/tunnel/node.tag/local-ip/node.def6
-rw-r--r--templates/interfaces/tunnel/node.tag/mtu/node.def2
-rw-r--r--templates/interfaces/tunnel/node.tag/remote-ip/node.def6
-rw-r--r--templates/interfaces/tunnel/node.tag/tos/node.def2
-rw-r--r--templates/interfaces/tunnel/node.tag/ttl/node.def2
-rw-r--r--templates/protocols/snmp/community/node.def2
-rw-r--r--templates/protocols/snmp/community/node.tag/authorization/node.def2
-rw-r--r--templates/protocols/snmp/community/node.tag/client/node.def2
-rw-r--r--templates/protocols/snmp/community/node.tag/network/node.def2
-rw-r--r--templates/protocols/snmp/community/node.tag/node.def2
-rw-r--r--templates/protocols/snmp/contact/node.def2
-rw-r--r--templates/protocols/snmp/description/node.def2
-rw-r--r--templates/protocols/snmp/location/node.def2
-rw-r--r--templates/protocols/snmp/node.def2
-rw-r--r--templates/protocols/snmp/trap-target/node.def2
-rw-r--r--templates/service/node.def2
-rw-r--r--templates/service/ssh/node.def2
-rw-r--r--templates/service/ssh/port/node.def2
-rw-r--r--templates/service/ssh/protocol-version/node.def2
-rw-r--r--templates/service/telnet/node.def2
-rw-r--r--templates/service/telnet/port/node.def2
-rw-r--r--templates/system/domain-name/node.def2
-rw-r--r--templates/system/domain-search/domain/node.def2
-rw-r--r--templates/system/domain-search/node.def2
-rw-r--r--templates/system/host-name/node.def2
-rw-r--r--templates/system/login/node.def2
-rw-r--r--templates/system/login/radius-server/node.def2
-rw-r--r--templates/system/login/radius-server/node.tag/port/node.def2
-rw-r--r--templates/system/login/radius-server/node.tag/secret/node.def2
-rw-r--r--templates/system/login/radius-server/node.tag/timeout/node.def2
-rw-r--r--templates/system/login/user/node.def2
-rw-r--r--templates/system/login/user/node.tag/authentication/encrypted-password/node.def2
-rw-r--r--templates/system/login/user/node.tag/authentication/node.def2
-rw-r--r--templates/system/login/user/node.tag/authentication/plaintext-password/node.def2
-rw-r--r--templates/system/login/user/node.tag/full-name/node.def2
-rw-r--r--templates/system/login/user/node.tag/level/node.def2
-rw-r--r--templates/system/name-server/node.def2
-rw-r--r--templates/system/node.def2
-rw-r--r--templates/system/ntp-server/node.def2
-rw-r--r--templates/system/options/node.def2
-rw-r--r--templates/system/options/reboot-on-panic/node.def2
-rw-r--r--templates/system/package/auto-sync/node.def2
-rw-r--r--templates/system/package/node.def2
-rw-r--r--templates/system/package/repository/node.def2
-rw-r--r--templates/system/package/repository/node.tag/components/node.def2
-rw-r--r--templates/system/package/repository/node.tag/description/node.def2
-rw-r--r--templates/system/package/repository/node.tag/distribution/node.def2
-rw-r--r--templates/system/package/repository/node.tag/url/node.def2
-rw-r--r--templates/system/static-host-mapping/host-name/node.def2
-rw-r--r--templates/system/static-host-mapping/host-name/node.tag/alias/node.def2
-rw-r--r--templates/system/static-host-mapping/host-name/node.tag/inet/node.def2
-rw-r--r--templates/system/static-host-mapping/node.def2
-rw-r--r--templates/system/syslog/console/facility/node.def2
-rw-r--r--templates/system/syslog/console/facility/node.tag/level/node.def2
-rw-r--r--templates/system/syslog/console/node.def2
-rw-r--r--templates/system/syslog/file/node.def2
-rw-r--r--templates/system/syslog/file/node.tag/archive/files/node.def2
-rw-r--r--templates/system/syslog/file/node.tag/archive/node.def2
-rw-r--r--templates/system/syslog/file/node.tag/archive/size/node.def2
-rw-r--r--templates/system/syslog/file/node.tag/facility/node.def2
-rw-r--r--templates/system/syslog/file/node.tag/facility/node.tag/level/node.def2
-rw-r--r--templates/system/syslog/global/archive/files/node.def2
-rw-r--r--templates/system/syslog/global/archive/node.def2
-rw-r--r--templates/system/syslog/global/archive/size/node.def2
-rw-r--r--templates/system/syslog/global/facility/node.def2
-rw-r--r--templates/system/syslog/global/facility/node.tag/level/node.def2
-rw-r--r--templates/system/syslog/global/node.def2
-rw-r--r--templates/system/syslog/host/node.def2
-rw-r--r--templates/system/syslog/host/node.tag/facility/node.def2
-rw-r--r--templates/system/syslog/host/node.tag/facility/node.tag/level/node.def2
-rw-r--r--templates/system/syslog/node.def2
-rw-r--r--templates/system/syslog/user/node.def2
-rw-r--r--templates/system/syslog/user/node.tag/facility/node.def2
-rw-r--r--templates/system/syslog/user/node.tag/facility/node.tag/level/node.def2
-rw-r--r--templates/system/time-zone/node.def2
126 files changed, 353 insertions, 208 deletions
diff --git a/debian/control b/debian/control
index 2de64d20..ff40285f 100644
--- a/debian/control
+++ b/debian/control
@@ -18,13 +18,15 @@ Depends: sed (>= 4.1.5),
ntp,
sysklogd,
busybox,
+ grub-pc,
whois,
sudo,
snmpd,
keepalived,
+ bridge-utils,
ssh,
ed,
- bridge-utils
+ tshark
Suggests: util-linux (>= 2.13-5),
net-tools,
ethtool,
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 17d1264d..a627c4af 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -47,7 +47,7 @@ Cmnd_Alias ETHTOOLP = /usr/sbin/ethtool -p *
Cmnd_Alias DATE = /bin/date, /usr/sbin/ntpdate
Cmnd_Alias PPPOE_CMDS = /sbin/pppd, /sbin/poff
%operator ALL=NOPASSWD: /sbin/reboot, DATE, IPTABLES, ETHTOOLP, IPFLUSH, \
- PPPOE_CMDS
+ PPPOE_CMDS, /usr/bin/tshark
### END VYATTA OPERATOR COMMANDS
EOF
fi
diff --git a/scripts/install-system b/scripts/install-system
index 2823746b..56803420 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -271,16 +271,6 @@ select_partition () {
PARTITION=$lpartition
}
-rename_old_config() {
- files=$(find /mnt/config -mindepth 1 -type f | grep -v pre-glendale)
- for f in $files; do
- if grep -q '/\*XORP Configuration File, v1.0\*/' $f >&/dev/null; then
- CURTIME=$(date +%F-%H%M%S)
- mv $f $f.pre-glendale.$CURTIME
- fi
- done
-}
-
## check_config_partition
# look to see if this partition contains a config file
# and back it up
@@ -291,34 +281,35 @@ check_config_partition() {
mkdir -p /mnt/tmp
output=$(mount /dev/$lpart /mnt/tmp 2>&1)
if [ $? != 0 ]; then
+ echo -e "Cannot mount /dev/$lpart"."\nPlease see $INSTALL_LOG for more details.\nExiting.."
echo -e "Cannot mount /dev/$lpart"."\nmount /dev/$ldrive$part /mnt/tmp\nExiting..." >> $INSTALL_LOG
echo "$output" >> $INSTALL_LOG
- else
- # Look to see if there is a config partition there
- if [ -f /mnt/tmp/opt/vyatta/etc/config/.vyatta_config ] || [ -f /mnt/tmp/.vyatta_config ]; then
- response=''
- while [ -z "$response" ]
- do
- echo "/dev/$lpart has an old configuration directory!"
- echo -ne "Would you like me to save the data on it\nbefore I delete it? (Yes/No) [Yes]: "
- response=$(get_response "Yes" "Yes No Y N")
- if [ "$response" == "yes" ] || [ "$response" == "y" ]; then
- mkdir -p /mnt/config
- if [ -d /mnt/tmp/opt/vyatta/etc/config ]; then
- output=$(cp -pR /mnt/tmp/opt/vyatta/etc/config/* /mnt/config)
- else
- output=$(cp -pR /mnt/tmp/* /mnt/config)
- fi
- if [ -n "$output" ]; then
- echo -e "Warning: error in copying the old config partition.\nSee $INSTALL_LOG for more details."
- echo -e "Warning: error in copying the old config partition.\ncp -pR /mnt/tmp/* /mnt/config\n$output\n" >> $INSTALL_LOG
- fi
- rename_old_config
+ exit 1
+ fi
+
+ # Look to see if there is a config partition there
+ if [ -f /mnt/tmp/opt/vyatta/etc/config/.vyatta_config ] || [ -f /mnt/tmp/.vyatta_config ]; then
+ response=''
+ while [ -z "$response" ]
+ do
+ echo "/dev/$lpart has an old configuration directory!"
+ echo -ne "Would you like me to save the data on it\nbefore I delete it? (Yes/No) [Yes]: "
+ response=$(get_response "Yes" "Yes No Y N")
+ if [ "$response" == "yes" ] || [ "$response" == "y" ]; then
+ mkdir -p /mnt/config
+ if [ -d /mnt/tmp/opt/vyatta/etc/config ]; then
+ output=$(cp -pR /mnt/tmp/opt/vyatta/etc/config/* /mnt/config)
+ else
+ output=$(cp -pR /mnt/tmp/* /mnt/config)
fi
- done
- fi
- umount /mnt/tmp
+ if [ -n "$output" ]; then
+ echo -e "Warning: error in copying the old config partition.\nSee $INSTALL_LOG for more details."
+ echo -e "Warning: error in copying the old config partition.\ncp -pR /mnt/tmp/* /mnt/config\n$output\n" >> $INSTALL_LOG
+ fi
+ fi
+ done
fi
+ umount /mnt/tmp
}
# Delete all existing partitions for an automated install
@@ -566,14 +557,13 @@ install_grub () {
# TODO: This needs to be changed to map to the correct drive
part=$(echo $ROOT_PARTITION | sed 's/[^0-9]//g')
- part=$(($part - 1))
if [ "$(cat /sys/block/$orig_install_drive/removable)" == 0 ]; then
root=$(grep $orig_install_drive $rootfsdir/boot/grub/device.map | /usr/bin/awk -F')' '{ print $1 }')
root="$root,$part)"
else
- echo "This looks like a removable device. Setting root grub device to (0,0)."
- echo "This looks like a removable device. Setting root grub device to (0,0)." >> $INSTALL_LOG
root="(hd0,$part)"
+ echo "This looks like a removable device. Setting root grub device to $root."
+ echo "This looks like a removable device. Setting root grub device to $root." >> $INSTALL_LOG
fi
# Figure out whether we are running on the serial or KVM console:
@@ -585,40 +575,50 @@ install_grub () {
DEFAULT_CONSOLE="0"
fi
- # create the menu.lst file for grub
- # The "default=" line selects which boot option will be used by default.
- # Numbering starts at 0 for the first option.
- grub_file="$rootfsdir/boot/grub/menu.lst"
- echo -e "default=$DEFAULT_CONSOLE\ntimeout=5\n#splashimage=(hd0,0)/grub/splash.xpm.gz\nhiddenmenu" > $grub_file
- # set serial console options
- echo -e "serial --unit=0 --speed=9600\nterminal --timeout=5 console serial\n\n" >> $grub_file
-
- # Set first system boot option. Make KVM the default console in this one.
- echo -e "title Vyatta OFR (KVM console)\n\troot $root" >> $grub_file
- echo -en "\tkernel /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 \n" >> $grub_file
- echo -e "\tinitrd /boot/initrd.img" >> $grub_file
-
- # Set the second system boot option. Make the serial port be the default
- # console in this one.
- echo >> $grub_file
- echo -e "title Vyatta OFR (Serial console)\n\troot $root" >> $grub_file
- echo -en "\tkernel /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 \n" >> $grub_file
- echo -e "\tinitrd /boot/initrd.img" >> $grub_file
-
- # Set third and fourth boot options for root password reset. Offer
- # options for both serial and KVM console.
-
- echo >> $grub_file
- echo -e "title Root password reset to factory (KVM console)" >> $grub_file
- echo -e "\troot $root" >> $grub_file
- echo -e "\tkernel /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 init=$PWRESET" >> $grub_file
- echo -e "\tinitrd /boot/initrd.img" >> $grub_file
-
- echo >> $grub_file
- echo -e "title Root password reset to factory (Serial console)" >> $grub_file
- echo -e "\troot $root" >> $grub_file
- echo -e "\tkernel /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 init=$PWRESET" >> $grub_file
- echo -e "\tinitrd /boot/initrd.img" >> $grub_file
+ (
+ # create the grub.cfg file for grub
+ # The "default=" line selects which boot option will be used by default.
+ # Numbering starts at 0 for the first option.
+ echo -e "set default=$DEFAULT_CONSOLE"
+ echo "set timeout=5"
+ #echo "#set splashimage=(hd0,0)/grub/splash.xpm.gz"
+ echo "hiddenmenu"
+ # set serial console options
+ echo -e "serial --unit=0 --speed=9600"
+ echo "terminal --timeout=5 console serial"
+ echo "set root=$root"
+ echo
+ echo
+
+ # Set first system boot option. Make KVM the default console in this one.
+ echo -e "menuentry \"Vyatta OFR (KVM console)\" {"
+ echo -en "\tlinux /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 \n"
+ echo -e "\tinitrd /boot/initrd.img"
+ echo -e "}"
+
+ # Set the second system boot option. Make the serial port be the default
+ # console in this one.
+ echo
+ echo -e "menuentry \"Vyatta OFR (Serial console)\" {"
+ echo -en "\tlinux /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 \n"
+ echo -e "\tinitrd /boot/initrd.img"
+ echo -e "}"
+
+ # Set third and fourth boot options for root password reset. Offer
+ # options for both serial and KVM console.
+
+ echo
+ echo -e "menuentry \"Root password reset to factory (KVM console)\" {"
+ echo -e "\tlinux /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 init=$PWRESET"
+ echo -e "\tinitrd /boot/initrd.img"
+ echo -e "}"
+
+ echo
+ echo -e "menuentry \"Root password reset to factory (Serial console)\" {"
+ echo -e "\tkernel /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 init=$PWRESET"
+ echo -e "\tinitrd /boot/initrd.img"
+ echo -e "}"
+ ) >"$rootfsdir/boot/grub/grub.cfg"
echo "OK"
}
diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl
index c4b7909f..c10a1ca7 100755
--- a/scripts/keepalived/vyatta-keepalived.pl
+++ b/scripts/keepalived/vyatta-keepalived.pl
@@ -90,6 +90,21 @@ sub keepalived_get_values {
}
}
+ $config->setLevel("$path vrrp vrrp-group $group run-transition-scripts");
+ my $run_backup_script = $config->returnValue("backup");
+ if(!defined $run_backup_script){
+ $run_backup_script = "null";
+ }
+ my $run_fault_script = $config->returnValue("fault");
+ if(!defined $run_fault_script){
+ $run_fault_script = "null";
+ }
+ my $run_master_script = $config->returnValue("master");
+ if(!defined $run_master_script){
+ $run_master_script = "null";
+ }
+
+
$output .= "vrrp_instance $vrrp_instance \{\n";
if ($preempt eq "false") {
$output .= "\tstate BACKUP\n";
@@ -114,11 +129,11 @@ sub keepalived_get_values {
}
$output .= "\t\}\n";
$output .= "\tnotify_master ";
- $output .= "\"$state_transition_script master $intf $group @vips\" \n";
+ $output .= "\"$state_transition_script master $intf $group $run_master_script @vips\" \n";
$output .= "\tnotify_backup ";
- $output .= "\"$state_transition_script backup $intf $group @vips\" \n";
+ $output .= "\"$state_transition_script backup $intf $group $run_backup_script @vips\" \n";
$output .= "\tnotify_fault ";
- $output .= "\"$state_transition_script fault $intf $group @vips\" \n";
+ $output .= "\"$state_transition_script fault $intf $group $run_fault_script @vips\" \n";
$output .= "\}\n";
}
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl
index eacba25c..86dbef3d 100755
--- a/scripts/keepalived/vyatta-show-vrrp.pl
+++ b/scripts/keepalived/vyatta-show-vrrp.pl
@@ -64,17 +64,26 @@ sub elapse_time {
return $string;
}
-sub link_updown {
- my ($intf) = @_;
-
- my $status = `sudo /usr/sbin/ethtool $intf | grep Link`;
- if ($status =~ m/yes/) {
- return "up";
+sub get_state_link {
+ my $intf = shift;
+
+ my $IFF_UP = 0x1;
+ my ($state, $link);
+ my $flags = `cat /sys/class/net/$intf/flags 2> /dev/null`;
+ my $carrier = `cat /sys/class/net/$intf/carrier 2> /dev/null`;
+ chomp $flags; chomp $carrier;
+ my $hex_flags = hex($flags);
+ if ($hex_flags & $IFF_UP) {
+ $state = "up";
+ } else {
+ $state = "admin down";
}
- if ($status =~ m/no/) {
- return "down";
+ if ($carrier eq "1") {
+ $link = "up";
+ } else {
+ $link = "down";
}
- return "unknown";
+ return ($state, $link);
}
sub get_master_info {
@@ -102,13 +111,33 @@ sub get_master_info {
}
}
+sub vrrp_showsummary {
+ my ($file) = @_;
+
+ my ($start_time, $intf, $group, $state, $ltime) =
+ VyattaKeepalived::vrrp_state_parse($file);
+ my ($interface_state, $link) = get_state_link($intf);
+ if ($state eq "master" || $state eq "backup" || $state eq "fault") {
+ my ($primary_addr, $priority, $preempt, $advert_int, $auth_type,
+ @vips) = VyattaKeepalived::vrrp_get_config($intf, $group);
+ print "\n$intf\t\t$group\tint\t$primary_addr\t$link\t\t$state";
+ foreach my $vip (@vips){
+ print "\n\t\t\tvip\t$vip";
+
+ }
+ } else {
+ print "Physical interface $intf, State: unknown\n";
+ }
+}
+
+
sub vrrp_show {
my ($file) = @_;
my $now_time = time;
my ($start_time, $intf, $group, $state, $ltime) =
VyattaKeepalived::vrrp_state_parse($file);
- my $link = link_updown($intf);
+ my ($interface_state, $link) = get_state_link($intf);
if ($state eq "master" || $state eq "backup" || $state eq "fault") {
my ($primary_addr, $priority, $preempt, $advert_int, $auth_type,
@vips) = VyattaKeepalived::vrrp_get_config($intf, $group);
@@ -146,9 +175,18 @@ sub vrrp_show {
#
my $intf = "eth";
my $group = "all";
+my $showsummary = 0;
+
if ($#ARGV >= 0) {
- $intf = $ARGV[0];
+
+ if ($ARGV[0] eq "summary") {
+ $showsummary = 1;
+ } else {
+ $intf = $ARGV[0];
+ }
+
}
+
if ($#ARGV == 1) {
$group = $ARGV[1];
}
@@ -158,9 +196,22 @@ if (!VyattaKeepalived::is_running()) {
exit 1;
}
+if ($showsummary == 1) {
+
+ print "\t\tVRRP\tAddr\t\t\tInterface\tVRRP\n";
+ print "Interface\tGroup\tType\tAddress\t\tState\t\tState\n";
+ print "---------\t-----\t----\t-------\t\t-----\t\t-----";
+
+
+}
+
my @state_files = VyattaKeepalived::get_state_files($intf, $group);
foreach my $state_file (@state_files) {
- vrrp_show($state_file);
+ if ($showsummary == 1) {
+ vrrp_showsummary($state_file);
+ } else {
+ vrrp_show($state_file);
+ }
}
exit 0;
diff --git a/scripts/keepalived/vyatta-vrrp-state.pl b/scripts/keepalived/vyatta-vrrp-state.pl
index 8b813529..9e11b649 100755
--- a/scripts/keepalived/vyatta-vrrp-state.pl
+++ b/scripts/keepalived/vyatta-vrrp-state.pl
@@ -55,7 +55,8 @@ sub vrrp_state_log {
my $vrrp_state = $ARGV[0];
my $vrrp_intf = $ARGV[1];
my $vrrp_group = $ARGV[2];
-my $vrrp_vip = $ARGV[3];
+my $vrrp_transitionscript = $ARGV[3];
+my $vrrp_vip = $ARGV[4];
my $sfile = VyattaKeepalived::get_state_file($vrrp_intf, $vrrp_group);
my ($old_time, $old_intf, $old_group, $old_state, $old_ltime) =
@@ -77,6 +78,12 @@ if ($vrrp_state eq "backup") {
system("rm -f $mfile");
}
+
+if (!($vrrp_transitionscript eq "null")){
+ exec("$vrrp_transitionscript");
+}
+
+
exit 0;
# end of file
diff --git a/scripts/rl-system.init b/scripts/rl-system.init
index a70c0a46..5b81a4fd 100755
--- a/scripts/rl-system.init
+++ b/scripts/rl-system.init
@@ -50,8 +50,7 @@ fi
syslog ()
{
-
- date -u "+%b %d %H:%M:%S $hostname $progname: $*" >> $LOGFILE
+ logger -p user.warning -t "$progname" "$*"
}
shopt -s extglob nullglob
@@ -158,8 +157,6 @@ start () {
log_failure_msg "can\'t set reboot on panic"
add_new_serial_if || \
log_failure_msg "can\'t add serial interfaces"
- proc_flags || \
- log_failure_msg "can\'t reset proc flags"
update_version_info
clear_apt_config
add_snmp_stats_module
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl
index 0301a041..ea77f7b7 100644
--- a/scripts/snmp/vyatta-snmp.pl
+++ b/scripts/snmp/vyatta-snmp.pl
@@ -34,7 +34,8 @@ use warnings;
my $mibdir = '/opt/vyatta/share/snmp/mibs';
my $snmp_init = '/opt/vyatta/sbin/snmpd.init';
my $snmp_conf = '/etc/snmp/snmpd.conf';
-
+my $snmp_snmpv3_user_conf = '/usr/share/snmp/snmpd.conf';
+my $snmp_snmpv3_createuser_conf = '/var/lib/snmp/snmpd.conf';
sub snmp_init {
#
@@ -61,8 +62,10 @@ sub snmp_get_constants {
my $date = `date`;
chomp $date;
$output = "#\n# autogenerated by vyatta-snmp.pl on $date\n#\n";
- $output .= "trap2sink localhost vyatta 51510\n";
$output .= "sysServices 14\n";
+ $output .= "smuxpeer .1.3.6.1.4.1.3317.1.2.2\n"; # ospfd
+ $output .= "smuxpeer .1.3.6.1.4.1.3317.1.2.5\n"; # bgpd
+ $output .= "smuxpeer .1.3.6.1.4.1.3317.1.2.3\n"; # ripd
return $output;
}
@@ -121,14 +124,38 @@ sub snmp_get_values {
$output .= "syslocation \"$location\" \n";
}
- my @trap_targets = $config->returnValues("trap-target");
+ my @trap_targets = $config->returnValues("trap-target");
+ if ($#trap_targets >= 0) {
+ # code for creating a snmpv3 user, setting access-level for it and use user to do internal snmpv3 requests
+ snmp_create_snmpv3_user();
+ snmp_write_snmpv3_user();
+ $output .= "iquerySecName vyatta\n";
+ # code to activate link up down traps
+ $output .= "linkUpDownNotifications yes\n";
+ }
foreach my $trap_target (@trap_targets) {
- $output .= "trapsink $trap_target\n";
+ $output .= "trap2sink $trap_target\n";
}
return $output;
}
+sub snmp_create_snmpv3_user {
+
+ my $createuser = "createUser vyatta MD5 \"vyatta\" DES";
+ open(my $fh, '>>', $snmp_snmpv3_createuser_conf) || die "Couldn't open $snmp_snmpv3_createuser_conf - $!";
+ print $fh $createuser;
+ close $fh;
+}
+
+sub snmp_write_snmpv3_user {
+
+ my $user = "rwuser vyatta";
+ open(my $fh, '>', $snmp_snmpv3_user_conf) || die "Couldn't open $snmp_snmpv3_user_conf - $!";
+ print $fh $user;
+ close $fh;
+}
+
sub snmp_write_file {
my ($config) = @_;
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def
index 6af845f3..0dc3670c 100644
--- a/templates/interfaces/bridge/node.def
+++ b/templates/interfaces/bridge/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure a bridge interface
+help: Set bridge interface
syntax:expression: $VAR(@) in "br0", "br1", "br2", "br3", "br4", "br5", "br6", "br7", "br8", "br9" ; "Must be (br0 - br9)"
diff --git a/templates/interfaces/bridge/node.tag/address/node.def b/templates/interfaces/bridge/node.tag/address/node.def
index 23b1262f..52188386 100644
--- a/templates/interfaces/bridge/node.tag/address/node.def
+++ b/templates/interfaces/bridge/node.tag/address/node.def
@@ -1,11 +1,11 @@
multi:
type: txt
-help: Configure an IP address for this interface
+help: Set an IP address for this interface
syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)"; "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)"
update:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@)"; "Error setting address $VAR(@) on interface $VAR(../@)"
delete:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@)"; "Error deleting address $VAR(@) on interface $VAR(../@)"
allowed: echo "dhcp <>"
comp_help:Possible completions:
- <IP address>/<prefix length>\tSet the IP address and prefix length
+ <x.x.x.x/x> Set the IP address and prefix length
dhcp\t\t\t\tSet the IP address and prefix length via DHCP
diff --git a/templates/interfaces/bridge/node.tag/description/node.def b/templates/interfaces/bridge/node.tag/description/node.def
index d01f83a7..50250a24 100644
--- a/templates/interfaces/bridge/node.tag/description/node.def
+++ b/templates/interfaces/bridge/node.tag/description/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Add a human-readable description of an interface
+help: Set a description of the interface
diff --git a/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def b/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def
index c6d2934a..79609a86 100644
--- a/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def
+++ b/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def
@@ -1,11 +1,11 @@
type: txt
-help: Add this interface to a bridge-group
+help: Set this interface to a bridge-group
syntax:expression: exec " \
if [ -z \"`sudo brctl show | grep $VAR(@) `\" ]; then \
echo bridge interface $VAR(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
-delete:expression: "sudo brctl delif $VAR(@) $VAR(../../@)"
+delete: echo $VAR(@) > /tmp/bridge-no.$PPID
allowed: local -a array ;
array=( /sys/class/net/br* ) ;
echo -n ${array[@]##*/}
diff --git a/templates/interfaces/ethernet/node.tag/bridge-group/node.def b/templates/interfaces/ethernet/node.tag/bridge-group/node.def
index 0f4e9b2c..9309f683 100644
--- a/templates/interfaces/ethernet/node.tag/bridge-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/bridge-group/node.def
@@ -6,6 +6,9 @@ delete: touch /tmp/eth-$VAR(../@)-bridge.$PPID;
end: if [ -f "/tmp/eth-$VAR(../@)-bridge.$PPID" ]; then
rm -f /tmp/eth-$VAR(../@)-bridge.$PPID;
+ brno=$(cat /tmp/bridge-no.$PPID);
+ sudo brctl delif $brno $VAR(../@);
+ rm -f /tmp/bridge-no.$PPID;
else
if [ -z "$VAR(./bridge/@)" ]; then
echo "Must set the bridge interface";
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/bridge/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/bridge/node.def
index 9c65ff16..e3674bcd 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/bridge/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/bridge/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Add this interface to a bridge-group
+help: Set this interface to a bridge-group
syntax:expression: exec " \
if [ -z \"`sudo brctl show | grep $VAR(@) `\" ]; then \
echo bridge interface $VAR(@) doesn\\'t exist on this system ; \
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def
index af1c0e85..45be5f48 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def
@@ -1,4 +1,4 @@
-help: Add this interface to a bridge group
+help: Set this interface to a bridge group
commit:expression: $VAR(./bridge/) != ""; "Must set the bridge interface"
create:expression: "sudo brctl addif $VAR(./bridge/@) $VAR(../../@).$VAR(../@)"
delete:expression: "touch /tmp/eth-$VAR(../@)-bridge.$PPID"
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/node.def
index e4892540..26fdf457 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/node.def
@@ -1,3 +1,3 @@
-help: Configure VRRP
+help: Configure Virtual Router Redundancy Protocol (VRRP) parameters
commit:expression: $VAR(../address/) != ""; "Must define a primary IP address on $VAR(../../@) vif $VAR(../@)"
end:expression: "sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action update --intf $VAR(../../@).$VAR(../@) "
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.def
index d59bf682..d87ad6b7 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.def
@@ -2,7 +2,7 @@ tag:
type: u32
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "VRRP group must be between 1-255"
commit:expression: $VAR(virtual-address/) != ""; "Must define the virtual-address for vrrp-group $VAR(@)"
-help: Configure VRRP group number
+help: Set VRRP group number
delete:expression: "sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action delete --intf $VAR(../../../@).$VAR(../../@) --group $VAR(@) "
comp_help: possible completions
<1-255> VRRP group number
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def
index f033aa5d..59f2b451 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def
@@ -1,6 +1,6 @@
type: u32
default: 1
-help: Configure advertise interval
+help: Set advertise interval
syntax:expression: $VAR(@) >= 1 && $VAR(@) <=255; "Advertise interval must be between 1-255"
comp_help: possible completions
<1-255> Set advertise interval (default 1)
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def
index 8e924a0e..adf78b3f 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def
@@ -1,3 +1,3 @@
-help: Configure authentication
+help: Set authentication
commit:expression: $VAR(./type/@) != ""; "You must set a authentication type"
commit:expression: $VAR(./password/@) != ""; "You must set a authentication password"
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def
index 63f1bc32..9bd2e98d 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Password text
+help: Set password
syntax:expression: exec " \
if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \
echo Password must be 8 characters or less ; \
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def
index d8e157d3..b531afee 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Authentication type
+help: Set authentication type
syntax:expression: $VAR(@) in "plaintext-password", "ah"; \
"authentication must be simple or ah"
comp_help: possible completions:
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/description/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/description/node.def
index 835ad401..aeb40f0b 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/description/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/description/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Description for this interface
+help: Set description for this interface
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/node.def
index 95761590..240924db 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/node.def
@@ -1 +1 @@
-help: VRRP configuration for this VRRP group
+help: Set VRRP parameters for this VRRP group
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def
index c3dc66cd..7b3b9cbd 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Preempt mode
+help: Set preempt mode (default: true)
default: "true"
syntax:expression: $VAR(@) in "true", "false"; "preempt must be true or false"
comp_help: possible completions:
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/priority/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
index 504eebc4..54de02c7 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
@@ -1,5 +1,5 @@
type: u32
syntax:expression: $VAR(@) >= 0 &&$VAR(@) <= 255; "priority must be between 1-255"
-help: Priority
+help: Set priority
comp_help: possible completions:
<1-255> Set Priority
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def
new file mode 100644
index 00000000..44be2a7f
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def
@@ -0,0 +1,4 @@
+help: Set an executable script to run on VRRP state-transition to backup
+type: txt
+syntax:expression: exec "[ -x $VAR(@) ] || exit 1"; "Backup Script should be an existing executable"
+
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def
new file mode 100644
index 00000000..9f2557b3
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def
@@ -0,0 +1,4 @@
+help: Set an executable script to run on VRRP state-transition to fault
+type: txt
+syntax:expression: exec "[ -x $VAR(@) ] || exit 1"; "Fault Script should be an existing executable"
+
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def
new file mode 100644
index 00000000..7f7d8895
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def
@@ -0,0 +1,4 @@
+help: Set an executable script to run on VRRP state-transition to master
+type: txt
+syntax:expression: exec "[ -x $VAR(@) ] || exit 1"; "Master Script should be an existing executable"
+
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def
new file mode 100644
index 00000000..ed959156
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def
@@ -0,0 +1,2 @@
+help: Set scripts to run on VRRP state-transitions
+
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def
index a7d2e1fd..9602a842 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Add this vrrp group to a sync group
+help: Set to add this vrrp group to a sync group
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def
index 7d61f98e..64b7b21e 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def
@@ -1,5 +1,6 @@
multi:
type: ipv4
-help: Configure virtual address
+help: Set virtual address
+
comp_help: possible completions:
<x.x.x.x> Virtual IP address (up to 20 per group)
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/node.def b/templates/interfaces/ethernet/node.tag/vrrp/node.def
index 05cfb986..d88c9745 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/node.def
@@ -1,3 +1,3 @@
-help: Configure VRRP
+help: Configure Virtual Router Redundancy Protocol (VRRP)
commit:expression: $VAR(../address/) != ""; "Must define a primary IP address on $VAR(../@)"
end:expression: "sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action update --intf $VAR(../@) "
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def
index 90bf0d5c..a3ce1395 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def
@@ -2,7 +2,7 @@ tag:
type: u32
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "VRRP group must be between 1-255"
commit:expression: $VAR(virtual-address/) != ""; "Must define the virtual-address for vrrp-group $VAR(@)"
-help: Configure VRRP group number
+help: Set VRRP group number
delete:expression: "sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action delete --intf $VAR(../../@) --group $VAR(@) "
comp_help: possible completions
<1-255> VRRP group number
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def
index f033aa5d..59f2b451 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/advertise-interval/node.def
@@ -1,6 +1,6 @@
type: u32
default: 1
-help: Configure advertise interval
+help: Set advertise interval
syntax:expression: $VAR(@) >= 1 && $VAR(@) <=255; "Advertise interval must be between 1-255"
comp_help: possible completions
<1-255> Set advertise interval (default 1)
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def
index 8e924a0e..adf78b3f 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/node.def
@@ -1,3 +1,3 @@
-help: Configure authentication
+help: Set authentication
commit:expression: $VAR(./type/@) != ""; "You must set a authentication type"
commit:expression: $VAR(./password/@) != ""; "You must set a authentication password"
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def
index 63f1bc32..9bd2e98d 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Password text
+help: Set password
syntax:expression: exec " \
if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \
echo Password must be 8 characters or less ; \
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def
index 32a802d5..1547d62c 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Authentication type
+help: Set authentication type
syntax:expression: $VAR(@) in "plaintext-password", "ah"; \
"authentication must be simple or ah"
comp_help: possible completions:
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/description/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/description/node.def
index 835ad401..aeb40f0b 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/description/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/description/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Description for this interface
+help: Set description for this interface
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/node.def
index 95761590..240924db 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/node.def
@@ -1 +1 @@
-help: VRRP configuration for this VRRP group
+help: Set VRRP parameters for this VRRP group
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def
index c3dc66cd..4ed282ed 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/preempt/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Preempt mode
+help: Set preempt mode
default: "true"
syntax:expression: $VAR(@) in "true", "false"; "preempt must be true or false"
comp_help: possible completions:
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
index 504eebc4..54de02c7 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
@@ -1,5 +1,5 @@
type: u32
syntax:expression: $VAR(@) >= 0 &&$VAR(@) <= 255; "priority must be between 1-255"
-help: Priority
+help: Set priority
comp_help: possible completions:
<1-255> Set Priority
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def
new file mode 100644
index 00000000..44be2a7f
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/backup/node.def
@@ -0,0 +1,4 @@
+help: Set an executable script to run on VRRP state-transition to backup
+type: txt
+syntax:expression: exec "[ -x $VAR(@) ] || exit 1"; "Backup Script should be an existing executable"
+
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def
new file mode 100644
index 00000000..9f2557b3
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/fault/node.def
@@ -0,0 +1,4 @@
+help: Set an executable script to run on VRRP state-transition to fault
+type: txt
+syntax:expression: exec "[ -x $VAR(@) ] || exit 1"; "Fault Script should be an existing executable"
+
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def
new file mode 100644
index 00000000..7f7d8895
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/master/node.def
@@ -0,0 +1,4 @@
+help: Set an executable script to run on VRRP state-transition to master
+type: txt
+syntax:expression: exec "[ -x $VAR(@) ] || exit 1"; "Master Script should be an existing executable"
+
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def
new file mode 100644
index 00000000..3abc1696
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/run-transition-scripts/node.def
@@ -0,0 +1,2 @@
+help: Set scripts for VRRP state-transitions
+
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def
index a7d2e1fd..9602a842 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/sync-group/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Add this vrrp group to a sync group
+help: Set to add this vrrp group to a sync group
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def
index 7d61f98e..64b7b21e 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def
@@ -1,5 +1,6 @@
multi:
type: ipv4
-help: Configure virtual address
+help: Set virtual address
+
comp_help: possible completions:
<x.x.x.x> Virtual IP address (up to 20 per group)
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index 9ebb581c..aefd5935 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure a tunnel interface
+help: Set tunnel interface
syntax:expression: $VAR(@) in "tun0", "tun1", "tun2", "tun3", "tun4", "tun5", "tun6", "tun7", "tun8", "tun9" ; "Must be (tun0 - tun9)"
commit:expression: $VAR(./local-ip/) != "" ; \
diff --git a/templates/interfaces/tunnel/node.tag/address/node.def b/templates/interfaces/tunnel/node.tag/address/node.def
index 4d91c9ba..07ea4a0e 100644
--- a/templates/interfaces/tunnel/node.tag/address/node.def
+++ b/templates/interfaces/tunnel/node.tag/address/node.def
@@ -1,6 +1,6 @@
multi:
type: txt
-help: Configure an IP address for this interface
+help: Set an IP address for this interface
syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)"; "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)"
@@ -9,4 +9,4 @@ update:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update
delete:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@)"; "Error deleting address $VAR(@) on interface $VAR(../@)"
comp_help:Possible completions:
- <IP address>/<prefix length> Set the IP address and prefix length
+ <x.x.x.x/x> Set the IP address and prefix length
diff --git a/templates/interfaces/tunnel/node.tag/description/node.def b/templates/interfaces/tunnel/node.tag/description/node.def
index e00ed857..b53ae684 100644
--- a/templates/interfaces/tunnel/node.tag/description/node.def
+++ b/templates/interfaces/tunnel/node.tag/description/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Description of this tunnel interface
+help: Set description of this tunnel interface
diff --git a/templates/interfaces/tunnel/node.tag/key/node.def b/templates/interfaces/tunnel/node.tag/key/node.def
index ae244529..1ece7642 100644
--- a/templates/interfaces/tunnel/node.tag/key/node.def
+++ b/templates/interfaces/tunnel/node.tag/key/node.def
@@ -2,6 +2,11 @@ type: u32
help: Set the tunnel key
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 999999; \
"Must be between 0-999999 for $VAR(../@)"
+syntax:expression: exec " \
+ if [ -n \"`sudo ip tunnel show $VAR(../@) | grep $VAR(../@) `\" ]; then \
+ echo Key can only be set at tunnel creation for $VAR(../@); \
+ exit 1 ; \
+ fi ; "
commit:expression: $VAR(../encapsulation/@) in "gre" ; \
"Key only valid for GRE for $VAR(../@)"
diff --git a/templates/interfaces/tunnel/node.tag/local-ip/node.def b/templates/interfaces/tunnel/node.tag/local-ip/node.def
index 6cdaf2a5..9f9d52c0 100644
--- a/templates/interfaces/tunnel/node.tag/local-ip/node.def
+++ b/templates/interfaces/tunnel/node.tag/local-ip/node.def
@@ -1,6 +1,10 @@
type: ipv4
-help: Enter the local IP address for this tunnel
+help: Set the local IP address for this tunnel
syntax:expression: exec "if [ -z \"`ip addr list | grep $VAR(@) `\" ]; then \
echo IP address $VAR(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
+create:expression: "true"
+update:expression: "false" ; \
+ "Local IP can only be set at tunnel creation for $VAR(../@)"
+
diff --git a/templates/interfaces/tunnel/node.tag/mtu/node.def b/templates/interfaces/tunnel/node.tag/mtu/node.def
index 47dc34cf..f1fdf39b 100644
--- a/templates/interfaces/tunnel/node.tag/mtu/node.def
+++ b/templates/interfaces/tunnel/node.tag/mtu/node.def
@@ -1,5 +1,5 @@
type: u32
-help: Set the tunnel MTU
+help: Set the tunnel Maximum Transmission Unit (MTU)
syntax:expression: $VAR(@) >= 64 && $VAR(@) <= 8024; "Must be between 64-8024"
update:expression: "sudo ip link set $VAR(../@) mtu $VAR(@)"
delete:expression: "sudo ip link set $VAR(../@) mtu 1476"
diff --git a/templates/interfaces/tunnel/node.tag/remote-ip/node.def b/templates/interfaces/tunnel/node.tag/remote-ip/node.def
index e5ee1ffd..e8bb2ef0 100644
--- a/templates/interfaces/tunnel/node.tag/remote-ip/node.def
+++ b/templates/interfaces/tunnel/node.tag/remote-ip/node.def
@@ -1,2 +1,6 @@
type: ipv4
-help: Enter the remote IP address for this tunnel
+help: Set the remote IP address for this tunnel
+create:expression: "true"
+update:expression: "false" ; \
+ "Remote IP can only be set at tunnel creation for $VAR(../@)"
+
diff --git a/templates/interfaces/tunnel/node.tag/tos/node.def b/templates/interfaces/tunnel/node.tag/tos/node.def
index 8cc69360..1f739966 100644
--- a/templates/interfaces/tunnel/node.tag/tos/node.def
+++ b/templates/interfaces/tunnel/node.tag/tos/node.def
@@ -1,5 +1,5 @@
type: u32
-help: Set the tunnel type of service
+help: Set the tunnel Type of Service (TOS)
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 99; "Must be between 0-99"
update:expression: "sudo ip tunnel change $VAR(../@) tos $VAR(@)"
delete:expression: "sudo ip tunnel change $VAR(../@) tos inherit"
diff --git a/templates/interfaces/tunnel/node.tag/ttl/node.def b/templates/interfaces/tunnel/node.tag/ttl/node.def
index 1d194508..298c4d61 100644
--- a/templates/interfaces/tunnel/node.tag/ttl/node.def
+++ b/templates/interfaces/tunnel/node.tag/ttl/node.def
@@ -1,5 +1,5 @@
type: u32
-help: Set the tunnel time to live
+help: Set the tunnel time to live field
default: 255
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "Must be between 0-255"
update:expression: "sudo ip tunnel change $VAR(../@) ttl $VAR(@)"
diff --git a/templates/protocols/snmp/community/node.def b/templates/protocols/snmp/community/node.def
index 07bedcd1..6dd23349 100644
--- a/templates/protocols/snmp/community/node.def
+++ b/templates/protocols/snmp/community/node.def
@@ -1,3 +1,3 @@
tag:
type: txt
-help: Community name
+help: Set community name
diff --git a/templates/protocols/snmp/community/node.tag/authorization/node.def b/templates/protocols/snmp/community/node.tag/authorization/node.def
index 005e9b39..c8918d43 100644
--- a/templates/protocols/snmp/community/node.tag/authorization/node.def
+++ b/templates/protocols/snmp/community/node.tag/authorization/node.def
@@ -1,6 +1,6 @@
type: txt
default: "ro"
-help: Authorization type (rw or ro)
+help: Set authorization type (rw or ro) (default: ro)
syntax:expression: $VAR(@) in "ro", "rw"; "Authorization type must be either rw or ro"
diff --git a/templates/protocols/snmp/community/node.tag/client/node.def b/templates/protocols/snmp/community/node.tag/client/node.def
index 134698ef..828faa97 100644
--- a/templates/protocols/snmp/community/node.tag/client/node.def
+++ b/templates/protocols/snmp/community/node.tag/client/node.def
@@ -1,3 +1,3 @@
multi:
type: ipv4
-help: IP address of SNMP client allowed to contact system
+help: Set IP address of SNMP client allowed to contact system
diff --git a/templates/protocols/snmp/community/node.tag/network/node.def b/templates/protocols/snmp/community/node.tag/network/node.def
index 1afdb2a1..00a77d4b 100644
--- a/templates/protocols/snmp/community/node.tag/network/node.def
+++ b/templates/protocols/snmp/community/node.tag/network/node.def
@@ -1,4 +1,4 @@
multi:
type: ipv4net
-help: Subnet of SNMP client(s) allowed to contact system
+help: Set subnet of SNMP client(s) allowed to contact system
syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $VAR(@)"
diff --git a/templates/protocols/snmp/community/node.tag/node.def b/templates/protocols/snmp/community/node.tag/node.def
index 20430928..dd44d5ec 100644
--- a/templates/protocols/snmp/community/node.tag/node.def
+++ b/templates/protocols/snmp/community/node.tag/node.def
@@ -1 +1 @@
-help: Community options
+help: Set community options
diff --git a/templates/protocols/snmp/contact/node.def b/templates/protocols/snmp/contact/node.def
index 039cd548..4251291e 100644
--- a/templates/protocols/snmp/contact/node.def
+++ b/templates/protocols/snmp/contact/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Contact information
+help: Set contact information
diff --git a/templates/protocols/snmp/description/node.def b/templates/protocols/snmp/description/node.def
index 61ec96b6..6324a96b 100644
--- a/templates/protocols/snmp/description/node.def
+++ b/templates/protocols/snmp/description/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Description information
+help: Set description information
diff --git a/templates/protocols/snmp/location/node.def b/templates/protocols/snmp/location/node.def
index a5b234ea..f4bcef7c 100644
--- a/templates/protocols/snmp/location/node.def
+++ b/templates/protocols/snmp/location/node.def
@@ -1,3 +1,3 @@
type: txt
-help: Location information
+help: Set location information
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
index 62adc534..3612f2b6 100644
--- a/templates/protocols/snmp/node.def
+++ b/templates/protocols/snmp/node.def
@@ -1,4 +1,4 @@
-help: Configure SNMP
+help: Configure Simple Network Management Protocol (SNMP)
commit:expression: $VAR(community/) != ""; "must configure a community"
create:expression: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
delete:expression: "touch /tmp/snmp.$PPID"
diff --git a/templates/protocols/snmp/trap-target/node.def b/templates/protocols/snmp/trap-target/node.def
index bfb450fd..c041d108 100644
--- a/templates/protocols/snmp/trap-target/node.def
+++ b/templates/protocols/snmp/trap-target/node.def
@@ -1,3 +1,3 @@
multi:
type: ipv4
-help: IPv4 address of trap target
+help: Set IP address of trap target
diff --git a/templates/service/node.def b/templates/service/node.def
index f2dbf0c6..a2441db9 100644
--- a/templates/service/node.def
+++ b/templates/service/node.def
@@ -1 +1 @@
-help: Service configuration
+help: Configure specified service
diff --git a/templates/service/ssh/node.def b/templates/service/ssh/node.def
index a16f5d15..fbb29687 100644
--- a/templates/service/ssh/node.def
+++ b/templates/service/ssh/node.def
@@ -1,4 +1,4 @@
-help: Enable/disable SSH protocol
+help: Enable/disable Secure SHell (SSH) protocol
delete:expression: "sudo /usr/sbin/invoke-rc.d ssh stop && \
sudo sh -c \"echo 'SSHD_OPTS=' > /etc/default/ssh\" "
end:expression: "if [ -z \"$VAR(port/@)\" ]; then exit 0; fi; \
diff --git a/templates/service/ssh/port/node.def b/templates/service/ssh/port/node.def
index 1b1248f4..db07b07a 100644
--- a/templates/service/ssh/port/node.def
+++ b/templates/service/ssh/port/node.def
@@ -1,3 +1,3 @@
type: u32
default: 22
-help: Port for SSH service
+help: Set port for SSH service
diff --git a/templates/service/ssh/protocol-version/node.def b/templates/service/ssh/protocol-version/node.def
index a4efc602..051ea062 100644
--- a/templates/service/ssh/protocol-version/node.def
+++ b/templates/service/ssh/protocol-version/node.def
@@ -1,3 +1,3 @@
type: txt
default: "v2"
-help: SSH version
+help: Set SSH version (default: v2)
diff --git a/templates/service/telnet/node.def b/templates/service/telnet/node.def
index a1cc9680..5976addd 100644
--- a/templates/service/telnet/node.def
+++ b/templates/service/telnet/node.def
@@ -1,4 +1,4 @@
-help: Enable/disable telnet protocol
+help: Enable/disable Network Virtual Terminal Protocol (TELNET) protocol
delete:expression: " \
if ! env | grep -q SSH_TTY=; then \
if [[ \"`tty`\" == /dev/pts/* ]]; then \
diff --git a/templates/service/telnet/port/node.def b/templates/service/telnet/port/node.def
index 81b2ff91..2613f413 100644
--- a/templates/service/telnet/port/node.def
+++ b/templates/service/telnet/port/node.def
@@ -1,3 +1,3 @@
type: u32
default: 23
-help: Port for telnet service
+help: Set port for TELNET service
diff --git a/templates/system/domain-name/node.def b/templates/system/domain-name/node.def
index 9101f2f3..2ddc8e44 100644
--- a/templates/system/domain-name/node.def
+++ b/templates/system/domain-name/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure system domain name
+help: Set system domain name
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]{0,63}$" ; "invalid domain name $VAR(@)"
# also add localhost line into /etc/hosts (see host-name template)?
diff --git a/templates/system/domain-search/domain/node.def b/templates/system/domain-search/domain/node.def
index bd3e51bf..8af03fa4 100644
--- a/templates/system/domain-search/domain/node.def
+++ b/templates/system/domain-search/domain/node.def
@@ -1,6 +1,6 @@
multi:
type: txt
-help: Configure DNS domain completion order
+help: Set DNS domain completion order
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "invalid domain name $VAR(@)"
update:expression: "sudo /opt/vyatta/sbin/vyatta_update_resolv.pl"
delete:expression: "sudo /opt/vyatta/sbin/vyatta_update_resolv.pl"
diff --git a/templates/system/domain-search/node.def b/templates/system/domain-search/node.def
index ce28442d..b51158e6 100644
--- a/templates/system/domain-search/node.def
+++ b/templates/system/domain-search/node.def
@@ -1 +1 @@
-help: Configure DNS domain completion order
+help: Set Domain Name Server (DNS) domain completion order
diff --git a/templates/system/host-name/node.def b/templates/system/host-name/node.def
index 1aba2174..97b9f9a6 100644
--- a/templates/system/host-name/node.def
+++ b/templates/system/host-name/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure system host name
+help: Set system host name (default: vyatta)
default: "vyatta"
syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alnum:]]*[[:alnum:]]$"
; "invalid host name $VAR(@)"
diff --git a/templates/system/login/node.def b/templates/system/login/node.def
index d98c03c6..62e693e2 100644
--- a/templates/system/login/node.def
+++ b/templates/system/login/node.def
@@ -1,3 +1,3 @@
-help: Configure user access
+help: Set user access
delete:expression: "echo User root cannot be deleted 1>&2 && exit 1"
end: /opt/vyatta/sbin/vyatta_update_login.pl
diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def
index 85ca4cc5..137a92a0 100644
--- a/templates/system/login/radius-server/node.def
+++ b/templates/system/login/radius-server/node.def
@@ -1,6 +1,6 @@
tag:
type: ipv4
-help: Radius server authentication configuration
+help: Set radius server authentication
commit:expression: $VAR(port) != "" && $VAR(secret) != ""
&& $VAR(timeout) != ""
; "Port, secret, and timeout must be specified for Radius"
diff --git a/templates/system/login/radius-server/node.tag/port/node.def b/templates/system/login/radius-server/node.tag/port/node.def
index 002bc8a0..a0873552 100644
--- a/templates/system/login/radius-server/node.tag/port/node.def
+++ b/templates/system/login/radius-server/node.tag/port/node.def
@@ -1,4 +1,4 @@
type: u32
-help: Configure radius port
+help: Set radius port
syntax:expression: ($VAR(@) > 0 && $VAR(@) < 65536) ; "port must be between 1 and 65535"
default: 1812
diff --git a/templates/system/login/radius-server/node.tag/secret/node.def b/templates/system/login/radius-server/node.tag/secret/node.def
index 71176843..6ed802ef 100644
--- a/templates/system/login/radius-server/node.tag/secret/node.def
+++ b/templates/system/login/radius-server/node.tag/secret/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Secret for radius access
+help: Set secret for radius access
diff --git a/templates/system/login/radius-server/node.tag/timeout/node.def b/templates/system/login/radius-server/node.tag/timeout/node.def
index 23a964a6..423051d3 100644
--- a/templates/system/login/radius-server/node.tag/timeout/node.def
+++ b/templates/system/login/radius-server/node.tag/timeout/node.def
@@ -1,3 +1,3 @@
type: u32
-help: Timeout for radius session
+help: Set timeout for radius session
default: 2
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def
index 205a4b7a..d23a397f 100644
--- a/templates/system/login/user/node.def
+++ b/templates/system/login/user/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: User account information
+help: Set user account information
commit:expression: $VAR(authentication/encrypted-password) != ""
|| ($VAR(authentication/plaintext-password) != ""
&& $VAR(authentication/plaintext-password/@) != "")
diff --git a/templates/system/login/user/node.tag/authentication/encrypted-password/node.def b/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
index cd800ce4..3c12bdc3 100644
--- a/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Configure encrypted password
+help: Set encrypted password
diff --git a/templates/system/login/user/node.tag/authentication/node.def b/templates/system/login/user/node.tag/authentication/node.def
index 4306d008..488acd8c 100644
--- a/templates/system/login/user/node.tag/authentication/node.def
+++ b/templates/system/login/user/node.tag/authentication/node.def
@@ -1 +1 @@
-help: Authentication password
+help: Set authentication password
diff --git a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
index 1ac3c203..4f309e72 100644
--- a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure plaintext password for encryption
+help: Sete plaintext password for encryption
# if plaintext is empty, assume this is left-over from blanking the plaintext
# and do nothing. to set password to empty, user needs to set the
# "encrypted-password" to an empty string (which actually allows login without
diff --git a/templates/system/login/user/node.tag/full-name/node.def b/templates/system/login/user/node.tag/full-name/node.def
index 42d9dfac..c3cba58b 100644
--- a/templates/system/login/user/node.tag/full-name/node.def
+++ b/templates/system/login/user/node.tag/full-name/node.def
@@ -1,3 +1,3 @@
type: txt
-help: Full name of the user (use quotes for names with spaces)
+help: Set full name of the user (use quotes for names with spaces)
syntax:expression: pattern $VAR(@) "^[^:]*$"; "Cannot use ':' in full name"
diff --git a/templates/system/login/user/node.tag/level/node.def b/templates/system/login/user/node.tag/level/node.def
index 2596bd7a..d64a6441 100644
--- a/templates/system/login/user/node.tag/level/node.def
+++ b/templates/system/login/user/node.tag/level/node.def
@@ -1,5 +1,5 @@
type: txt
-help: User privilege level
+help: Set user privilege level
default: "admin"
syntax:expression: $VAR(@) in "admin", "operator"; "Allowed levels are \"admin\" and \"operator\""
comp_help:Possible completions:
diff --git a/templates/system/name-server/node.def b/templates/system/name-server/node.def
index 7b688a37..0ed43351 100644
--- a/templates/system/name-server/node.def
+++ b/templates/system/name-server/node.def
@@ -1,6 +1,6 @@
multi:
type: ipv4
-help: Configure domain name server
+help: Set Domain Name Server (DNS)
update:expression: "sudo sh -c \"touch /etc/resolv.conf && \
if grep -q '$VAR(@)' /etc/resolv.conf; then \
exit 0; \
diff --git a/templates/system/node.def b/templates/system/node.def
index 3f4d0643..3e437873 100644
--- a/templates/system/node.def
+++ b/templates/system/node.def
@@ -1 +1 @@
-help: System configuration
+help: Configure system parameters
diff --git a/templates/system/ntp-server/node.def b/templates/system/ntp-server/node.def
index e61ef918..485cf774 100644
--- a/templates/system/ntp-server/node.def
+++ b/templates/system/ntp-server/node.def
@@ -1,6 +1,6 @@
multi:
type: txt
-help: Name or IP address of NTP server
+help: Set name or IP address of Network Time Protocol (NTP) server
update:sudo sh -c \
"touch /etc/ntp.conf
if ! grep -q 'server.*$VAR(@)' /etc/ntp.conf; then
diff --git a/templates/system/options/node.def b/templates/system/options/node.def
index 005684e6..96cb8037 100644
--- a/templates/system/options/node.def
+++ b/templates/system/options/node.def
@@ -1 +1 @@
-help: Configure system options
+help: Set system options
diff --git a/templates/system/options/reboot-on-panic/node.def b/templates/system/options/reboot-on-panic/node.def
index d16df48c..f75f4c68 100644
--- a/templates/system/options/reboot-on-panic/node.def
+++ b/templates/system/options/reboot-on-panic/node.def
@@ -1,5 +1,5 @@
type: bool
-help: Configure if kernel panic causes reboot
+help: Set if kernel panic causes reboot
default: true
update:expression: "sudo sh -c \"if [ x$VAR(@) == xfalse ]; \
then \
diff --git a/templates/system/package/auto-sync/node.def b/templates/system/package/auto-sync/node.def
index 9300848e..3d14ab04 100644
--- a/templates/system/package/auto-sync/node.def
+++ b/templates/system/package/auto-sync/node.def
@@ -3,7 +3,7 @@
# the /etc/crontab file must have the daily line for daily to be run
type: u32
default: 1
-help: Update the the repository cache every n days. 0 disables auto-update.
+help: Set to update the the repository cache every n days (0 disables auto-update)
syntax:expression: $VAR(@) >= 0 && $VAR(@) < 32 ; "auto-sync must be between 0 and 32 days"
update:expression: "sudo sh -c \"touch /etc/apt/apt.conf && \
sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf && \
diff --git a/templates/system/package/node.def b/templates/system/package/node.def
index 3330033a..f0debd11 100644
--- a/templates/system/package/node.def
+++ b/templates/system/package/node.def
@@ -1 +1 @@
-help: Package Update Repository Configuration
+help: Set package update repository parameters
diff --git a/templates/system/package/repository/node.def b/templates/system/package/repository/node.def
index d2e4cf38..8d753918 100644
--- a/templates/system/package/repository/node.def
+++ b/templates/system/package/repository/node.def
@@ -2,7 +2,7 @@ tag:
type: txt
-help: Name a debian archive
+help: Set name of a debian archive
commit:expression: $VAR(./url/) != ""; "Must configure the repository URL"
commit:expression: $VAR(./distribution/) != ""; "Must configure the repository distribution"
diff --git a/templates/system/package/repository/node.tag/components/node.def b/templates/system/package/repository/node.tag/components/node.def
index 51ab9580..60605b89 100644
--- a/templates/system/package/repository/node.tag/components/node.def
+++ b/templates/system/package/repository/node.tag/components/node.def
@@ -1,4 +1,4 @@
type: txt
-help: Repository component names
+help: Set repository component names
# need to prohibit '!' in repo name (sed delimiter)
syntax:expression: pattern $VAR(@) "^[^!]+$" ; "Do not use '!' in component name"
diff --git a/templates/system/package/repository/node.tag/description/node.def b/templates/system/package/repository/node.tag/description/node.def
index e187f9e4..8ebfacb0 100644
--- a/templates/system/package/repository/node.tag/description/node.def
+++ b/templates/system/package/repository/node.tag/description/node.def
@@ -1,2 +1,2 @@
type: txt
-help: Repository description
+help: Set repository description
diff --git a/templates/system/package/repository/node.tag/distribution/node.def b/templates/system/package/repository/node.tag/distribution/node.def
index 39235a6a..ce5219bc 100644
--- a/templates/system/package/repository/node.tag/distribution/node.def
+++ b/templates/system/package/repository/node.tag/distribution/node.def
@@ -1,4 +1,4 @@
type: txt
-help: Distribution name
+help: Set distribution name
# need to prohibit '!' in repo name (sed delimiter)
syntax:expression: pattern $VAR(@) "^[^!]+$" ; "Do not use '!' in distribution name"
diff --git a/templates/system/package/repository/node.tag/url/node.def b/templates/system/package/repository/node.tag/url/node.def
index 7c84afce..9cb3a472 100644
--- a/templates/system/package/repository/node.tag/url/node.def
+++ b/templates/system/package/repository/node.tag/url/node.def
@@ -1,4 +1,4 @@
type: txt
-help: Repository URL
+help: Set repository URL
# need to prohibit '!' in url (sed delimiter)
syntax:expression: pattern $VAR(@) "^[^!]+$" ; "Do not use '!' in url"
diff --git a/templates/system/static-host-mapping/host-name/node.def b/templates/system/static-host-mapping/host-name/node.def
index 99f66fb7..189025e3 100644
--- a/templates/system/static-host-mapping/host-name/node.def
+++ b/templates/system/static-host-mapping/host-name/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Map DNS names to system interfaces
+help: Set to map DNS names to system interfaces
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "invalid host name $VAR(@)"
commit:expression: $VAR(./inet) != ""; "IP address for the static mapping must be set"
end:expression: "sudo sh -c \"\
diff --git a/templates/system/static-host-mapping/host-name/node.tag/alias/node.def b/templates/system/static-host-mapping/host-name/node.tag/alias/node.def
index 2f340fc7..7b07ff1a 100644
--- a/templates/system/static-host-mapping/host-name/node.tag/alias/node.def
+++ b/templates/system/static-host-mapping/host-name/node.tag/alias/node.def
@@ -1,3 +1,3 @@
multi:
type: txt
-help: Alias for this address
+help: Set alias for this address
diff --git a/templates/system/static-host-mapping/host-name/node.tag/inet/node.def b/templates/system/static-host-mapping/host-name/node.tag/inet/node.def
index 727c0411..dff601a5 100644
--- a/templates/system/static-host-mapping/host-name/node.tag/inet/node.def
+++ b/templates/system/static-host-mapping/host-name/node.tag/inet/node.def
@@ -1,2 +1,2 @@
type: ipv4
-help: Internet address
+help: Set Internet address
diff --git a/templates/system/static-host-mapping/node.def b/templates/system/static-host-mapping/node.def
index e72527ae..0eeace02 100644
--- a/templates/system/static-host-mapping/node.def
+++ b/templates/system/static-host-mapping/node.def
@@ -1 +1 @@
-help: Map DNS names to system interfaces
+help: Set to map DNS names to system interfaces
diff --git a/templates/system/syslog/console/facility/node.def b/templates/system/syslog/console/facility/node.def
index 26b736cf..fa44b2f2 100644
--- a/templates/system/syslog/console/facility/node.def
+++ b/templates/system/syslog/console/facility/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure facility for console logging
+help: Set facility for console logging
syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility"
update:expression: "sudo sh -c \"LVL=`echo -n $VAR(level/@) | tr '[a-z]' '[A-Z]'` && \
FAC='$VAR(@)' ; if [ x\\$FAC == xall ]; then FAC='*'; fi && \
diff --git a/templates/system/syslog/console/facility/node.tag/level/node.def b/templates/system/syslog/console/facility/node.tag/level/node.def
index d690ecd2..42e6c148 100644
--- a/templates/system/syslog/console/facility/node.tag/level/node.def
+++ b/templates/system/syslog/console/facility/node.tag/level/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure the logging level
+help: Set the logging level
syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level"
default: "err"
comp_help:Logging levels in descending order of severity:
diff --git a/templates/system/syslog/console/node.def b/templates/system/syslog/console/node.def
index b4a2fc3b..ec620885 100644
--- a/templates/system/syslog/console/node.def
+++ b/templates/system/syslog/console/node.def
@@ -1 +1 @@
-help: Configure console logging
+help: Set console logging
diff --git a/templates/system/syslog/file/node.def b/templates/system/syslog/file/node.def
index fa4fd7d0..e2c7759f 100644
--- a/templates/system/syslog/file/node.def
+++ b/templates/system/syslog/file/node.def
@@ -1,5 +1,5 @@
tag:
type: txt
-help: Name of the syslog file to save log messages to
+help: Set the name of syslog file to save log messages to
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9_.]+$" ; "invalid file name $VAR(@)"
commit:expression: $VAR(./facility/) != "" || $VAR(./archive/) != ""; "Must specify either facility or archive for syslog file"
diff --git a/templates/system/syslog/file/node.tag/archive/files/node.def b/templates/system/syslog/file/node.tag/archive/files/node.def
index 86fc3808..59869a51 100644
--- a/templates/system/syslog/file/node.tag/archive/files/node.def
+++ b/templates/system/syslog/file/node.tag/archive/files/node.def
@@ -1,3 +1,3 @@
type: u32
-help: Number of saved files
+help: Set number of saved files
default: 5
diff --git a/templates/system/syslog/file/node.tag/archive/node.def b/templates/system/syslog/file/node.tag/archive/node.def
index 002003f4..ad1d239f 100644
--- a/templates/system/syslog/file/node.tag/archive/node.def
+++ b/templates/system/syslog/file/node.tag/archive/node.def
@@ -1,4 +1,4 @@
-help: Configure log file size and rotation characteristics
+help: Set log file size and rotation characteristics
# need mandatory files & size
update:expression: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
'$VAR(../@)' '$VAR(files/@)' '$VAR(size/@)' 1\" "
diff --git a/templates/system/syslog/file/node.tag/archive/size/node.def b/templates/system/syslog/file/node.tag/archive/size/node.def
index 57955185..11cde386 100644
--- a/templates/system/syslog/file/node.tag/archive/size/node.def
+++ b/templates/system/syslog/file/node.tag/archive/size/node.def
@@ -1,3 +1,3 @@
type: u32
-help: Size of log files (kbytes)
+help: Set size of log files (kbytes)
default: 0
diff --git a/templates/system/syslog/file/node.tag/facility/node.def b/templates/system/syslog/file/node.tag/facility/node.def
index 7711d6a0..bfa6341d 100644
--- a/templates/system/syslog/file/node.tag/facility/node.def
+++ b/templates/system/syslog/file/node.tag/facility/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure facility for file logging
+help: Set facility for file logging
syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility"
update:expression: "sudo sh -c \"LVL=`echo -n $VAR(level/@) | tr '[a-z]' '[A-Z]'` && \
FAC='$VAR(@)' ; if [ x\\$FAC == xall ]; then FAC='*'; fi && \
diff --git a/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def b/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def
index dd03ec9d..a8eaa0e6 100644
--- a/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def
+++ b/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure the logging level
+help: Set the logging level
syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level"
default: "err"
comp_help:Logging levels in descending order of severity:
diff --git a/templates/system/syslog/global/archive/files/node.def b/templates/system/syslog/global/archive/files/node.def
index 86fc3808..59869a51 100644
--- a/templates/system/syslog/global/archive/files/node.def
+++ b/templates/system/syslog/global/archive/files/node.def
@@ -1,3 +1,3 @@
type: u32
-help: Number of saved files
+help: Set number of saved files
default: 5
diff --git a/templates/system/syslog/global/archive/node.def b/templates/system/syslog/global/archive/node.def
index 3691bbe0..17d6c996 100644
--- a/templates/system/syslog/global/archive/node.def
+++ b/templates/system/syslog/global/archive/node.def
@@ -1,4 +1,4 @@
-help: Configure log file size and rotation characteristics
+help: Set log file size and rotation characteristics
# need mandatory files & size
update:expression: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
'$VAR(files/@)' '$VAR(size/@)' 1\" "
diff --git a/templates/system/syslog/global/archive/size/node.def b/templates/system/syslog/global/archive/size/node.def
index c02fd0f1..bf83546f 100644
--- a/templates/system/syslog/global/archive/size/node.def
+++ b/templates/system/syslog/global/archive/size/node.def
@@ -1,3 +1,3 @@
type: u32
-help: Size of log files (kbytes)
+help: Set size of log files (kbytes)
default: 250
diff --git a/templates/system/syslog/global/facility/node.def b/templates/system/syslog/global/facility/node.def
index 1fdaad00..cff98650 100644
--- a/templates/system/syslog/global/facility/node.def
+++ b/templates/system/syslog/global/facility/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure facility for system logging
+help: Set facility for system logging
syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility"
update:expression: "sudo sh -c \"LVL=`echo -n $VAR(level/@) | tr '[a-z]' '[A-Z]'` && \
FAC='$VAR(@)' ; if [ x\\$FAC == xall ]; then FAC='*'; fi && \
diff --git a/templates/system/syslog/global/facility/node.tag/level/node.def b/templates/system/syslog/global/facility/node.tag/level/node.def
index d690ecd2..42e6c148 100644
--- a/templates/system/syslog/global/facility/node.tag/level/node.def
+++ b/templates/system/syslog/global/facility/node.tag/level/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure the logging level
+help: Set the logging level
syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level"
default: "err"
comp_help:Logging levels in descending order of severity:
diff --git a/templates/system/syslog/global/node.def b/templates/system/syslog/global/node.def
index 5fcf45b8..175d85e1 100644
--- a/templates/system/syslog/global/node.def
+++ b/templates/system/syslog/global/node.def
@@ -1 +1 @@
-help: Configure system logging
+help: Set system logging
diff --git a/templates/system/syslog/host/node.def b/templates/system/syslog/host/node.def
index 5f669a59..0e757cbc 100644
--- a/templates/system/syslog/host/node.def
+++ b/templates/system/syslog/host/node.def
@@ -1,3 +1,3 @@
tag:
type: txt
-help: IP address or hostname of remote syslog server
+help: Set IP address or hostname of remote syslog server
diff --git a/templates/system/syslog/host/node.tag/facility/node.def b/templates/system/syslog/host/node.tag/facility/node.def
index 04b32e2e..c91a6df8 100644
--- a/templates/system/syslog/host/node.tag/facility/node.def
+++ b/templates/system/syslog/host/node.tag/facility/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure facility for host logging
+help: Set facility for host logging
syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility"
update:expression: "sudo sh -c \"LVL=`echo -n $VAR(level/@) | tr '[a-z]' '[A-Z]'` && \
FAC='$VAR(@)' ; if [ x\\$FAC == xall ]; then FAC='*'; fi && \
diff --git a/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def b/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def
index d690ecd2..42e6c148 100644
--- a/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def
+++ b/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure the logging level
+help: Set the logging level
syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level"
default: "err"
comp_help:Logging levels in descending order of severity:
diff --git a/templates/system/syslog/node.def b/templates/system/syslog/node.def
index 012a71ba..72a82d78 100644
--- a/templates/system/syslog/node.def
+++ b/templates/system/syslog/node.def
@@ -1,3 +1,3 @@
-help: Configure syslog daemon
+help: Set syslog daemon
delete:expression: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_syslog.pl \
'' '\\/var\\/log\\/messages' '*.warning\t/var/log/messages \n'\" "
diff --git a/templates/system/syslog/user/node.def b/templates/system/syslog/user/node.def
index df0c4e6f..a432f326 100644
--- a/templates/system/syslog/user/node.def
+++ b/templates/system/syslog/user/node.def
@@ -1,5 +1,5 @@
tag:
type: txt
-help: Configure logging to specific user's terminal
+help: Set logging to specific user's terminal
comp_help: Possible completions:
<username> Send log messages to this user's terminal
diff --git a/templates/system/syslog/user/node.tag/facility/node.def b/templates/system/syslog/user/node.tag/facility/node.def
index 1d349e16..93afe631 100644
--- a/templates/system/syslog/user/node.tag/facility/node.def
+++ b/templates/system/syslog/user/node.tag/facility/node.def
@@ -1,6 +1,6 @@
tag:
type: txt
-help: Configure facility for user logging
+help: Set facility for user logging
syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility"
update:expression: "sudo sh -c \"LVL=`echo -n $VAR(level/@) | tr '[a-z]' '[A-Z]'` && \
FAC='$VAR(@)' ; if [ x\\$FAC == xall ]; then FAC='*'; fi && \
diff --git a/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def b/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def
index d690ecd2..42e6c148 100644
--- a/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def
+++ b/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure the logging level
+help: Set the logging level
syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level"
default: "err"
comp_help:Logging levels in descending order of severity:
diff --git a/templates/system/time-zone/node.def b/templates/system/time-zone/node.def
index 450429d0..e271e3e6 100644
--- a/templates/system/time-zone/node.def
+++ b/templates/system/time-zone/node.def
@@ -1,5 +1,5 @@
type: txt
-help: Configure local timezone
+help: Set local timezone
default: "GMT"
update:expression: "LTF=\"/usr/share/zoneinfo\" && \
case \"$VAR(@)\" in \