Skip to content

Commit 0d7b5d9

Browse files
committed
rename max payload size cmdline argument
Signed-off-by: Luminita Voicu <[email protected]>
1 parent 847890e commit 0d7b5d9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Added
66

7-
- Added `--http_api_max_payload_size` parameter to configure the maximum payload
7+
- Added `--http-api-max-payload-size` parameter to configure the maximum payload
88
size for PUT and PATCH requests.
9-
- Limit MMDS data store size to `--http_api_max_payload_size`.
9+
- Limit MMDS data store size to `--http-api-max-payload-size`.
1010
- Cleanup all environment variables in Jailer.
1111

1212
## [0.25.0]

docs/mmds/mmds-design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ store supports at the moment storing and retrieving JSON values. Data store
5959
contents can be retrieved using the Firecracker API server from host and using
6060
the embedded MMDS HTTP/TCP/IPv4 network stack from guest.
6161
MMDS data store is upper bounded by a default maximum size of 51200 bytes. This
62-
limit can be modified using `--http_api_max_payload_size` command line parameter.
62+
limit can be modified using `--http-api-max-payload-size` command line parameter.
6363
All PUT and PATCH requests with Content-Length bigger than the imposed limit will
6464
receive HTTP 413 Payload Too Large response status code.
6565

src/firecracker/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn main_exitable() -> ExitCode {
202202
.help("Print the data format version of the provided snapshot state file.")
203203
)
204204
.arg(
205-
Argument::new("http_api_max_payload_size")
205+
Argument::new("http-api-max-payload-size")
206206
.takes_value(true)
207207
.help("Http API request payload max size.")
208208
);
@@ -309,10 +309,10 @@ fn main_exitable() -> ExitCode {
309309
.expect("Missing argument: api-sock");
310310
let payload_limit = arg_parser
311311
.arguments()
312-
.single_value("http_api_max_payload_size")
312+
.single_value("http-api-max-payload-size")
313313
.map(|lim| {
314314
lim.parse::<usize>()
315-
.expect("'http_api_max_payload_size' parameter expected to be of 'usize' type.")
315+
.expect("'http-api-max-payload-size' parameter expected to be of 'usize' type.")
316316
});
317317

318318
let start_time_us = arguments.single_value("start-time-us").map(|s| {

tests/integration_tests/functional/test_cmd_line_start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_config_start_with_limit(test_microvm_with_api, vm_config_file):
111111
test_microvm = test_microvm_with_api
112112

113113
_configure_vm_from_json(test_microvm, vm_config_file)
114-
test_microvm.jailer.extra_args.update({'http_api_max_payload_size': "250"})
114+
test_microvm.jailer.extra_args.update({'http-api-max-payload-size': "250"})
115115
test_microvm.spawn()
116116

117117
response = test_microvm.machine_cfg.get()

0 commit comments

Comments
 (0)