feat(output): add machine-readable MTU output modes (single number + JSON)

https://chatgpt.com/share/697112b2-0410-800f-93ff-9372b603d43f
This commit is contained in:
2026-01-21 19:06:47 +01:00
parent dcc7a68973
commit 2bf7117296
6 changed files with 337 additions and 33 deletions

View File

@@ -37,6 +37,8 @@ class TestCli(unittest.TestCase):
"--force-egress-mtu",
"1452",
"--dry-run",
"--print-mtu",
"wg",
]
)
@@ -56,6 +58,8 @@ class TestCli(unittest.TestCase):
self.assertEqual(args.set_wg_mtu, 1372)
self.assertEqual(args.force_egress_mtu, 1452)
self.assertTrue(args.dry_run)
self.assertEqual(args.print_mtu, "wg")
self.assertFalse(args.print_json)
if __name__ == "__main__":