d02fad482d
* The goal of this change is to enable the ability to configure only the VFs that are configured through the charm and not fallback to the blanket configuration. * This python version of the script brings unit-tests that fully covers it. * Move the the template files to `files` and modify `neutron_ovs_utils` accordingly. Closes-Bug: 1832379 Depends-On: https://review.opendev.org/#/c/664837/ Change-Id: I7ad1ebc16883bda23cbad89a852e7e8f88f49c49
20 lines
631 B
Desktop File
20 lines
631 B
Desktop File
[Unit]
|
|
Description=Configure SRIOV Virtual Functions
|
|
DefaultDependencies=no
|
|
Wants=network.target
|
|
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service systemd-modules-load.service
|
|
Before=network.target shutdown.target network-online.target
|
|
Conflicts=shutdown.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
WantedBy=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
EnvironmentFile=-/etc/default/networking-sriov
|
|
ExecStart=/usr/local/bin/neutron-openvswitch-networking-sriov.sh systemd-start
|
|
ExecStop=/usr/local/bin/neutron-openvswitch-networking-sriov.sh systemd-stop
|
|
RemainAfterExit=true
|
|
TimeoutStartSec=5min
|