diff --git a/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.controller.spec.js b/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.controller.spec.js index a31e5c60..eb9fb62b 100644 --- a/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.controller.spec.js +++ b/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.controller.spec.js @@ -73,6 +73,11 @@ expect(listener.protocol_port).toBeUndefined(); }); + it('should update port on protocol change to SCTP', function() { + ctrl.protocolChange('SCTP'); + expect(listener.protocol_port).toBeUndefined(); + }); + it('should update member ports on protocol change to TERMINATED_HTTPS', function() { ctrl.protocolChange('TERMINATED_HTTPS'); @@ -105,6 +110,14 @@ }); }); + it('should update member ports on protocol change to SCTP', function() { + ctrl.protocolChange('SCTP'); + + scope.model.members.concat(scope.model.spec.members).forEach(function(member) { + expect(member.port).toBeUndefined(); + }); + }); + }); }); })(); diff --git a/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html b/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html index 9f658ac3..ac1ee680 100644 --- a/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html +++ b/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html @@ -61,7 +61,7 @@ -
Protocol:
diff --git a/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/pool/pool.html b/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/pool/pool.html index 402ab554..a30cb788 100644 --- a/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/pool/pool.html +++ b/octavia_dashboard/static/dashboard/project/lbaasv2/workflow/pool/pool.html @@ -66,7 +66,7 @@ ng-model="model.spec.pool.session_persistence.type"> diff --git a/releasenotes/notes/add-sctp-support-a1ea956b7630f47d.yaml b/releasenotes/notes/add-sctp-support-a1ea956b7630f47d.yaml new file mode 100644 index 00000000..c3bb0026 --- /dev/null +++ b/releasenotes/notes/add-sctp-support-a1ea956b7630f47d.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Add SCTP support in listener protocol and health-monitor type select boxes.