blob: 6c911c824f3a2263324852df4ac24ef370e1f23c [file] [log] [blame]
Charles Chancaebcf32021-09-20 22:17:52 -07001Component Configuration
2=======================
Wailok Shum2f05cd32021-09-30 22:18:19 +08003
4Different from network configurations,
5component configurations are attributes and feature flags specific to ONOS components.
6
Carmelo Cascone43989982021-10-12 00:01:19 -07007For more details, please check the ONOS Wiki `Component Configuration <https://wiki.onosproject.org/display/ONOS/Component+Configuration>`_
Wailok Shum2f05cd32021-09-30 22:18:19 +08008
9Enable/Disable Phased Recovery
10------------------------------
Carmelo Cascone43989982021-10-12 00:01:19 -070011Phased recovery is an experimental feature that aims at minimizing traffic
12disruption when recovering from a switch failure. When enabled, a recovering
13switch is programmed before pointing traffic from other switches towards it.
Charles Chan0bc8bf52021-10-07 12:53:55 -070014
Wailok Shum2f05cd32021-09-30 22:18:19 +080015To check current status:
16
17.. code-block:: console
18
19 onos > cfg get org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery
20 name=phasedRecovery, type=boolean, value=false, defaultValue=false, description=Enabling phased recovery.
21
22
23We can see that the default value of phased recovery is false.
24Which means it is disabled by default.
25
26To enable phased recovery:
27
28.. code-block:: console
29
30 onos > cfg set org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery true
31 onos > cfg get org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery
32 name=phasedRecovery, type=boolean, value=true, defaultValue=false, description=Enabling phased recovery.
33
Carmelo Cascone43989982021-10-12 00:01:19 -070034Now the value is true and we have successfully enabled phased recovery.
Wailok Shum2f05cd32021-09-30 22:18:19 +080035
36To disable phased recovery, change the value to ``false``.
37
38
39.. tip::
Carmelo Cascone43989982021-10-12 00:01:19 -070040 Simply run ``cfg get`` in the ONOS CLI to view all available component configurations supported by ONOS.
Wailok Shum2f05cd32021-09-30 22:18:19 +080041 The default values are fine-tuned for SD-Fabric, and therefore we use them for most of the cases.