Rich Lane | b1f347d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 01 11 # version / type |
| 3 | 04 2c # length |
| 4 | 00 00 00 03 # xid |
| 5 | 00 00 # stats_type |
| 6 | 00 01 # flags |
| 7 | 54 68 65 20 49 6e 64 69 # mfr_desc |
| 8 | 67 6f 2d 32 20 43 6f 6d # ... |
| 9 | 6d 75 6e 69 74 79 00 00 # ... |
| 10 | 00 00 00 00 00 00 00 00 # ... |
| 11 | 00 00 00 00 00 00 00 00 # ... |
| 12 | 00 00 00 00 00 00 00 00 # ... |
| 13 | 00 00 00 00 00 00 00 00 # ... |
| 14 | 00 00 00 00 00 00 00 00 # ... |
| 15 | 00 00 00 00 00 00 00 00 # ... |
| 16 | 00 00 00 00 00 00 00 00 # ... |
| 17 | 00 00 00 00 00 00 00 00 # ... |
| 18 | 00 00 00 00 00 00 00 00 # ... |
| 19 | 00 00 00 00 00 00 00 00 # ... |
| 20 | 00 00 00 00 00 00 00 00 # ... |
| 21 | 00 00 00 00 00 00 00 00 # ... |
| 22 | 00 00 00 00 00 00 00 00 # ... |
| 23 | 00 00 00 00 00 00 00 00 # ... |
| 24 | 00 00 00 00 00 00 00 00 # ... |
| 25 | 00 00 00 00 00 00 00 00 # ... |
| 26 | 00 00 00 00 00 00 00 00 # ... |
| 27 | 00 00 00 00 00 00 00 00 # ... |
| 28 | 00 00 00 00 00 00 00 00 # ... |
| 29 | 00 00 00 00 00 00 00 00 # ... |
| 30 | 00 00 00 00 00 00 00 00 # ... |
| 31 | 00 00 00 00 00 00 00 00 # ... |
| 32 | 00 00 00 00 00 00 00 00 # ... |
| 33 | 00 00 00 00 00 00 00 00 # ... |
| 34 | 00 00 00 00 00 00 00 00 # ... |
| 35 | 00 00 00 00 00 00 00 00 # ... |
| 36 | 00 00 00 00 00 00 00 00 # ... |
| 37 | 00 00 00 00 00 00 00 00 # ... |
| 38 | 00 00 00 00 00 00 00 00 # ... |
| 39 | 55 6e 6b 6e 6f 77 6e 20 # hw_desc |
| 40 | 73 65 72 76 65 72 00 00 # ... |
| 41 | 00 00 00 00 00 00 00 00 # ... |
| 42 | 00 00 00 00 00 00 00 00 # ... |
| 43 | 00 00 00 00 00 00 00 00 # ... |
| 44 | 00 00 00 00 00 00 00 00 # ... |
| 45 | 00 00 00 00 00 00 00 00 # ... |
| 46 | 00 00 00 00 00 00 00 00 # ... |
| 47 | 00 00 00 00 00 00 00 00 # ... |
| 48 | 00 00 00 00 00 00 00 00 # ... |
| 49 | 00 00 00 00 00 00 00 00 # ... |
| 50 | 00 00 00 00 00 00 00 00 # ... |
| 51 | 00 00 00 00 00 00 00 00 # ... |
| 52 | 00 00 00 00 00 00 00 00 # ... |
| 53 | 00 00 00 00 00 00 00 00 # ... |
| 54 | 00 00 00 00 00 00 00 00 # ... |
| 55 | 00 00 00 00 00 00 00 00 # ... |
| 56 | 00 00 00 00 00 00 00 00 # ... |
| 57 | 00 00 00 00 00 00 00 00 # ... |
| 58 | 00 00 00 00 00 00 00 00 # ... |
| 59 | 00 00 00 00 00 00 00 00 # ... |
| 60 | 00 00 00 00 00 00 00 00 # ... |
| 61 | 00 00 00 00 00 00 00 00 # ... |
| 62 | 00 00 00 00 00 00 00 00 # ... |
| 63 | 00 00 00 00 00 00 00 00 # ... |
| 64 | 00 00 00 00 00 00 00 00 # ... |
| 65 | 00 00 00 00 00 00 00 00 # ... |
| 66 | 00 00 00 00 00 00 00 00 # ... |
| 67 | 00 00 00 00 00 00 00 00 # ... |
| 68 | 00 00 00 00 00 00 00 00 # ... |
| 69 | 00 00 00 00 00 00 00 00 # ... |
| 70 | 00 00 00 00 00 00 00 00 # ... |
| 71 | 49 6e 64 69 67 6f 2d 32 # sw_desc |
| 72 | 20 4c 52 49 20 70 72 65 # ... |
| 73 | 2d 72 65 6c 65 61 73 65 # ... |
| 74 | 00 00 00 00 00 00 00 00 # ... |
| 75 | 00 00 00 00 00 00 00 00 # ... |
| 76 | 00 00 00 00 00 00 00 00 # ... |
| 77 | 00 00 00 00 00 00 00 00 # ... |
| 78 | 00 00 00 00 00 00 00 00 # ... |
| 79 | 00 00 00 00 00 00 00 00 # ... |
| 80 | 00 00 00 00 00 00 00 00 # ... |
| 81 | 00 00 00 00 00 00 00 00 # ... |
| 82 | 00 00 00 00 00 00 00 00 # ... |
| 83 | 00 00 00 00 00 00 00 00 # ... |
| 84 | 00 00 00 00 00 00 00 00 # ... |
| 85 | 00 00 00 00 00 00 00 00 # ... |
| 86 | 00 00 00 00 00 00 00 00 # ... |
| 87 | 00 00 00 00 00 00 00 00 # ... |
| 88 | 00 00 00 00 00 00 00 00 # ... |
| 89 | 00 00 00 00 00 00 00 00 # ... |
| 90 | 00 00 00 00 00 00 00 00 # ... |
| 91 | 00 00 00 00 00 00 00 00 # ... |
| 92 | 00 00 00 00 00 00 00 00 # ... |
| 93 | 00 00 00 00 00 00 00 00 # ... |
| 94 | 00 00 00 00 00 00 00 00 # ... |
| 95 | 00 00 00 00 00 00 00 00 # ... |
| 96 | 00 00 00 00 00 00 00 00 # ... |
| 97 | 00 00 00 00 00 00 00 00 # ... |
| 98 | 00 00 00 00 00 00 00 00 # ... |
| 99 | 00 00 00 00 00 00 00 00 # ... |
| 100 | 00 00 00 00 00 00 00 00 # ... |
| 101 | 00 00 00 00 00 00 00 00 # ... |
| 102 | 00 00 00 00 00 00 00 00 # ... |
| 103 | 31 31 32 33 35 38 31 33 # serial_num |
| 104 | 32 31 33 34 35 35 00 00 # ... |
| 105 | 00 00 00 00 00 00 00 00 # ... |
| 106 | 00 00 00 00 00 00 00 00 # ... |
| 107 | 49 6e 64 69 67 6f 2d 32 # dp_desc |
| 108 | 20 4c 52 49 20 66 6f 72 # ... |
| 109 | 77 61 72 64 69 6e 67 20 # ... |
| 110 | 6d 6f 64 75 6c 65 00 00 # ... |
| 111 | 00 00 00 00 00 00 00 00 # ... |
| 112 | 00 00 00 00 00 00 00 00 # ... |
| 113 | 00 00 00 00 00 00 00 00 # ... |
| 114 | 00 00 00 00 00 00 00 00 # ... |
| 115 | 00 00 00 00 00 00 00 00 # ... |
| 116 | 00 00 00 00 00 00 00 00 # ... |
| 117 | 00 00 00 00 00 00 00 00 # ... |
| 118 | 00 00 00 00 00 00 00 00 # ... |
| 119 | 00 00 00 00 00 00 00 00 # ... |
| 120 | 00 00 00 00 00 00 00 00 # ... |
| 121 | 00 00 00 00 00 00 00 00 # ... |
| 122 | 00 00 00 00 00 00 00 00 # ... |
| 123 | 00 00 00 00 00 00 00 00 # ... |
| 124 | 00 00 00 00 00 00 00 00 # ... |
| 125 | 00 00 00 00 00 00 00 00 # ... |
| 126 | 00 00 00 00 00 00 00 00 # ... |
| 127 | 00 00 00 00 00 00 00 00 # ... |
| 128 | 00 00 00 00 00 00 00 00 # ... |
| 129 | 00 00 00 00 00 00 00 00 # ... |
| 130 | 00 00 00 00 00 00 00 00 # ... |
| 131 | 00 00 00 00 00 00 00 00 # ... |
| 132 | 00 00 00 00 00 00 00 00 # ... |
| 133 | 00 00 00 00 00 00 00 00 # ... |
| 134 | 00 00 00 00 00 00 00 00 # ... |
| 135 | 00 00 00 00 00 00 00 00 # ... |
| 136 | 00 00 00 00 00 00 00 00 # ... |
| 137 | 00 00 00 00 00 00 00 00 # ... |
| 138 | 00 00 00 00 00 00 00 00 # ... |
| 139 | -- python |
| 140 | ofp.message.desc_stats_reply( |
| 141 | xid=3, |
| 142 | flags=ofp.OFPSF_REPLY_MORE, |
| 143 | mfr_desc="The Indigo-2 Community", |
| 144 | hw_desc="Unknown server", |
| 145 | sw_desc="Indigo-2 LRI pre-release", |
| 146 | serial_num="11235813213455", |
| 147 | dp_desc="Indigo-2 LRI forwarding module") |
Rich Lane | ccae031 | 2013-07-21 23:34:13 -0700 | [diff] [blame] | 148 | -- c |
| 149 | obj = of_desc_stats_reply_new(OF_VERSION_1_0); |
| 150 | of_desc_stats_reply_xid_set(obj, 3); |
| 151 | of_desc_stats_reply_flags_set(obj, OF_STATS_REPLY_FLAG_REPLY_MORE); |
| 152 | { |
| 153 | of_desc_str_t mfr_desc = "The Indigo-2 Community"; |
| 154 | of_desc_stats_reply_mfr_desc_set(obj, mfr_desc); |
| 155 | } |
| 156 | { |
| 157 | of_desc_str_t hw_desc = "Unknown server"; |
| 158 | of_desc_stats_reply_hw_desc_set(obj, hw_desc); |
| 159 | } |
| 160 | { |
| 161 | of_desc_str_t sw_desc = "Indigo-2 LRI pre-release"; |
| 162 | of_desc_stats_reply_sw_desc_set(obj, sw_desc); |
| 163 | } |
| 164 | { |
| 165 | of_desc_str_t dp_desc = "Indigo-2 LRI forwarding module"; |
| 166 | of_desc_stats_reply_dp_desc_set(obj, dp_desc); |
| 167 | } |
| 168 | { |
| 169 | of_serial_num_t serial_num = "11235813213455"; |
| 170 | of_desc_stats_reply_serial_num_set(obj, serial_num); |
| 171 | } |