Octopussy::Device(3)

πŸ“¦ version 1.0.6, in ubuntu jammy

✨ Octopussy::Device ✨

okay bestie, sit down, hydrate, because this is the Octopussy Device module β€” it's the part of Octopussy that handles, you guessed it, devices. It lives in the Octopussy::Device namespace, it's Perl, and it's giving very organized, very slay πŸ’… (also hi, it's User Contributed Perl Documentation, so it's fan-made excellence, iykyk πŸŽ€)


🌸 FUNCTIONS 🌸

every single one of these, in order, no skips, periodt.

πŸ¦‹ New($conf)

Creates a new Device. baby's first device, literally ✨

πŸ¦‹ Modify($conf_new)

Modifies the configuration of a Device. glow-up time πŸ’–

πŸ¦‹ Reload_Required($device)

Sets 'reload_required' to Device '$device'. like, the device needs a lil reload, okay? noted πŸ“

πŸ¦‹ Remove($device)

Removes device '$device'. it's not you it's the config 😭

πŸ¦‹ List()

Gets List of Devices. the whole roster, the whole squad 🫢

πŸ¦‹ String_List

Returns Device List as a string like 'Device list: <device_list>'. so you can just, like, print it and go πŸŽ€

πŸ¦‹ Unknowns(@devices)

Returns list of Unknown Devices in @devices list. the ones that didn't show up to the group chat πŸ™ˆ

πŸ¦‹ Filename($device_name)

Gets the XML filename for the device '$device_name'. yes bestie, XML, it's giving 2000s but it works πŸ’€

πŸ¦‹ Configuration($device_name)

Gets the configuration for the device '$device_name'. one device, one config, iconic πŸ‘‘

πŸ¦‹ Configurations($sort)

Gets the configuration for all devices. everybody, all at once πŸ”₯

πŸ¦‹ Filtered_Configurations($type, $model, $sort)

Gets the configuration for devices filtered by DeviceType/Model. vibe check by type AND model, we're being ✨specific✨

πŸ¦‹ Add_Service($device, $service)

Adds Service or Servicegroup '$service' to Device '$device'. bestie is getting a new service, we love to see it πŸ’œ

πŸ¦‹ Remove_Service($device_name, $service_name)

Removes a service '$service_name' from device '$device_name'. and we're unsubscribing πŸ’…

πŸ¦‹ Update_Services_Rank($conf, $service, $direction, $rank, $old_rank)

Updates Services Rank. the leaderboard of services, fr fr πŸ†

πŸ¦‹ Move_Service($device, $service, $direction)

Moves Service '$service' into Device '$device' Services List in Direction Top, Bottom, Up or Down ('$direction'). so the only valid directions are Top, Bottom, Up or Down β€” don't get creative, bestie πŸ™ˆ

πŸ¦‹ Services(@devices)

Gets Service list (sorted by rank) from Device list '@devices'. ranked, sorted, main character ordering ✨

πŸ¦‹ String_Services

Returns Service List as a string like 'Service list: <service_list>'. stringified and ready to serve πŸ“

πŸ¦‹ Services_Configurations($device, $sort)

Returns Services Configurations sorted by '$sort' field for Device '$device'. you pick the sort field, it does the work, we stan 😌

πŸ¦‹ Services_Statistics($device)

the original page gives this one no description at all β€” just the signature. so like, no cap, that's all we know. we're not gonna make stuff up, bestie πŸ’€

πŸ¦‹ With_Service($service)

Returns List of Device which have Service '$service' in its Services List. who's got this service? we found them πŸ‘€

πŸ¦‹ Types()

Returns Device Types List. all the flavors 🌈

πŸ¦‹ Type_Configurations()

same situation as Services_Statistics β€” the original lists the name and nothing else. no description, no speculation, periodt βœ‹

πŸ¦‹ Models($type)

Returns Device Models List. give it a '$type', get the models back, easy πŸŽ€

πŸ¦‹ Parse_Status($device)

Returns Parsing status of the Device '$device'. are we parsing or are we not, that's the question πŸ’–

πŸ¦‹ Parse_Pause($device)

Pauses Parsing for Device '$device'. hold up, brb 🫢

πŸ¦‹ Parse_Start($device)

Starts Parsing for Device '$device'. and we're back, let's go πŸ”₯

πŸ¦‹ Parse_Stop($device)

Stops Parsing for Device '$device'. okay we're done here πŸ’…

πŸ¦‹ Set_Service_Option($device, $service, $option, $action)

Set Service Option (compression or statistics) to enable or disable. so the options in play are compression and statistics, and you're either enabling or disabling them β€” that's the whole deal ✨

πŸ¦‹ Valid_Name($name)

Checks that '$name' is valid for a Device name. naming your device is a whole thing, so let this one vibe check it first πŸ‘‘


πŸ’– AUTHOR πŸ’–

Sebastien Thebert <octo.devel@gmail.com> β€” thank you for your service, legend 🫢🌟


and that's the whole page, bestie! this was Octopussy::Device(3) from the perl v5.22.2 docs, dated 2016-05-04 πŸŽ€ go forth and configure your devices, you've got this πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from