blob: 12974da08230dfee3f9f38ae97f90c74d1f47c65 [file] [log] [blame]
Charles Chanfcfe8902022-02-02 17:06:27 -08001.. SPDX-FileCopyrightText: 2021 Open Networking Foundation <info@opennetworking.org>
2.. SPDX-License-Identifier: Apache-2.0
3
Charles Chancaebcf32021-09-20 22:17:52 -07004Component Configuration
5=======================
Wailok Shum2f05cd32021-09-30 22:18:19 +08006
7Different from network configurations,
8component configurations are attributes and feature flags specific to ONOS components.
9
Carmelo Cascone43989982021-10-12 00:01:19 -070010For more details, please check the ONOS Wiki `Component Configuration <https://wiki.onosproject.org/display/ONOS/Component+Configuration>`_
Wailok Shum2f05cd32021-09-30 22:18:19 +080011
12Enable/Disable Phased Recovery
13------------------------------
Carmelo Cascone43989982021-10-12 00:01:19 -070014Phased recovery is an experimental feature that aims at minimizing traffic
15disruption when recovering from a switch failure. When enabled, a recovering
16switch is programmed before pointing traffic from other switches towards it.
Charles Chan0bc8bf52021-10-07 12:53:55 -070017
Wailok Shum2f05cd32021-09-30 22:18:19 +080018To check current status:
19
20.. code-block:: console
21
22 onos > cfg get org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery
23 name=phasedRecovery, type=boolean, value=false, defaultValue=false, description=Enabling phased recovery.
24
25
26We can see that the default value of phased recovery is false.
27Which means it is disabled by default.
28
29To enable phased recovery:
30
31.. code-block:: console
32
33 onos > cfg set org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery true
34 onos > cfg get org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery
35 name=phasedRecovery, type=boolean, value=true, defaultValue=false, description=Enabling phased recovery.
36
Carmelo Cascone43989982021-10-12 00:01:19 -070037Now the value is true and we have successfully enabled phased recovery.
Wailok Shum2f05cd32021-09-30 22:18:19 +080038
39To disable phased recovery, change the value to ``false``.
40
41
42.. tip::
Carmelo Cascone43989982021-10-12 00:01:19 -070043 Simply run ``cfg get`` in the ONOS CLI to view all available component configurations supported by ONOS.
Wailok Shum2f05cd32021-09-30 22:18:19 +080044 The default values are fine-tuned for SD-Fabric, and therefore we use them for most of the cases.