Пример #1
0
def main(argv):

    filters = []
    inputs = brcd_util.parse(argv, license, filters)

    session = brcd_util.getsession(inputs)

    result = get_license_info(inputs['session'])
    pyfos_util.response_print(result)

    chassis_obj = chassis()
    result = chassis_obj.get(inputs['session'])
    if pyfos_util.is_failed_resp(result):
        pyfos_util.response_print(result)
    else:
        print("License ID:", result.peek_license_id())

    pyfos_auth.logout(session)
def show_chassis_details(session):
    chassis_obj = chassis()
    result = chassis_obj.get(session)
    return result
Пример #3
0
def set_vf_enabled(session, enabled):
    value_dict = {'vf-enabled': enabled}
    chassis_obj = chassis(value_dict)
    result = _set_vf_enabled_state(session, chassis_obj)
    return result
def set_user_name(session, name):
    chassis_obj = chassis()
    chassis_obj.set_chassis_user_friendly_name(name)
    return chassis_obj.patch(session)
Пример #5
0
def modify_chassis(session, fcr_enabled=None):
    chassisObj = chassis()
    chassisObj.set_fcr_enabled(fcr_enabled)
    return _modify_chassis(session, chassisObj)