Charles Chan | caebcf3 | 2021-09-20 22:17:52 -0700 | [diff] [blame] | 1 | Component Configuration |
| 2 | ======================= |
Wailok Shum | 2f05cd3 | 2021-09-30 22:18:19 +0800 | [diff] [blame^] | 3 | |
| 4 | Different from network configurations, |
| 5 | component configurations are attributes and feature flags specific to ONOS components. |
| 6 | |
| 7 | For more details, please read ONOS Wiki `Component Configuration <https://wiki.onosproject.org/display/ONOS/Component+Configuration>`_ |
| 8 | |
| 9 | Enable/Disable Phased Recovery |
| 10 | ------------------------------ |
| 11 | To check current status: |
| 12 | |
| 13 | .. code-block:: console |
| 14 | |
| 15 | onos > cfg get org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery |
| 16 | name=phasedRecovery, type=boolean, value=false, defaultValue=false, description=Enabling phased recovery. |
| 17 | |
| 18 | |
| 19 | We can see that the default value of phased recovery is false. |
| 20 | Which means it is disabled by default. |
| 21 | |
| 22 | To enable phased recovery: |
| 23 | |
| 24 | .. code-block:: console |
| 25 | |
| 26 | onos > cfg set org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery true |
| 27 | onos > cfg get org.onosproject.segmentrouting.phasedrecovery.impl.PhasedRecoveryManager phasedRecovery |
| 28 | name=phasedRecovery, type=boolean, value=true, defaultValue=false, description=Enabling phased recovery. |
| 29 | |
| 30 | Now the value is true and we have successfully enable phased recovery. |
| 31 | |
| 32 | To disable phased recovery, change the value to ``false``. |
| 33 | |
| 34 | |
| 35 | .. tip:: |
| 36 | Simply run ``cfg get`` in ONOS CLI to view all available component configurations supported by ONOS. |
| 37 | The default values are fine-tuned for SD-Fabric, and therefore we use them for most of the cases. |