-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content interface for MicroOVN #151
Conversation
Signed-off-by: Max Asnaashari <[email protected]>
Signed-off-by: Max Asnaashari <[email protected]>
Signed-off-by: Max Asnaashari <[email protected]>
export OVS_BINDIR="${SNAP}/bin/" | ||
export OVS_SBINDIR="${SNAP}/bin/" | ||
|
||
mkdir -p "${OVS_SYSCONFDIR}/openvswitch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if there should be some cleanup here in case we set up openvswitch_builtin
in daemon.start
, then installed and uninstalled MicroOVN.
|
||
if ! test -e /etc/ovn ; then | ||
mkdir /etc/ovn | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<code-golf>
[ -d /etc/ovn ] || mkdir /etc/ovn
</code-golf>
|
||
ln -snf ${SNAP_DATA}/microovn/data/pki/client-cert.pem /etc/ovn/cert_host | ||
ln -snf ${SNAP_DATA}/microovn/data/pki/client-privkey.pem /etc/ovn/key_host | ||
ln -snf ${SNAP_DATA}/microovn/data/pki/cacert.pem /etc/ovn/ovn-central.crt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shellcheck
wants those to be quoted.
#!/bin/sh | ||
|
||
|
||
ln -snf ${SNAP_DATA}/microovn/run/switch /run/openvswitch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing quotes as well.
if [ "${openvswitch_builtin:-"false"}" = "true" ]; then | ||
export OVS_RUNDIR="${SNAP_COMMON}/openvswitch/run/" | ||
( | ||
set -e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm probably missing something but I couldn't find an explanation for having OVS_RUNDIR
set outside that subshell? In fact, I don't understand the purpose of those 2 subshells. If you could shed some light I'd appreciate, thanks.
@masnax are you still working on this? If not please could you close until you get back to it. Ta |
Adds support for the hypothetical
MicroOVN
ovn-conf
slot, which does not yet exist. This will be a draft until it does.