mirror_frr/tests
Donald Sharp 7c8ff89e93 Multi-Instance OSPF Summary
——————————————-------------

- etc/init.d/quagga is modified to support creating separate ospf daemon
  process for each instance. Each individual instance is monitored by
  watchquagga just like any protocol daemons.(requires initd-mi.patch).

- Vtysh is modified to able to connect to multiple daemons of the same
  protocol (supported for OSPF only for now).

- ospfd is modified to remember the Instance-ID that its invoked with. For
  the entire life of the process it caters to any command request that
  matches that instance-ID (unless its a non instance specific command).
  Routes/messages to zebra are tagged with instance-ID.

- zebra route/redistribute mechanisms are modified to work with
  [protocol type + instance-id]

- bgpd now has ability to have multiple instance specific redistribution
  for a protocol (OSPF only supported/tested for now).

- zlog ability to display instance-id besides the protocol/daemon name.

- Changes in other daemons are to because of the needed integration with
  some of the modified APIs/routines. (Didn’t prefer replicating too many
  separate instance specific APIs.)

- config/show/debug commands are modified to take instance-id argument
  as appropriate.

Guidelines to start using multi-instance ospf
---------------------------------------------

The patch is backward compatible, i.e for any previous way of single ospf
deamon(router ospf <cr>) will continue to work as is, including all the
show commands etc.

To enable multiple instances, do the following:

     1. service quagga stop
     2. Modify /etc/quagga/daemons to add instance-ids of each desired
        instance in the following format:
        ospfd=“yes"
        ospfd_instances="1,2,3"
	assuming you want to enable 3 instances with those instance ids.
     3. Create corresponding ospfd config files as ospfd-1.conf, ospfd-2.conf
        and ospfd-3.conf.
     4. service quagga start/restart
     5. Verify that the deamons are started as expected. You should see
        ospfd started with -n <instance-id> option.
     	ps –ef | grep quagga
     	With that /var/run/quagga/ should have ospfd-<instance-id>.pid and
	ospfd-<instance-id>/vty to each instance.
     6. vtysh to work with instances as you would with any other deamons.
     7. Overall most quagga semantics are the same working with the instance
     	deamon, like it is for any other daemon.

NOTE:
     To safeguard against errors leading to too many processes getting invoked,
     a hard limit on number of instance-ids is in place, currently its 5.
     Allowed instance-id range is <1-65535>
     Once daemons are up, show running from vtysh should show the instance-id
     of  each daemon as 'router ospf <instance-id>’  (without needing explicit
     configuration)
     Instance-id can not be changed via vtysh, other router ospf configuration
     is allowed as before.

Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
2015-05-19 18:03:42 -07:00
..
bgpd.tests tests: DejaGNU bgpd 2013-04-14 16:01:11 +02:00
config tests: DejaGNU libzebra 2013-04-14 16:01:19 +02:00
lib tests: DejaGNU libzebra 2013-04-14 16:01:19 +02:00
libzebra.tests tests: Add tests for timers 2014-04-22 21:15:11 +02:00
.gitignore tests: Add tests for timers 2014-04-22 21:15:11 +02:00
aspath_test.c tests: update & extend AS_PATH tests 2013-02-01 17:55:04 +01:00
bgp_capability_test.c Overhual BGP debugs 2015-05-19 17:58:12 -07:00
bgp_mp_attr_test.c Overhual BGP debugs 2015-05-19 17:58:12 -07:00
bgp_mpath_test.c cluster-id length equality for multipath 2015-05-19 17:40:31 -07:00
ecommunity_test.c tests: Fix some compile errors and warnings 2012-05-02 11:02:10 +01:00
global-conf.exp tests: add DejaGNU framework 2013-04-14 16:01:05 +02:00
heavy-thread.c 2004-05-25 Paul Jakma <paul@dishone.st> 2005-04-25 16:42:24 +00:00
heavy-wq.c delete CVS keywords 2011-09-27 21:34:26 +04:00
heavy.c 2004-05-25 Paul Jakma <paul@dishone.st> 2005-04-25 16:42:24 +00:00
main.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
Makefile.am tests: Add tests for timers 2014-04-22 21:15:11 +02:00
prng.c tests: add a test program for lib/command.c 2014-04-01 17:38:29 +02:00
prng.h tests: add a test program for lib/command.c 2014-04-01 17:38:29 +02:00
table_test.c lib/table: add route_table_get_next() and iterator 2012-09-26 21:50:48 +02:00
test-buffer.c 2004-09-06 Paul Jakma <paul@dishone.st> 2005-09-06 23:08:01 +00:00
test-checksum.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
test-commands.c lib/command.c: rewrite command matching/parsing 2014-04-01 20:21:41 +02:00
test-memory.c 2004-05-13 Paul Jakma <paul@dishone.st> 2005-04-13 03:31:35 +00:00
test-nexthop-iter.c zebra: rework recursive route resolution 2013-09-19 18:04:40 +02:00
test-privs.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
test-segv.c lib: fix backtraces broken by 837d16c... 2014-03-21 06:28:48 +01:00
test-sig.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
test-stream.c [tests] Add small unit test for the new stream functions 2006-01-10 14:49:04 +00:00
test-timer-correctness.c tests: Add tests for timers 2014-04-22 21:15:11 +02:00
test-timer-performance.c tests: Add tests for timers 2014-04-22 21:15:11 +02:00
testcommands.in ospfd/ospf_vty.c: use keyword cmd style 2014-04-01 20:21:42 +02:00
testcommands.refout ospfd/ospf_vty.c: use keyword cmd style 2014-04-01 20:21:42 +02:00