From 71055df811a22d43c8ecf74fce1a56328a7d7efd Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Feb 2009 21:53:58 -0800 Subject: Start BGP on create --- templates/protocols/bgp/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/protocols') diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 91d7261b..7f7e393f 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -5,7 +5,7 @@ comp_help: \1 <1-4294967294>\tAS number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" create: sudo /opt/vyatta/sbin/quagga-manager start bgpd -update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" + vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" # we need to set default parameters in BGP here since we can't do it in # startup scripts as we don't know the AS number at that point update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \ -- cgit v1.2.3 From 9763ac23cb4541008d640135516684a903e9a5df Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Feb 2009 21:54:32 -0800 Subject: Use multi-line create on ospf No need for two tags. --- templates/protocols/ospf/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/protocols') diff --git a/templates/protocols/ospf/node.def b/templates/protocols/ospf/node.def index 1fd39bfe..dfae4396 100644 --- a/templates/protocols/ospf/node.def +++ b/templates/protocols/ospf/node.def @@ -1,5 +1,5 @@ help: Configure Open Shortest Path First protocol (OSPF) parameters create: sudo /opt/vyatta/sbin/quagga-manager start ospfd -create: vyatta-vtysh -c "configure terminal" -c "router ospf" + vyatta-vtysh -c "configure terminal" -c "router ospf" delete: vyatta-vtysh -c "configure terminal" -c "no router ospf" end: sudo /opt/vyatta/sbin/quagga-manager update -- cgit v1.2.3 From 6ccdf80fc0c41e23e232e7d469a01dcbb44344dd Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Feb 2009 21:55:40 -0800 Subject: Start ripngd on create Same as RIP --- templates/protocols/ripng/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/protocols') diff --git a/templates/protocols/ripng/node.def b/templates/protocols/ripng/node.def index a4c4c9d4..9b0d1f5b 100644 --- a/templates/protocols/ripng/node.def +++ b/templates/protocols/ripng/node.def @@ -1,5 +1,5 @@ help: Configure Routing Information Protocol (RIPng) parameters -begin: sudo /opt/vyatta/sbin/quagga-manager start ripngd -create: vyatta-vtysh -c "configure terminal" -c "router ripng" +create: sudo /opt/vyatta/sbin/quagga-manager start ripngd + vyatta-vtysh -c "configure terminal" -c "router ripng" delete: vyatta-vtysh -c "configure terminal" -c "no router ripng" end: sudo /opt/vyatta/sbin/quagga-manager update -- cgit v1.2.3 From 163d0ff04fb1f953d528ea492a2ff58fa2f469a5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Feb 2009 21:56:19 -0800 Subject: Use multi-line in one create node No need for two create: tags. --- templates/protocols/rip/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/protocols') diff --git a/templates/protocols/rip/node.def b/templates/protocols/rip/node.def index 648ecf49..31f915c1 100644 --- a/templates/protocols/rip/node.def +++ b/templates/protocols/rip/node.def @@ -1,5 +1,5 @@ help: Configure Routing Information Protocol (RIP) parameters create: sudo /opt/vyatta/sbin/quagga-manager start ripd -create: vyatta-vtysh -c "configure terminal" -c "router rip" + vyatta-vtysh -c "configure terminal" -c "router rip" delete: vyatta-vtysh -c "configure terminal" -c "no router rip" end: sudo /opt/vyatta/sbin/quagga-manager update -- cgit v1.2.3 From 0e1f4ee36324e32744114a8bdaad796b9938675c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Feb 2009 21:56:49 -0800 Subject: OSPFv3 start ospf6d Start daemon on create. And use "modern" CLI syntax --- templates/protocols/ospfv3/node.def | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/protocols') diff --git a/templates/protocols/ospfv3/node.def b/templates/protocols/ospfv3/node.def index 65963f46..3cdcd17e 100644 --- a/templates/protocols/ospfv3/node.def +++ b/templates/protocols/ospfv3/node.def @@ -1,5 +1,5 @@ help: Configure IPv6 Open Shortest Path First protocol (OSPFv3) parameters -create:expression: "vyatta-vtysh -c \"configure terminal\" \ - -c \"router ospf6\" " -delete:expression: "vyatta-vtysh -c \"configure terminal\" \ - -c \"no router ospf6\" " +create: sudo /opt/vyatta/sbin/quagga-manager start ospf6d + vyatta-vtysh -c configure terminal" -c "router ospf6" +delete:vyatta-vtysh -c "configure terminal" -c "no router ospf6" +end: sudo /opt/vyatta/sbin/quagga-manager update -- cgit v1.2.3