From 53aeb5ae5b097b18b7f55a3a5744af50d7a30a97 Mon Sep 17 00:00:00 2001 From: Niklaus Xie Date: Wed, 23 Jun 2021 13:38:01 +0800 Subject: [PATCH] add udp sip diameter hm type (cherry picked from commit 7e8d54ec2ce787d4a5057c05bd338aab328bf88a) --- .../lbaasv2/drivers/bigip/resource_manager.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/f5_openstack_agent/lbaasv2/drivers/bigip/resource_manager.py b/f5_openstack_agent/lbaasv2/drivers/bigip/resource_manager.py index 51f158dc3..55e5e2156 100644 --- a/f5_openstack_agent/lbaasv2/drivers/bigip/resource_manager.py +++ b/f5_openstack_agent/lbaasv2/drivers/bigip/resource_manager.py @@ -1104,6 +1104,15 @@ def __init__(self, driver, **kwargs): elif subtype == 'TCP': monitor_type = resource_helper.ResourceType.tcp_monitor self._resource = 'tcp_monitor' + elif subtype == 'UDP': + monitor_type = resource_helper.ResourceType.udp_monitor + self._resource = 'udp_monitor' + elif subtype == 'SIP': + monitor_type = resource_helper.ResourceType.sip_monitor + self._resource = 'sip_monitor' + elif subtype == 'DIAMETER': + monitor_type = resource_helper.ResourceType.diameter_monitor + self._resource = 'diameter_monitor' else: raise Exception("Invalid monitor type %s", subtype)