def main(argv): valid_options = ["name", "members"] inputs = brcd_util.generic_input(argv, usage, valid_options) session = pyfos_auth.login(inputs["login"], inputs["password"], inputs["ipaddr"], inputs["secured"], verbose=inputs["verbose"]) if pyfos_auth.is_failed_login(session): print("login failed because", session.get(pyfos_auth.CREDENTIAL_KEY) [pyfos_auth.LOGIN_ERROR_KEY]) brcd_util.full_usage(usage) sys.exit() brcd_util.exit_register(session) vfid = None if 'vfid' in inputs: vfid = inputs['vfid'] if vfid is not None: pyfos_auth.vfid_set(session, vfid) brcd_zone_util.zone_name_members_func(session, inputs, usage, __zoneremove) pyfos_auth.logout(session)
def main(argv): inputs = brcd_util.generic_input(argv, usage) session = pyfos_auth.login(inputs["login"], inputs["password"], inputs["ipaddr"], isHttps) if pyfos_auth.is_failed_login(session): print( "login failed because", session.get(pyfos_auth.CREDENTIAL_KEY)[pyfos_auth.LOGIN_ERROR_KEY]) usage() sys.exit() brcd_util.exit_register(session) vfid = None if 'vfid' in inputs: vfid = inputs['vfid'] if vfid is not None: pyfos_auth.vfid_set(session, vfid) brcd_zone_util.zone_name_members_func(session, inputs, usage, __aliasremove) pyfos_auth.logout(session)