| @@ 428-438 (lines=11) @@ | ||
| 425 | message_type='operational', |
|
| 426 | ) |
|
| 427 | ||
| 428 | def operational(self, neighbor, direction, what, operational, negotiated, header, body): |
|
| 429 | if what == 'advisory': |
|
| 430 | return self._operational_advisory(neighbor, direction, operational, header, body) |
|
| 431 | elif what == 'query': |
|
| 432 | return self._operational_query(neighbor, direction, operational, header, body) |
|
| 433 | elif what == 'counter': |
|
| 434 | return self._operational_counter(neighbor, direction, operational, header, body) |
|
| 435 | # elif what == 'interface': |
|
| 436 | # return self._operational_interface(peer,operational) |
|
| 437 | else: |
|
| 438 | raise RuntimeError('the code is broken, we are trying to print a unknown type of operational message') |
|
| 439 | ||
| @@ 149-159 (lines=11) @@ | ||
| 146 | self._header_body(header, body), |
|
| 147 | ) |
|
| 148 | ||
| 149 | def operational(self, neighbor, direction, what, operational, negotiated, header, body): |
|
| 150 | if what == 'advisory': |
|
| 151 | return self._operational_advisory(neighbor, direction, operational, header, body) |
|
| 152 | elif what == 'query': |
|
| 153 | return self._operational_query(neighbor, direction, operational, header, body) |
|
| 154 | elif what == 'counter': |
|
| 155 | return self._operational_counter(neighbor, direction, operational, header, body) |
|
| 156 | # elif what == 'interface': |
|
| 157 | # return self._operational_interface(peer,operational) |
|
| 158 | else: |
|
| 159 | raise RuntimeError('the code is broken, we are trying to print a unknown type of operational message') |
|
| 160 | ||