RPC在neutron中的应用

本文探讨了OpenStack Neutron-plugin中RPC的应用,重点分析了ML2Plugin的RpcCallbacks和AgentNotifierApi。RpcCallbacks处理agent到plugin的RPC请求,如get_port_from_device等方法;AgentNotifierApi则用于plugin向agent发送通知,例如通过创建OVS agent通知RPC客户端向OVS agent发送更新和删除操作。
摘要由CSDN通过智能技术生成

neutron-plugin中的RPC

主要对ML2Plugin进行分析,包括两个类:RpcCallbacks和AgentNotifierApi。

  • RpcCallbacks:负责当agent往plugin发出rpc请求时候,plugin实现请求的相关动作,除了继承自父类(dhcp rpc、dvr rpc、sg_db rpc和tunnel rpc)中的方法,还包括get_port_from_device、get_device_details、get_devices_details_list、update_device_down、update_device_up、get_dvr_mac_address_by_host、get_compute_ports_on_host_by_subnet、get_subnet_for_dvr等方法。

  • AgentNotifierApi:负责当plugin往agent发出rpc请求(plugin通知agent)的时候,plugin端的方法。

    def start_rpc_listeners(self): 
        """RpcCallbacks中实现的方法:Start the RPC loop to let the plugin communicate wit
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值