f94a8c5e7798f3ca687bcfa55e9ebed0217f720d
[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     'disabled',
10 ]
11 current_boot_states = GetBootStates()
12 for state in default_boot_states:
13     if state not in current_boot_states:
14         AddBootState(state)
15
16 # TODO: Delete old boot states. 
17 if False:# NOTE: Only set to true if all federating peers have the new default boot states above.
18     for state in current_boot_states:
19         if state not in default_boot_states:
20             DeleteBootState(state)
21