From af0b2a66b7d39808faddf4f087c4bf467cfb0ca7 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sun, 29 Mar 2009 15:01:11 -0700 Subject: Fix extra " in template Leftover from conversion from old expression syntax --- .../ip/rip/authentication/md5/node.tag/password/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def index 723bd94a..15e09b12 100644 --- a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def +++ b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def @@ -13,7 +13,7 @@ delete:vyatta-vtysh --noerror \ -c "configure terminal" -c "interface $IFNAME" \ -c "no ip rip authentication mode md5" \ -c "no ip rip authentication key-chain $IFNAME-rip" \ - -c "no key chain $IFNAME-rip" " + -c "no key chain $IFNAME-rip" comp_help: possible completions: MD5 Key (16 characters or less) -- cgit v1.2.3 From 10045880f2801c174008e76e5d8ef1d1db813fea Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sun, 29 Mar 2009 15:04:02 -0700 Subject: Fix extra " at end of template More conversion stuff. --- interface-templates/ip/rip/split-horizon/disable/node.def | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/interface-templates/ip/rip/split-horizon/disable/node.def b/interface-templates/ip/rip/split-horizon/disable/node.def index 10c57ba4..55e8a0d1 100644 --- a/interface-templates/ip/rip/split-horizon/disable/node.def +++ b/interface-templates/ip/rip/split-horizon/disable/node.def @@ -1,6 +1,10 @@ help: Disable split horizon on specified interface -create:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" -c "no ip rip split-horizon " -delete:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" -c "ip rip split-horizon " " +create:vyatta-vtysh \ + -c "configure terminal" -c "interface $IFNAME" \ + -c "no ip rip split-horizon" +delete:vyatta-vtysh \ + -c "configure terminal" -c "interface $IFNAME" \ + -c "ip rip split-horizon" commit:expression: ($VAR(../poison-reverse/) == ""); \ "You cannot have 'split-horizon poison-reverse' enabled with 'split-horizon' disabled for $IFNAME" -- cgit v1.2.3 From 6321b50e5d41c701506d041d97879d0fdf26e3a8 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sun, 29 Mar 2009 15:04:21 -0700 Subject: Reformat template for clarity -ELINESTOOLONGTOOREAD --- .../ip/rip/authentication/plaintext-password/node.def | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/interface-templates/ip/rip/authentication/plaintext-password/node.def b/interface-templates/ip/rip/authentication/plaintext-password/node.def index 595ae910..b223e61c 100644 --- a/interface-templates/ip/rip/authentication/plaintext-password/node.def +++ b/interface-templates/ip/rip/authentication/plaintext-password/node.def @@ -3,11 +3,15 @@ help: Set plain text password syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "Password must be 16 characters or less" commit:expression: $VAR(../md5/) == "" ; "md5 password already set" -update: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \ - -c "ip rip authentication mode text" -c "ip rip authentication string $VAR(@)"; +update: vyatta-vtysh \ + -c "configure terminal" -c "interface $IFNAME" \ + -c "ip rip authentication mode text" \ + -c "ip rip authentication string $VAR(@)" -delete: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \ - -c "no ip rip authentication mode" -c "no ip rip authentication string $VAR(@)"; +delete: vyatta-vtysh \ + -c "configure terminal" -c "interface $IFNAME" \ + -c "no ip rip authentication mode" \ + -c "no ip rip authentication string $VAR(@)" comp_help: possible completions: Password (16 characters or less) -- cgit v1.2.3