kytos-ng / flow_manager

Kytos NApp that manages OpenFlow 1.3 entries
https://kytos-ng.github.io/api/flow_manager.html
MIT License
0 stars 7 forks source link

[release 2023.2.1] fix: only update flows as `'installed'` if they were `'pending'` #212

Closed viniarck closed 1 week ago

viniarck commented 2 weeks ago

Closes #209

Summary

See https://github.com/kytos-ng/flow_manager/pull/211 for more information

Local Tests

I also ran this branch on 2023.2.1, it worked:


     _   __      _
    | | / /     | |
    | |/ / _   _| |_ ___  ___          _ __   __ _
    |    \| | | | __/ _ \/ __| ______ | '_ \ / _` |
    | |\  \ |_| | || (_) \__ \|______|| | | | (_| |
    \_| \_/\__, |\__\___/|___/        |_| |_|\__, |
            __/ |                             __/ |
           |___/                             |___/

    Welcome to Kytos SDN Platform!

    Kytos website.: https://kytos-ng.github.io/about/
    Documentation.: https://github.com/kytos-ng/documentation/tree/master/tutorials/napps
    OF Address....: tcp://0.0.0.0:6653
    WEB UI........: http://0.0.0.0:8181/
    Kytos Version.: 2023.2.0

2024-11-01 14:53:09,216 - INFO [uvicorn.access] (MainThread) 127.0.0.1:51936 - "POST /api/kytos/flow_manager/v2/flows/00%3A00%3A00%3A00%3A00%3A00%3A00%3A03 HTTP/1.1" 202
2024-11-01 14:53:09,232 - INFO [uvicorn.access] (MainThread) 127.0.0.1:51920 - "POST /api/kytos/flow_manager/v2/flows/00%3A00%3A00%3A00%3A00%3A00%3A00%3A01 HTTP/1.1" 202
2024-11-01 14:53:10,946 - WARNING [kytos.napps.kytos/of_lldp] (MainThread) LLDP loop detected on switch: 00:00:00:00:00:00:00:01, interfaces: ['s1-eth7', 's1-eth8'], port_numbers: [7, 8]
2024-11-01 14:53:10,946 - WARNING [kytos.napps.kytos/of_lldp] (MainThread) LLDP loop detected on switch: 00:00:00:00:00:00:00:01, interfaces: ['s1-eth5', 's1-eth6'], port_numbers: [5, 6]
2024-11-01 14:53:10,947 - WARNING [kytos.napps.kytos/of_lldp] (MainThread) LLDP loop detected on switch: 00:00:00:00:00:00:00:03, interfaces: ['s3-eth5', 's3-eth6'], port_numbers: [5, 6]

kytos $> 2024-11-01 14:53:18,984 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:01, command: add, force: False,  flows
[0, 1]: [{'match': {'in_port': 1, 'dl_vlan': 200}, 'instructions': [{'instruction_type': 'apply_actions', 'actions': [{'action_type': 'output', 'port': 2}]}]}]
2024-11-01 14:53:18,989 - INFO [uvicorn.access] (MainThread) 127.0.0.1:57034 - "POST /api/kytos/flow_manager/v2/flows/00%3A00%3A00%3A00%3A00%3A00%3A00%3A01 HTTP/1.1" 202
2024-11-01 14:53:18,997 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:01, command: delete, force: False,  flows[0, 1]
: [{'match': {'in_port': 1, 'dl_vlan': 200}, 'instructions': [{'instruction_type': 'apply_actions', 'actions': [{'action_type': 'output', 'port': 2}]}]}]

End-to-End Tests

See https://github.com/kytos-ng/flow_manager/pull/211 for more information