Skip to content

adjacentlink/opentestpoint-probe-iproute

Repository files navigation

opentestpoint-probe-iproute

OpenTestPoint measurement probes for IP routing tables.

Sample otestpontd XML

<otestpoint id='node-1'
            discovery='localhost:8881'
            publish='localhost:8882'>
  <probe >
    <python module="otestpoint.iproute.routing" class="Routing"/>
  </probe>
</otestpoint>

Sample Tables Dump

[me@host]$ otestpoint-dump localhost:8882 IPRoute.Routing.Tables

[1472833800] node-1/0 d0dbdeb6-365a-4b75-a6b5-571e1292397d
otestpoint.iproute.routing Measurement_iproute_routing_tables_ipv4 v1 832 bytes
IPRoute.Routing.Tables.IPv4.node-1
[] routingtable 
|Table|Dst               |Pref Src |Priority|OIF |Gateway |Dst Len|Proto|TOS|
|254  |default           |NA       |NA      |eth0|10.0.2.2|0      |4    |0  |
|254  |10.0.2.0/24       |10.0.2.15|1       |eth0|NA      |24     |2    |0  |
|255  |127.0.0.0/32      |127.0.0.1|NA      |lo  |NA      |32     |2    |0  |
|255  |10.0.2.255/32     |10.0.2.15|NA      |eth0|NA      |32     |2    |0  |
|255  |10.0.2.15/32      |10.0.2.15|NA      |eth0|NA      |32     |2    |0  |
|255  |10.0.2.0/32       |10.0.2.15|NA      |eth0|NA      |32     |2    |0  |
|255  |127.255.255.255/32|127.0.0.1|NA      |lo  |NA      |32     |2    |0  |
|255  |127.0.0.0/8       |127.0.0.1|NA      |lo  |NA      |8      |2    |0  |
|255  |127.0.0.1/32      |127.0.0.1|NA      |lo  |NA      |32     |2    |0  |
--


[1472833800] node-1/0 d0dbdeb6-365a-4b75-a6b5-571e1292397d
otestpoint.iproute.routing Measurement_iproute_routing_tables_ipv6 v1 455 bytes
IPRoute.Routing.Tables.IPv6.node-1
[] routingtable 
|Table|Dst                         |Pref Src|Priority  |OIF |Gateway|Dst Len|Proto|TOS|
|0    |default                     |NA      |4294967295|lo  |NA     |0      |2    |0  |
|254  |fe80::/64                   |NA      |256       |eth0|NA     |64     |2    |0  |
|255  |fe80::a00:27ff:feca:978a/128|NA      |0         |lo  |::     |128    |0    |0  |
|255  |::1/128                     |NA      |0         |lo  |::     |128    |0    |0  |
|255  |ff00::/8                    |NA      |256       |eth0|NA     |8      |3    |0  |
--