1 # See ovn-controller-vtep(8) for details about ovn-controller-vtep.
3 # You may override the following variables to customize ovn-controller-vtep
6 # OVN_DB - Set this variable to the location of the ovsdb server that is
7 # serving the OVN_Southbound database. See the manpage for
8 # ovn-controller-vtep for more details on the format for the db
11 # VTEP_DB - Set this variable to the location of the ovsdb server that is
12 # serving the hardware_vtep database. See the manpage for
13 # ovn-controller-vtep for more details on the format for the db
16 # To override these variables, you may create a configuration file
17 # in the /etc/systemd/system/ovn-controller-vtep.d/ directory. For example,
18 # you could place the following contents in
19 # /etc/systemd/system/ovn-controller-vtep.d/local.conf:
22 # Environment="OVN_DB=unix:/usr/local/var/run/openvswitch/db.sock" "VTEP_DB=unix:/usr/local/var/run/openvswitch/vtep.sock"
24 # Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-controller-vtep:
26 # OVN_DB="unix:/usr/local/var/run/openvswitch/db.sock"
27 # VTEP_DB="unix:/usr/local/var/run/openvswitch/vtep.sock"
30 Description=OVN VTEP gateway controller daemon
32 Requires=openvswitch.service
33 After=openvswitch.service
37 PIDFile=/var/run/openvswitch/ovn-controller-vtep.pid
39 Environment=OVN_DB=unix:%t/openvswitch/ovnsb_db.sock
40 Environment=VTEP_DB=unix:%t/openvswitch/db.sock
41 EnvironmentFile=-/etc/sysconfig/ovn-controller-vtep
42 EnvironmentFile=/run/openvswitch.useropts
43 ExecStart=/usr/share/openvswitch/scripts/ovn-ctl \
44 --db-sb-sock=${OVN_DB} --db-sock=${VTEP_DB} \
45 --ovn-user=${OVS_USER_ID} \
47 ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller_vtep
50 WantedBy=multi-user.target