Module ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return orelse Assign NameStore Str orelse Assign NameStore Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad Return Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad Return Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str TryFinally body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad orelse Expr Call NameLoad BinOpMod Call NameLoad Str NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str finalbody Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad CompareLt NameLoad Num CompareIs NameLoad NameLoad body Return NameLoad If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad finalbody Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad ListLoad NameLoad orelse Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr NameLoad body Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A oslo_log log dragonflow._i18n _LI _LE _LW dragonflow.db.api_nb OvsPort N/A LOG N/A N/A log getLogger __name__ Topology N/A object N/A __init__ N/A N/A self controller enable_selective_topology_distribution N/A N/A N/A N/A self ovs_port_type N/A N/A OvsPort TYPE_VM N/A OvsPort TYPE_TUNNEL N/A OvsPort TYPE_PATCH N/A OvsPort TYPE_BRIDGE N/A N/A self topic_subscribed N/A N/A N/A self enable_selective_topo_dist enable_selective_topology_distribution N/A N/A self ovs_ports N/A N/A N/A self ovs_to_lport_mapping N/A N/A N/A self controller controller N/A N/A self nb_api N/A N/A controller get_nb_api N/A N/A self db_store N/A N/A controller get_db_store N/A N/A self openflow_app N/A N/A controller get_openflow_app N/A N/A self chassis_name N/A N/A controller get_chassis_name N/A ovs_port_updated N/A N/A self ovs_port N/A N/A N/A 
        Changes in ovs port status will be monitored by ovsdb monitor thread
        and notified to topology. This method is the entry port to process
        port online/update event

        @param ovs_port:
        @return : None
         N/A N/A ovs_port None N/A N/A N/A N/A LOG error N/A _LE ovs_port is None N/A N/A N/A N/A LOG info N/A N/A _LI Ovs port updated: %s N/A str ovs_port N/A port_id N/A N/A ovs_port get_id N/A old_port N/A N/A N/A self ovs_ports get port_id N/A N/A old_port None N/A N/A N/A N/A N/A self _check_ovs_port_integrity ovs_port N/A N/A N/A N/A action added N/A N/A action updated N/A N/A N/A self ovs_ports N/A port_id ovs_port N/A port_type N/A N/A ovs_port get_type N/A N/A port_type N/A self ovs_port_type N/A N/A N/A N/A LOG error N/A N/A _LE Unknown port online: %s N/A str ovs_port N/A N/A handler_name N/A N/A N/A _ port_type _port_ action N/A N/A N/A handler N/A getattr self handler_name None N/A N/A handler None N/A N/A N/A handler ovs_port N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Exception occurred when handling port online event N/A ovs_port_deleted N/A N/A self ovs_port_id N/A N/A N/A 
        Changes in ovs port status will be monitored by ovsdb monitor thread
        and notified to topology. This method is the entrance port to process
        port offline event

        @param ovs_port_id:
        @return : None
         N/A ovs_port N/A N/A N/A self ovs_ports get ovs_port_id N/A N/A ovs_port None N/A N/A N/A port_type N/A N/A ovs_port get_type N/A N/A port_type N/A self ovs_port_type N/A N/A N/A N/A LOG error N/A N/A _LE Unknown port offline: %s N/A str ovs_port N/A N/A handler_name N/A N/A _ port_type _port_deleted N/A N/A N/A N/A N/A handler N/A getattr self handler_name None N/A N/A handler None N/A N/A N/A handler ovs_port N/A N/A N/A LOG N/A N/A _LI %s is None. handler_name N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Exception occurred when handling ovs port update event N/A N/A N/A N/A self ovs_ports N/A ovs_port_id N/A _check_ovs_port_integrity N/A N/A self ovs_port N/A N/A N/A 
        There are some cases that some para of ovs port is missing
        then the event will be discarded
         N/A ofport N/A N/A ovs_port get_ofport N/A port_type N/A N/A ovs_port get_type N/A N/A N/A ofport None N/A ofport 0 N/A port_type None N/A N/A False N/A N/A N/A port_type N/A OvsPort TYPE_VM N/A N/A N/A ovs_port get_iface_id None N/A N/A False N/A True N/A _vm_port_added N/A N/A self ovs_port N/A N/A N/A N/A N/A self _vm_port_updated ovs_port N/A _vm_port_updated N/A N/A self ovs_port N/A N/A N/A lport_id N/A N/A ovs_port get_iface_id N/A lport N/A N/A self _get_lport lport_id N/A N/A lport None N/A N/A N/A N/A LOG warning N/A N/A _LW No logical port found for ovs port: %s N/A str ovs_port N/A N/A topic N/A N/A lport get_topic N/A N/A N/A self _add_to_topic_subscribed topic lport_id N/A ovs_port_id N/A N/A ovs_port get_id N/A N/A N/A self ovs_to_lport_mapping N/A ovs_port_id N/A lport_id topic lport_id topic N/A N/A N/A LOG info N/A N/A _LI A local logical port(%s) is online N/A str lport N/A N/A N/A N/A N/A N/A self controller logical_port_updated lport N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A N/A _LE Failed to process logical port online event: %s N/A str lport N/A _vm_port_deleted N/A N/A self ovs_port N/A N/A N/A ovs_port_id N/A N/A ovs_port get_id N/A lport_id N/A N/A ovs_port get_iface_id N/A lport N/A N/A N/A self db_store get_port lport_id N/A N/A lport None N/A N/A lport N/A N/A N/A self ovs_to_lport_mapping get ovs_port_id N/A N/A lport None N/A N/A N/A topic N/A N/A lport get topic N/A N/A N/A self ovs_to_lport_mapping N/A ovs_port_id N/A N/A N/A self _del_from_topic_subscribed topic lport_id N/A N/A topic N/A N/A lport get_topic N/A N/A N/A LOG info N/A N/A _LI The logical port(%s) is offline N/A str lport N/A N/A N/A N/A N/A N/A N/A N/A self controller logical_port_deleted lport_id N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A N/A _LE Failed to process logical port offline event %s lport_id N/A N/A N/A N/A self ovs_to_lport_mapping N/A ovs_port_id N/A N/A N/A self _del_from_topic_subscribed topic lport_id N/A _add_to_topic_subscribed N/A N/A self topic lport_id N/A N/A N/A N/A N/A self enable_selective_topo_dist N/A N/A N/A N/A topic N/A self topic_subscribed N/A N/A N/A N/A LOG info N/A N/A _LI Subscribe topic: %(topic)s by lport: %(id)s N/A topic id topic lport_id N/A N/A N/A N/A N/A self nb_api subscriber register_topic topic N/A N/A N/A self _pull_tenant_topology_from_db topic lport_id N/A N/A N/A self topic_subscribed N/A topic N/A set N/A lport_id N/A N/A N/A N/A N/A N/A self topic_subscribed N/A topic add lport_id N/A _del_from_topic_subscribed N/A N/A self topic lport_id N/A N/A N/A N/A N/A self enable_selective_topo_dist N/A N/A N/A port_ids N/A N/A self topic_subscribed N/A topic N/A N/A N/A port_ids remove lport_id N/A N/A N/A len port_ids 0 N/A N/A N/A N/A LOG info N/A N/A _LI Unsubscribe topic: %(topic)s by lport: %(id)s N/A topic id topic lport_id N/A N/A N/A self topic_subscribed N/A topic N/A N/A N/A N/A N/A self nb_api subscriber unregister_topic topic N/A N/A N/A self _clear_tenant_topology topic N/A _pull_tenant_topology_from_db N/A N/A self tenant_id lport_id N/A N/A N/A switches N/A N/A N/A self nb_api get_all_logical_switches tenant_id N/A switch switches N/A N/A N/A N/A N/A self controller logical_switch_updated switch N/A sg_groups N/A N/A N/A self nb_api get_security_groups tenant_id N/A sg_group sg_groups N/A N/A N/A N/A N/A self controller security_group_updated sg_group N/A ports N/A N/A N/A self nb_api get_all_logical_ports tenant_id N/A port ports N/A N/A N/A N/A N/A port get_id lport_id N/A N/A N/A N/A N/A N/A self controller logical_port_updated port N/A routers N/A N/A N/A self nb_api get_routers tenant_id N/A router routers N/A N/A N/A N/A N/A self controller router_updated router N/A floating_ips N/A N/A N/A self nb_api get_floatingips tenant_id N/A floating_ip floating_ips N/A N/A N/A N/A N/A self controller floatingip_updated floating_ip N/A _clear_tenant_topology N/A N/A self tenant_id N/A N/A N/A ports N/A N/A N/A self db_store get_ports N/A port ports N/A N/A N/A tenant_id N/A N/A port get_topic N/A N/A N/A N/A N/A self controller logical_port_deleted N/A N/A port get_id N/A floating_ips N/A N/A N/A self db_store get_floatingips N/A floating_ip floating_ips N/A N/A N/A tenant_id N/A N/A floating_ip get_topic N/A N/A N/A N/A N/A self controller floatingip_deleted N/A N/A floating_ip get_name N/A switches N/A N/A N/A self db_store get_lswitchs N/A switch switches N/A N/A N/A tenant_id N/A N/A switch get_topic N/A N/A N/A N/A N/A self controller logical_switch_deleted N/A N/A switch get_id N/A routers N/A N/A N/A self db_store get_routers N/A router routers N/A N/A N/A tenant_id N/A N/A router get_topic N/A N/A N/A N/A N/A self controller router_deleted N/A N/A router get_name N/A sg_groups N/A N/A N/A self db_store get_security_groups N/A sg_group sg_groups N/A N/A N/A tenant_id N/A sg_group topic N/A N/A N/A N/A N/A self controller security_group_deleted N/A sg_group name N/A _get_lport N/A N/A self port_id topic N/A None N/A N/A lport N/A N/A N/A self db_store get_port port_id N/A N/A lport None N/A N/A lport N/A N/A N/A self nb_api get_logical_port port_id topic N/A lport N/A N/A