openstack-helm/octavia/templates/bin/_octavia-driver-agent.sh.tpl
ricolin d617712e68 Add Support for OVN octavia provider
* Add OVN support
* Add Octavia Driver Agent service

With this, we're allow to using OVN with Octavia just by adding OVN to
following configs:
* [api_settings]/enabled_provider_drivers
* [driver_agent]/enabled_provider_agents

Change-Id: I735c572fff80793806a9232c86e69059d0eda838
2025-03-17 13:06:16 +08:00

32 lines
760 B
Smarty

#!/bin/bash
{{/*
Copyright 2024 Vexxhost Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
set -ex
COMMAND="${@:-start}"
function start () {
exec octavia-driver-agent \
--config-file /etc/octavia/octavia.conf
}
function stop () {
kill -TERM 1
}
$COMMAND