aboutsummaryrefslogtreecommitdiff
path: root/emulators/py-nova/files/03-nova-conf.patch
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2016-12-18 06:30:58 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2016-12-18 06:30:58 +0000
commitb7e05e4ed3928fc8ebd300f9308fc2ea3555495a (patch)
tree55bfb76270b1d02dea6f42d78e0c7b0c20fe637d /emulators/py-nova/files/03-nova-conf.patch
parent570d3f1ea4bd779da320d83c349699519a4292d2 (diff)
downloadports-b7e05e4ed3928fc8ebd300f9308fc2ea3555495a.tar.gz
ports-b7e05e4ed3928fc8ebd300f9308fc2ea3555495a.zip
Notes
Diffstat (limited to 'emulators/py-nova/files/03-nova-conf.patch')
-rw-r--r--emulators/py-nova/files/03-nova-conf.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/emulators/py-nova/files/03-nova-conf.patch b/emulators/py-nova/files/03-nova-conf.patch
new file mode 100644
index 000000000000..8aa0edb08c87
--- /dev/null
+++ b/emulators/py-nova/files/03-nova-conf.patch
@@ -0,0 +1,51 @@
+diff --git a/nova/conf/network.py b/nova/conf/network.py
+index 3bb4cd9..eb57041 100644
+--- a/nova/conf/network.py
++++ b/nova/conf/network.py
+@@ -704,6 +704,30 @@ Related options:
+ """),
+ ]
+
++freebsd_net_opts = [
++ cfg.StrOpt("freebsdnet_interface_driver",
++ default="nova.network.freebsd.FreeBSDBridgeInterfaceDriver",
++ help="""
++This is the class used as the ethernet device driver for freebsdnet bridge
++operations. The default value should be all you need for most cases, but if you
++wish to use a customized class, set this option to the full dot-separated
++import path for that class.
++
++Possible values:
++
++ Any string representing a dot-separated class path that Nova can import.
++"""),
++ cfg.StrOpt("freebsdnet_ovs_integration_bridge",
++ default="br-int",
++ help="""
++The name of the Open vSwitch bridge that is used with freebsdnet when connecting
++with Open vSwitch."
++
++Possible values:
++
++ Any string representing a valid bridge name.
++"""),
++]
+
+ ldap_dns_opts = [
+ cfg.StrOpt('ldap_dns_url',
+@@ -766,12 +790,13 @@ by using this option.
+ 'some rpc network calls will be sent directly to host.'),
+ ]
+
+-ALL_DEFAULT_OPTS = (linux_net_opts + network_opts + ldap_dns_opts
++ALL_DEFAULT_OPTS = (linux_net_opts + freebsd_net_opts + network_opts + ldap_dns_opts
+ + rpcapi_opts + driver_opts)
+
+
+ def register_opts(conf):
+ conf.register_opts(linux_net_opts)
++ conf.register_opts(freebsd_net_opts)
+ conf.register_opts(network_opts)
+ conf.register_opts(ldap_dns_opts)
+ conf.register_opts(driver_opts)
+