Setting tag plcapi-5.4-2
[plcapi.git] / db-config.d / 020-boot_states
1 # -*-python-*-
2 #################### slice tag types
3 default_boot_states = [
4     'boot',
5     'failboot',
6     'safeboot',
7     'install',
8     'reinstall',
9     'upgrade',
10     'disabled',
11 ]
12 current_boot_states = GetBootStates()
13 for state in default_boot_states:
14     if state not in current_boot_states:
15         AddBootState(state)
16
17 # TODO: Delete old boot states. 
18 if False:# NOTE: Only set to true if all federating peers have the new default boot states above.
19     for state in current_boot_states:
20         if state not in default_boot_states:
21             DeleteBootState(state)
22