turn on mdata tracking, send packets, verify, check CLI output
(self)
| 94 | ) |
| 95 | |
| 96 | def test_mdata_cli(self): |
| 97 | """turn on mdata tracking, send packets, verify, check CLI output""" |
| 98 | self.vapi.cli("buffer metadata tracking on") |
| 99 | |
| 100 | packets = self.create_stream(self.pg0, self.pg1, 5) |
| 101 | self.pg0.add_stream(packets) |
| 102 | self.pg0.enable_capture() |
| 103 | self.pg1.enable_capture() |
| 104 | self.pg_start() |
| 105 | |
| 106 | capture = self.pg1.get_capture() |
| 107 | self.pg0.assert_nothing_captured() |
| 108 | self.verify_capture(self.pg0, self.pg1, capture) |
| 109 | |
| 110 | result = self.vapi.cli("show buffer metadata") |
| 111 | expected = [ |
| 112 | "ip4-input", |
| 113 | "ip4-rewrite", |
| 114 | "ip4-lookup", |
| 115 | "ethernet-input", |
| 116 | "pg1-tx", |
| 117 | "pg1-output", |
| 118 | ] |
| 119 | for entry in expected: |
| 120 | self.assertIn(entry, result) |
| 121 | self.vapi.cli("buffer metadata tracking off") |
| 122 | |
| 123 | |
| 124 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected