Changing PicOS Mode by Modifying the Boot File

The PicOS boot configuration is kept in the picos_start.conf file located at /etc/picos.

admin@LEAF-A$ls /etc/picos/picos_start.conf
/etc/picos/picos_start.conf 

User can use the cat command at the Linux shell to display the contents of the picos_start.conf file.

admin@LEAF-A$cat /etc/picos/picos_start.conf

[PICOS]
picos_start=xorplus

[XORPLUS]
xorplus_rtrmgr_verbose=
xorplus_log_facility=local0
xorplus_finder_client_address=127.0.0.1
xorplus_finder_server_address=127.0.0.1

[OVS]
ovs_database_file=/ovs/ovs-vswitchd.conf.db
ovs_inband_database_file=/ovs/inband.conf.db
ovs_inventory_database_file=/tmp/inventory.conf.db
inventory_schema=/ovs/share/openvswitch/inventory.ovsschema
ovs_function_database_file=/ovs/function.conf.db
function_schema=/ovs/share/openvswitch/function.ovsschema
ovs_portGroup_database_file=/ovs/portGroup.conf.db
portGroup_schema=/ovs/share/openvswitch/portGroup.ovsschema
ovs_db_sock_file=/ovs/var/run/openvswitch/db.sock
ovs_invd_file=/ovs/share/openvswitch/scripts/ovs-invd
ovs_invd_python_path=/ovs/share/openvswitch/python
ovs_db_manager=Open_vSwitch,Manager,target
ovs_switch_ip_address=10.10.51.199
ovs_switch_ip_netmask=255.255.255.0
ovs_switch_gateway_ip=10.10.51.1
ovs_switch_tcp_port=6640
ovs_host_name=PICOS-OVS
ovs_use_dhcp=false
ovs_enable_lighttpd=false
ovs_enable_snmpd=false
ovs_enable_npb=false
ovs_enable_mgp_ipv6=false
ovs_output_syslog_local=true

[ZTP]
ztp_disable=false
otp_disable=true




The picos_start option in the [PICOS] section of the picos_start.conf file dictates the PicOS mode (L2/L3 or OVS). The picos_start option has two possible values: xorpplus and ovs.

To change the PicOS mode, user has to open the picos_start.conf file in a text editor like vi and change the value of picos_start. After changing the value and saving the file, user must restart the picos service to bring the PicOS mode change into effect.

The following example shows an excerpt from the picos_start.conf file. If the value of picos_start is ovs, PicOS will run in OVS mode after the next PicOS restart.

picos_start=ovs

Once the picos_start.conf file has been updated, user needs to restart the picos service by using the request system reboot command, or rebooting the switch. 

admin@LEAF-A$ exit
admin@LEAF-A> request system reboot
(No print here, it will cost few minutes for PICOS to restart.)
admin@LEAF-A$

User is in PicOS OVS mode now.

The following example shows an excerpt from the picos_start.conf file. If value of picos_start is xorpplus, PicOS will run in L2/L3 mode after the next PicOS restart.

picos_start=xorplus

Once the picos_start.conf file has been updated, user needs to restart the picos service by using the request system reboot command or by rebooting the switch.

admin@LEAF-A$ exit
admin@LEAF-A> request system reboot
(No print here, it will cost few minutes for PICOS to restart.)
admin@LEAF-A$ 

Once the switch is in L2/L3 mode, user can use the cli command at the Linux shell to reach the L2/L3 operation mode.

admin@LEAF-A$cli
Synchronizing configuration...OK.
Welcome to PicOS L2/L3 on LEAF-A
admin@LEAF-A>

Copyright © 2024 Pica8 Inc. All Rights Reserved.