Yes, exactly.

I don’t understand what is not working for me and don’t really know how to 
investigate.

Charles.

De : Miroslav Macko [mailto:[email protected]]
Envoyé : jeudi 18 mai 2017 11:53
À : Charles GIUDICELLI <[email protected]>; 
[email protected]
Objet : Re: [openflowplugin-dev] [statistics] - Cannot get flow statistics 
anymore


Hello Charles,



I have tried ODL Beryllium SR4 
https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.4-Beryllium-SR4/distribution-karaf-0.4.4-Beryllium-SR4.zip



Url:



http://<controller<http://%3ccontroller> 
IP>:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/



is returning also info about flows in operational.


<table xmlns="urn:opendaylight:flow:inventory">
    <id>0</id>
...
    <flow-table-statistics xmlns="urn:opendaylight:flow:table:statistics">
        <packets-matched>0</packets-matched>
        <packets-looked-up>2</packets-looked-up>
        <active-flows>2</active-flows>
    </flow-table-statistics>
    <flow-hash-id-map>
        <hash>Match [_ethernetMatch=EthernetMatch [_ethernetType=EthernetType 
[_type=EtherType [_value=2048], augmentation=[]], augmentation=[]], 
_layer3Match=Ipv4Match [_ipv4Destination=Ipv4Prefix [_value=10.0.1.0/24], 
augmentation=[]], augmentation=[]]11</hash>
        <flow-id>#UF$TABLE*0-3</flow-id>
    </flow-hash-id-map>
    <flow-hash-id-map>
        <hash>Match [_ethernetMatch=EthernetMatch [_ethernetType=EthernetType 
[_type=EtherType [_value=2048], augmentation=[]], augmentation=[]], 
_layer3Match=Ipv4Match [_ipv4Destination=Ipv4Prefix [_value=10.0.1.0/24], 
augmentation=[]], augmentation=[]]21</hash>
        <flow-id>#UF$TABLE*0-5</flow-id>
    </flow-hash-id-map>
    <flow>
        <id>#UF$TABLE*0-3</id>
        <instructions>
            <instruction>
                <order>0</order>
                <apply-actions>
                    <action>
                        <order>0</order>
                        <dec-nw-ttl></dec-nw-ttl>
                    </action>
                </apply-actions>
            </instruction>
        </instructions>
        <flags></flags>
        <cookie>1</cookie>
        <match>
            <ipv4-destination>10.0.1.0/24</ipv4-destination>
            <ethernet-match>
                <ethernet-type>
                    <type>2048</type>
                </ethernet-type>
            </ethernet-match>
        </match>
        <hard-timeout>0</hard-timeout>
        <priority>1</priority>
        <table_id>0</table_id>
        <flow-statistics xmlns="urn:opendaylight:flow:statistics">
            <byte-count>0</byte-count>
            <duration>
                <second>291</second>
                <nanosecond>429000000</nanosecond>
            </duration>
            <packet-count>0</packet-count>
        </flow-statistics>
        <idle-timeout>0</idle-timeout>
    </flow>
    <flow>
        <id>#UF$TABLE*0-5</id>
        <instructions>
            <instruction>
                <order>0</order>
                <apply-actions>
                    <action>
                        <order>0</order>
                        <dec-nw-ttl></dec-nw-ttl>
                    </action>
                </apply-actions>
            </instruction>
        </instructions>
        <flags></flags>
        <cookie>1</cookie>
        <match>
            <ipv4-destination>10.0.1.0/24</ipv4-destination>
            <ethernet-match>
                <ethernet-type>
                    <type>2048</type>
                </ethernet-type>
            </ethernet-match>
        </match>
        <hard-timeout>0</hard-timeout>
        <priority>2</priority>
        <table_id>0</table_id>
        <flow-statistics xmlns="urn:opendaylight:flow:statistics">
            <byte-count>0</byte-count>
            <duration>
                <second>33</second>
                <nanosecond>299000000</nanosecond>
            </duration>
            <packet-count>0</packet-count>
        </flow-statistics>
        <idle-timeout>0</idle-timeout>
    </flow>
</table>


Isn't that what you expected?



Thanks,

Miro

________________________________
Od: Charles GIUDICELLI 
<[email protected]<mailto:[email protected]>>
Odoslané: štvrtok, 18. mája 2017 9:12:19
Komu: 
[email protected]<mailto:[email protected]>
Predmet: [openflowplugin-dev] [statistics] - Cannot get flow statistics anymore

Hi,

I am using the ODL statistic plugin to get stats about packet count and byte 
count for the flows available in the table 0 of my ovs switch.

Until now I was using ODL Beryllium SR2 and everything was fine.

With this url:

    http://<controller<http://%3ccontroller> 
IP>:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/

I was able to get statistics for all the flows in the table 0 (flow id, ip 
address, byte count, packet count).

Now I am using, the release SR4 (maybe it's not related), I added more tables 
in my ovs switch too, but I still have flows entries in the table 0, but 
instead of having a list of flows when using the previous url.

Now I have only this:

    "opendaylight-flow-table-statistics:flow-table-statistics": {
                                                               
"packets-matched": 48544,
                                                               
"packets-looked-up": 48891,
                                                               "active-flows": 
12
    }

And if y try this url for example:

    http://<controller<http://%3ccontroller> 
IP>:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/0

with Id 0 or any other ID, I have the message:

> applicationdata-missingRequest could not be completed because the relevant 
> data model content does not exist

I still see the packet-matched and packet-looked-up incrementing, but I don’t 
find where to get details for each flows.

Do I need to use another url, or change something to get the list of the flows 
with the corresponding ip and the packet count ?

I enclosed the result of my stat request.

Best regards,
Charles.

Miroslav Macko
Software Developer

PANTHEON technologies s.r.o.
Janka Kráľa 9, 974 01 Banská Bystrica
Slovakia
Tel / +421 220 665 111

MAIL / [email protected]<mailto:[email protected]>
WEB / www.pantheon.tech<http://www.pantheon.tech>


_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to