Crate fractal_networking_wrappers

Source

Structs§

InterfaceShow
NetnsItem
NetworkStats
PeerStats

Constants§

IPTABLES_RESTORE_PATH
IPTABLES_SAVE_PATH
IP_PATH

Functions§

addr_add
Add an address to an interface
addr_list
Given an interface, list addresses.
bridge_add
Create bridge interface.
bridge_exists
Check if bridge interface exists.
interface_del
Remove interface.
interface_mtu
Sets an interface’s MTU.
interface_show
Get details of an interface.
interface_up
Set an interface to be up.
iptables_restore
iptables_save
link_get_master
link_set_master
netns_add
Adds a network namespace. This creates a new, isolated network namespace with nothing but the loopback interface in it.
netns_del
Delete a network namespace. This will also delete any network interfaces contained therein.
netns_exists
Checks if a network namespaces exists. TODO: use ip --json netns list here.
netns_list
List all network namespaces.
netns_write_file
Write file into network namespace config folder.
nginx_reload
veth_add
Create veth interface.
veth_exists
Check if a veth interface exists.
wireguard_create
Create a wireguard interface.
wireguard_exists
Check if wireguard interface exists.
wireguard_stats
wireguard_syncconf
Sync the configuration state of a WireGuard interface with a given one.