{"library":"os-ken","title":"os-ken","description":"A component-based software defined networking framework for OpenStack, currently at version 4.1.1. It is actively maintained with a focus on SDN controller development.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install os-ken"],"cli":{"name":"osenv","version":"sh: 1: osenv: not found"}},"imports":["from os_ken.base.app_manager import OFPHandler","from os_ken.cmd.manager import Controller","from os_ken.ofproto.ofproto_v1_3 import OFPFlowMod","from os_ken.base.app_manager import OSKenApp"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from os_ken.base.app_manager import OSKenApp\nfrom os_ken.controller.handler import set_ev_cls\nfrom os_ken.ofproto.ofproto_v1_3 import OFPFlowMod\n\nclass SimpleSwitch(OSKenApp):\n    @set_ev_cls(OFPFlowMod)\n    def switch_features_handler(self, ev):\n        msg = ev.msg\n        print(f\"Switch {msg.datapath.id} connected\")\n\nif __name__ == '__main__':\n    from os_ken.cmd.manager import Controller\n    c = Controller()\n    c.start()","lang":"python","description":"Simple SDN controller app that prints switch ID on connection.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}