| 52 | } |
| 53 | |
| 54 | void MgrMap::ModuleOption::dump(ceph::Formatter *f) const |
| 55 | { |
| 56 | f->dump_string("name", name); |
| 57 | f->dump_string("type", Option::type_to_str( |
| 58 | static_cast<Option::type_t>(type))); |
| 59 | f->dump_string("level", Option::level_to_str( |
| 60 | static_cast<Option::level_t>(level))); |
| 61 | f->dump_unsigned("flags", flags); |
| 62 | f->dump_string("default_value", default_value); |
| 63 | f->dump_string("min", min); |
| 64 | f->dump_string("max", max); |
| 65 | f->open_array_section("enum_allowed"); |
| 66 | for (auto& i : enum_allowed) { |
| 67 | f->dump_string("value", i); |
| 68 | } |
| 69 | f->close_section(); |
| 70 | f->dump_string("desc", desc); |
| 71 | f->dump_string("long_desc", long_desc); |
| 72 | f->open_array_section("tags"); |
| 73 | for (auto& i : tags) { |
| 74 | f->dump_string("tag", i); |
| 75 | } |
| 76 | f->close_section(); |
| 77 | f->open_array_section("see_also"); |
| 78 | for (auto& i : see_also) { |
| 79 | f->dump_string("option", i); |
| 80 | } |
| 81 | f->close_section(); |
| 82 | } |
| 83 | |
| 84 | std::list<MgrMap::ModuleOption> MgrMap::ModuleOption::generate_test_instances() |
| 85 | { |
nothing calls this directly
no test coverage detected