MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / teardown_table_name

Function teardown_table_name

crates/openshell-driver-vm/src/nft_ruleset.rs:13–15  ·  view source on GitHub ↗

Return the nftables table name for a TAP device.

(device: &str)

Source from the content-addressed store, hash-verified

11
12/// Return the nftables table name for a TAP device.
13pub fn teardown_table_name(device: &str) -> String {
14 format!("openshell_vm_{}", sanitize_table_name(device))
15}
16
17/// Generate the nftables ruleset for VM TAP networking.
18pub fn generate_tap_ruleset(tap_device: &str, subnet: &str, gateway_port: u16) -> String {

Callers 4

generate_tap_rulesetFunction · 0.85
setup_tap_networkingFunction · 0.85
teardown_tap_networkingFunction · 0.85

Calls

no outgoing calls

Tested by 1