Implement disableVmTethering
Bug: 340376953
Test: atest MicrodroidTests
Test: adb shell /apex/com.android.virt/bin/vm run-microdroid --network-supported
Change-Id: I575b025bc83ec4028ea9b10c3017319c9ecf842d
diff --git a/virtualizationservice/src/aidl.rs b/virtualizationservice/src/aidl.rs
index aae97fd..af80998 100644
--- a/virtualizationservice/src/aidl.rs
+++ b/virtualizationservice/src/aidl.rs
@@ -550,6 +550,10 @@
))
.with_log();
}
+
+ // TODO(340377643): Disabling tethering should be for bridge interface, not TAP interface.
+ TETHERING_SERVICE.disableVmTethering()?;
+
NETWORK_SERVICE.deleteTapInterface(tap_fd)
}
}