Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 1 | # Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University |
| 2 | # Copyright (c) 2011, 2012 Open Networking Foundation |
| 3 | # Copyright (c) 2012, 2013 Big Switch Networks, Inc. |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 4 | # See the file LICENSE.pyloxi which should have been included in the source distribution |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 5 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 6 | # Automatically generated by LOXI from template module.py |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 7 | # Do not modify |
| 8 | |
| 9 | import struct |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 10 | import loxi |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 11 | import const |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 12 | import common |
| 13 | import action |
| 14 | import instruction |
| 15 | import oxm |
| 16 | import action_id |
| 17 | import instruction_id |
| 18 | import meter_band |
Rich Lane | 1a82041 | 2014-01-06 14:15:07 -0800 | [diff] [blame] | 19 | import bsn_tlv |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 20 | import util |
| 21 | import loxi.generic_util |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 22 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 23 | class instruction(loxi.OFObject): |
| 24 | subtypes = {} |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 25 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 26 | @staticmethod |
| 27 | def unpack(reader): |
| 28 | subtype, = reader.peek('!H', 0) |
| 29 | try: |
| 30 | subclass = instruction.subtypes[subtype] |
| 31 | except KeyError: |
| 32 | raise loxi.ProtocolError("unknown instruction subtype %#x" % subtype) |
| 33 | return subclass.unpack(reader) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 34 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 35 | |
| 36 | class apply_actions(instruction): |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 37 | type = 4 |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 38 | |
| 39 | def __init__(self, actions=None): |
| 40 | if actions != None: |
| 41 | self.actions = actions |
| 42 | else: |
| 43 | self.actions = [] |
| 44 | return |
| 45 | |
| 46 | def pack(self): |
| 47 | packed = [] |
| 48 | packed.append(struct.pack("!H", self.type)) |
| 49 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 50 | packed.append('\x00' * 4) |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 51 | packed.append(loxi.generic_util.pack_list(self.actions)) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 52 | length = sum([len(x) for x in packed]) |
| 53 | packed[1] = struct.pack("!H", length) |
| 54 | return ''.join(packed) |
| 55 | |
| 56 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 57 | def unpack(reader): |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 58 | obj = apply_actions() |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 59 | _type = reader.read("!H")[0] |
| 60 | assert(_type == 4) |
| 61 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 62 | orig_reader = reader |
| 63 | reader = orig_reader.slice(_len - (2 + 2)) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 64 | reader.skip(4) |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 65 | obj.actions = loxi.generic_util.unpack_list(reader, action.action.unpack) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 66 | return obj |
| 67 | |
| 68 | def __eq__(self, other): |
| 69 | if type(self) != type(other): return False |
| 70 | if self.actions != other.actions: return False |
| 71 | return True |
| 72 | |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 73 | def pretty_print(self, q): |
| 74 | q.text("apply_actions {") |
| 75 | with q.group(): |
| 76 | with q.indent(2): |
| 77 | q.breakable() |
| 78 | q.text("actions = "); |
| 79 | q.pp(self.actions) |
| 80 | q.breakable() |
| 81 | q.text('}') |
| 82 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 83 | instruction.subtypes[4] = apply_actions |
| 84 | |
| 85 | class experimenter(instruction): |
| 86 | subtypes = {} |
| 87 | |
| 88 | @staticmethod |
| 89 | def unpack(reader): |
| 90 | subtype, = reader.peek('!L', 4) |
| 91 | try: |
| 92 | subclass = experimenter.subtypes[subtype] |
| 93 | except KeyError: |
| 94 | raise loxi.ProtocolError("unknown experimenter instruction subtype %#x" % subtype) |
| 95 | return subclass.unpack(reader) |
| 96 | |
| 97 | instruction.subtypes[65535] = experimenter |
| 98 | |
| 99 | class bsn(experimenter): |
| 100 | subtypes = {} |
| 101 | |
| 102 | @staticmethod |
| 103 | def unpack(reader): |
| 104 | subtype, = reader.peek('!L', 8) |
| 105 | try: |
| 106 | subclass = bsn.subtypes[subtype] |
| 107 | except KeyError: |
| 108 | raise loxi.ProtocolError("unknown bsn experimenter instruction subtype %#x" % subtype) |
| 109 | return subclass.unpack(reader) |
| 110 | |
| 111 | experimenter.subtypes[6035143] = bsn |
| 112 | |
| 113 | class bsn_disable_src_mac_check(bsn): |
Rich Lane | 7b0f201 | 2013-11-22 14:15:26 -0800 | [diff] [blame] | 114 | type = 65535 |
| 115 | experimenter = 6035143 |
| 116 | subtype = 0 |
| 117 | |
| 118 | def __init__(self): |
| 119 | return |
| 120 | |
| 121 | def pack(self): |
| 122 | packed = [] |
| 123 | packed.append(struct.pack("!H", self.type)) |
| 124 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 125 | packed.append(struct.pack("!L", self.experimenter)) |
| 126 | packed.append(struct.pack("!L", self.subtype)) |
| 127 | packed.append('\x00' * 4) |
| 128 | length = sum([len(x) for x in packed]) |
| 129 | packed[1] = struct.pack("!H", length) |
| 130 | return ''.join(packed) |
| 131 | |
| 132 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 133 | def unpack(reader): |
Rich Lane | 7b0f201 | 2013-11-22 14:15:26 -0800 | [diff] [blame] | 134 | obj = bsn_disable_src_mac_check() |
Rich Lane | 7b0f201 | 2013-11-22 14:15:26 -0800 | [diff] [blame] | 135 | _type = reader.read("!H")[0] |
| 136 | assert(_type == 65535) |
| 137 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 138 | orig_reader = reader |
| 139 | reader = orig_reader.slice(_len - (2 + 2)) |
Rich Lane | 7b0f201 | 2013-11-22 14:15:26 -0800 | [diff] [blame] | 140 | _experimenter = reader.read("!L")[0] |
| 141 | assert(_experimenter == 6035143) |
| 142 | _subtype = reader.read("!L")[0] |
| 143 | assert(_subtype == 0) |
| 144 | reader.skip(4) |
| 145 | return obj |
| 146 | |
| 147 | def __eq__(self, other): |
| 148 | if type(self) != type(other): return False |
| 149 | return True |
| 150 | |
Rich Lane | 7b0f201 | 2013-11-22 14:15:26 -0800 | [diff] [blame] | 151 | def pretty_print(self, q): |
| 152 | q.text("bsn_disable_src_mac_check {") |
| 153 | with q.group(): |
| 154 | with q.indent(2): |
| 155 | q.breakable() |
| 156 | q.breakable() |
| 157 | q.text('}') |
| 158 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 159 | bsn.subtypes[0] = bsn_disable_src_mac_check |
| 160 | |
| 161 | class clear_actions(instruction): |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 162 | type = 5 |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 163 | |
| 164 | def __init__(self): |
| 165 | return |
| 166 | |
| 167 | def pack(self): |
| 168 | packed = [] |
| 169 | packed.append(struct.pack("!H", self.type)) |
| 170 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 171 | packed.append('\x00' * 4) |
| 172 | length = sum([len(x) for x in packed]) |
| 173 | packed[1] = struct.pack("!H", length) |
| 174 | return ''.join(packed) |
| 175 | |
| 176 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 177 | def unpack(reader): |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 178 | obj = clear_actions() |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 179 | _type = reader.read("!H")[0] |
| 180 | assert(_type == 5) |
| 181 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 182 | orig_reader = reader |
| 183 | reader = orig_reader.slice(_len - (2 + 2)) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 184 | reader.skip(4) |
| 185 | return obj |
| 186 | |
| 187 | def __eq__(self, other): |
| 188 | if type(self) != type(other): return False |
| 189 | return True |
| 190 | |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 191 | def pretty_print(self, q): |
| 192 | q.text("clear_actions {") |
| 193 | with q.group(): |
| 194 | with q.indent(2): |
| 195 | q.breakable() |
| 196 | q.breakable() |
| 197 | q.text('}') |
| 198 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 199 | instruction.subtypes[5] = clear_actions |
| 200 | |
| 201 | class goto_table(instruction): |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 202 | type = 1 |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 203 | |
| 204 | def __init__(self, table_id=None): |
| 205 | if table_id != None: |
| 206 | self.table_id = table_id |
| 207 | else: |
| 208 | self.table_id = 0 |
| 209 | return |
| 210 | |
| 211 | def pack(self): |
| 212 | packed = [] |
| 213 | packed.append(struct.pack("!H", self.type)) |
| 214 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 215 | packed.append(struct.pack("!B", self.table_id)) |
| 216 | packed.append('\x00' * 3) |
| 217 | length = sum([len(x) for x in packed]) |
| 218 | packed[1] = struct.pack("!H", length) |
| 219 | return ''.join(packed) |
| 220 | |
| 221 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 222 | def unpack(reader): |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 223 | obj = goto_table() |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 224 | _type = reader.read("!H")[0] |
| 225 | assert(_type == 1) |
| 226 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 227 | orig_reader = reader |
| 228 | reader = orig_reader.slice(_len - (2 + 2)) |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 229 | obj.table_id = reader.read("!B")[0] |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 230 | reader.skip(3) |
| 231 | return obj |
| 232 | |
| 233 | def __eq__(self, other): |
| 234 | if type(self) != type(other): return False |
| 235 | if self.table_id != other.table_id: return False |
| 236 | return True |
| 237 | |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 238 | def pretty_print(self, q): |
| 239 | q.text("goto_table {") |
| 240 | with q.group(): |
| 241 | with q.indent(2): |
| 242 | q.breakable() |
| 243 | q.text("table_id = "); |
| 244 | q.text("%#x" % self.table_id) |
| 245 | q.breakable() |
| 246 | q.text('}') |
| 247 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 248 | instruction.subtypes[1] = goto_table |
| 249 | |
| 250 | class meter(instruction): |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 251 | type = 6 |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 252 | |
| 253 | def __init__(self, meter_id=None): |
| 254 | if meter_id != None: |
| 255 | self.meter_id = meter_id |
| 256 | else: |
| 257 | self.meter_id = 0 |
| 258 | return |
| 259 | |
| 260 | def pack(self): |
| 261 | packed = [] |
| 262 | packed.append(struct.pack("!H", self.type)) |
| 263 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 264 | packed.append(struct.pack("!L", self.meter_id)) |
| 265 | length = sum([len(x) for x in packed]) |
| 266 | packed[1] = struct.pack("!H", length) |
| 267 | return ''.join(packed) |
| 268 | |
| 269 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 270 | def unpack(reader): |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 271 | obj = meter() |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 272 | _type = reader.read("!H")[0] |
| 273 | assert(_type == 6) |
| 274 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 275 | orig_reader = reader |
| 276 | reader = orig_reader.slice(_len - (2 + 2)) |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 277 | obj.meter_id = reader.read("!L")[0] |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 278 | return obj |
| 279 | |
| 280 | def __eq__(self, other): |
| 281 | if type(self) != type(other): return False |
| 282 | if self.meter_id != other.meter_id: return False |
| 283 | return True |
| 284 | |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 285 | def pretty_print(self, q): |
| 286 | q.text("meter {") |
| 287 | with q.group(): |
| 288 | with q.indent(2): |
| 289 | q.breakable() |
| 290 | q.text("meter_id = "); |
| 291 | q.text("%#x" % self.meter_id) |
| 292 | q.breakable() |
| 293 | q.text('}') |
| 294 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 295 | instruction.subtypes[6] = meter |
| 296 | |
| 297 | class write_actions(instruction): |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 298 | type = 3 |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 299 | |
| 300 | def __init__(self, actions=None): |
| 301 | if actions != None: |
| 302 | self.actions = actions |
| 303 | else: |
| 304 | self.actions = [] |
| 305 | return |
| 306 | |
| 307 | def pack(self): |
| 308 | packed = [] |
| 309 | packed.append(struct.pack("!H", self.type)) |
| 310 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 311 | packed.append('\x00' * 4) |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 312 | packed.append(loxi.generic_util.pack_list(self.actions)) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 313 | length = sum([len(x) for x in packed]) |
| 314 | packed[1] = struct.pack("!H", length) |
| 315 | return ''.join(packed) |
| 316 | |
| 317 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 318 | def unpack(reader): |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 319 | obj = write_actions() |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 320 | _type = reader.read("!H")[0] |
| 321 | assert(_type == 3) |
| 322 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 323 | orig_reader = reader |
| 324 | reader = orig_reader.slice(_len - (2 + 2)) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 325 | reader.skip(4) |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 326 | obj.actions = loxi.generic_util.unpack_list(reader, action.action.unpack) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 327 | return obj |
| 328 | |
| 329 | def __eq__(self, other): |
| 330 | if type(self) != type(other): return False |
| 331 | if self.actions != other.actions: return False |
| 332 | return True |
| 333 | |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 334 | def pretty_print(self, q): |
| 335 | q.text("write_actions {") |
| 336 | with q.group(): |
| 337 | with q.indent(2): |
| 338 | q.breakable() |
| 339 | q.text("actions = "); |
| 340 | q.pp(self.actions) |
| 341 | q.breakable() |
| 342 | q.text('}') |
| 343 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 344 | instruction.subtypes[3] = write_actions |
| 345 | |
| 346 | class write_metadata(instruction): |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 347 | type = 2 |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 348 | |
| 349 | def __init__(self, metadata=None, metadata_mask=None): |
| 350 | if metadata != None: |
| 351 | self.metadata = metadata |
| 352 | else: |
| 353 | self.metadata = 0 |
| 354 | if metadata_mask != None: |
| 355 | self.metadata_mask = metadata_mask |
| 356 | else: |
| 357 | self.metadata_mask = 0 |
| 358 | return |
| 359 | |
| 360 | def pack(self): |
| 361 | packed = [] |
| 362 | packed.append(struct.pack("!H", self.type)) |
| 363 | packed.append(struct.pack("!H", 0)) # placeholder for len at index 1 |
| 364 | packed.append('\x00' * 4) |
| 365 | packed.append(struct.pack("!Q", self.metadata)) |
| 366 | packed.append(struct.pack("!Q", self.metadata_mask)) |
| 367 | length = sum([len(x) for x in packed]) |
| 368 | packed[1] = struct.pack("!H", length) |
| 369 | return ''.join(packed) |
| 370 | |
| 371 | @staticmethod |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 372 | def unpack(reader): |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 373 | obj = write_metadata() |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 374 | _type = reader.read("!H")[0] |
| 375 | assert(_type == 2) |
| 376 | _len = reader.read("!H")[0] |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 377 | orig_reader = reader |
| 378 | reader = orig_reader.slice(_len - (2 + 2)) |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 379 | reader.skip(4) |
Dan Talayco | f620225 | 2013-07-02 01:00:29 -0700 | [diff] [blame] | 380 | obj.metadata = reader.read("!Q")[0] |
| 381 | obj.metadata_mask = reader.read("!Q")[0] |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 382 | return obj |
| 383 | |
| 384 | def __eq__(self, other): |
| 385 | if type(self) != type(other): return False |
| 386 | if self.metadata != other.metadata: return False |
| 387 | if self.metadata_mask != other.metadata_mask: return False |
| 388 | return True |
| 389 | |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 390 | def pretty_print(self, q): |
| 391 | q.text("write_metadata {") |
| 392 | with q.group(): |
| 393 | with q.indent(2): |
| 394 | q.breakable() |
| 395 | q.text("metadata = "); |
| 396 | q.text("%#x" % self.metadata) |
| 397 | q.text(","); q.breakable() |
| 398 | q.text("metadata_mask = "); |
| 399 | q.text("%#x" % self.metadata_mask) |
| 400 | q.breakable() |
| 401 | q.text('}') |
| 402 | |
Rich Lane | 7dcdf02 | 2013-12-11 14:45:27 -0800 | [diff] [blame] | 403 | instruction.subtypes[2] = write_metadata |
Rich Lane | ca3da27 | 2013-05-05 09:07:33 -0700 | [diff] [blame] | 404 | |
Rich Lane | 7b0f201 | 2013-11-22 14:15:26 -0800 | [diff] [blame] | 405 | |