Return the nftables table name for a TAP device.
(device: &str)
| 11 | |
| 12 | /// Return the nftables table name for a TAP device. |
| 13 | pub 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. |
| 18 | pub fn generate_tap_ruleset(tap_device: &str, subnet: &str, gateway_port: u16) -> String { |
no outgoing calls