package documentation

Undocumented

From __init__.py:

Function anonymize Undocumented
Function fact_adblock Undocumented
Function fact_backups Undocumented
Function fact_certificates_info Undocumented
Function fact_clm Undocumented
Function fact_controller Undocumented
Function fact_database_stats Undocumented
Function fact_ddns Undocumented
Function fact_default_password Undocumented
Function fact_dhcp_server Undocumented
Function fact_dpi Undocumented
Function fact_extra_packages List the packages installed by the administrator on top of the base image.
Function fact_firewall_stats Undocumented
Function fact_flashstart Undocumented
Function fact_ha Undocumented
Function fact_hotspot Undocumented
Function fact_ipsec Undocumented
Function fact_mac_ip_binding Undocumented
Function fact_multiwan Undocumented
Function fact_nathelpers Undocumented
Function fact_netifyd Undocumented
Function fact_network Undocumented
Function fact_openvpn_rw Undocumented
Function fact_openvpn_tun Undocumented
Function fact_proxy_pass Undocumented
Function fact_qos Undocumented
Function fact_rpcd_users Undocumented
Function fact_snmp Undocumented
Function fact_snort Undocumented
Function fact_storage Undocumented
Function fact_subscription_status Undocumented
Function fact_threat_shield Undocumented
Function fact_ui Undocumented
Function fact_wireguard Undocumented
Function get_cpu_info Undocumented
Function get_memory Undocumented
Function get_mount_points Undocumented
Function get_networks Undocumented
Function get_pci_info Undocumented
Function get_product Undocumented
Function get_version Undocumented
Function info_default_ipv4 Undocumented
Function info_default_ipv6 Undocumented
Function info_dns_servers Undocumented
Function info_fqdn Undocumented
Function info_image_updates_available Check if system image updates are available
Function info_kernel_version Undocumented
Function info_package_updates_available Check if package updates are available
Function info_timezone Undocumented
Function info_uptime_seconds Undocumented
Function is_virtual Undocumented
Function parse_version Undocumented
Constant APK_WORLD Undocumented
Constant APK_WORLD_BASE Undocumented
Function _get_cpu_field Undocumented
Function _get_gateway Undocumented
Function _get_ip Undocumented
Function _get_mask Undocumented
Function _get_role Undocumented
Function _read_apk_world Undocumented
Function _run Undocumented
Function _run_json Undocumented
Function _run_status Undocumented
def anonymize(value, uci: EUci): (source)

Undocumented

def fact_adblock(uci: EUci): (source)

Undocumented

def fact_backups(uci: EUci): (source)

Undocumented

def fact_certificates_info(uci: EUci): (source)

Undocumented

def fact_clm(uci: EUci): (source)

Undocumented

def fact_controller(uci: EUci): (source)

Undocumented

def fact_database_stats(uci: EUci): (source)

Undocumented

def fact_ddns(uci: EUci): (source)

Undocumented

def fact_default_password(uci: EUci): (source)

Undocumented

def fact_dhcp_server(uci: EUci): (source)

Undocumented

def fact_dpi(uci: EUci): (source)

Undocumented

def fact_extra_packages(uci: EUci): (source)

List the packages installed by the administrator on top of the base image.

The base image package set is read from /rom/etc/apk/world, the read-only squashfs lower layer, while the current one is read from /etc/apk/world. Since 'apk add <pkg>' appends only <pkg> itself, and not its dependencies, the difference between the two files is the set of packages explicitly installed after the image was built. If the base world file is missing or unreadable, no package is reported: this avoids reporting the whole world as administrator-installed.

Arguments:
  • uci -- EUci pointer, unused, kept for consistency with other facts
Returns:
  • a dictionary with the following keys: - count -- number of extra packages - packages -- sorted list of extra package names
def fact_firewall_stats(uci: EUci): (source)

Undocumented

def fact_flashstart(uci: EUci): (source)

Undocumented

def fact_ha(uci: EUci): (source)

Undocumented

def fact_hotspot(uci: EUci): (source)

Undocumented

def fact_ipsec(uci: EUci): (source)

Undocumented

def fact_mac_ip_binding(uci: EUci): (source)

Undocumented

def fact_multiwan(uci: EUci): (source)

Undocumented

def fact_nathelpers(uci: EUci): (source)

Undocumented

def fact_netifyd(uci: EUci): (source)

Undocumented

def fact_network(uci: EUci): (source)

Undocumented

def fact_openvpn_rw(uci: EUci): (source)

Undocumented

def fact_openvpn_tun(uci: EUci): (source)

Undocumented

def fact_proxy_pass(uci: EUci): (source)

Undocumented

def fact_qos(uci: EUci): (source)

Undocumented

def fact_rpcd_users(uci: EUci): (source)

Undocumented

def fact_snmp(uci: EUci): (source)

Undocumented

def fact_snort(uci: EUci): (source)

Undocumented

def fact_storage(uci: EUci): (source)

Undocumented

def fact_subscription_status(uci: EUci): (source)

Undocumented

def fact_threat_shield(uci: EUci): (source)

Undocumented

def fact_ui(uci: EUci): (source)

Undocumented

def fact_wireguard(uci: EUci): (source)

Undocumented

def get_cpu_info(): (source)

Undocumented

def get_memory(): (source)

Undocumented

def get_mount_points(): (source)

Undocumented

def get_networks(uci: EUci): (source)

Undocumented

def get_pci_info(): (source)

Undocumented

def get_product(): (source)

Undocumented

def get_version(): (source)

Undocumented

def info_default_ipv4(uci: EUci): (source)

Undocumented

def info_default_ipv6(uci: EUci): (source)

Undocumented

def info_dns_servers(uci: EUci): (source)

Undocumented

def info_fqdn(uci: EUci): (source)

Undocumented

def info_image_updates_available(uci: EUci): (source)

Check if system image updates are available

def info_kernel_version(uci: EUci): (source)

Undocumented

def info_package_updates_available(uci: EUci): (source)

Check if package updates are available

def info_timezone(uci: EUci): (source)

Undocumented

def info_uptime_seconds(uci: EUci): (source)

Undocumented

def is_virtual(): (source)

Undocumented

def parse_version(version_str): (source)

Undocumented

APK_WORLD: str = (source)

Undocumented

Value
'/etc/apk/world'
APK_WORLD_BASE: str = (source)

Undocumented

Value
'/rom/etc/apk/world'
def _get_cpu_field(field, cpu_info): (source)

Undocumented

def _get_gateway(interface, uci: EUci): (source)

Undocumented

def _get_ip(interface, uci: EUci): (source)

Undocumented

def _get_mask(interface): (source)

Undocumented

def _get_role(uci: EUci, interface): (source)

Undocumented

def _read_apk_world(path): (source)

Undocumented

def _run(cmd): (source)

Undocumented

def _run_json(cmd): (source)

Undocumented

def _run_status(cmd): (source)

Undocumented