code: def get_next_create_state(self, state, ret):
          
          if ret:
              if state == fw_const.FABRIC_PREPARE_DONE_STATE:
                  return state
              else:
                  return state + 1
          else:
              return state
docs: Return the next create state from previous state.