Merge "Example for libvirt networks based on existing bridges (docstring)"

This commit is contained in:
Jenkins 2017-03-09 14:19:49 +00:00 committed by Gerrit Code Review
commit 89e58fcc5c
1 changed files with 25 additions and 2 deletions

View File

@ -396,8 +396,8 @@ class LibvirtL2NetworkDevice(network.L2NetworkDevice):
# to include virbrNN@200 to the current network
# device (linux bridge).
Template example
----------------
Template example for NATed networks
-----------------------------------
# Nodes should have at least two interfaces connected to the following
# L2 networks:
# admin: for admin/PXE network
@ -489,6 +489,29 @@ class LibvirtL2NetworkDevice(network.L2NetworkDevice):
l2_net_dev: openstack_br
tag: 103
Template example for existing bridges
-------------------------------------
l2_network_devices: # Libvirt bridges. It is *NOT* Nailgun networks
admin:
forward:
mode: bridge
parent_iface:
phys_dev: !os_env BAREMETAL_ADMIN_IFACE
public:
forward:
mode: bridge
parent_iface:
phys_dev: !os_env BAREMETAL_PUBLIC_IFACE
private:
forward:
mode: bridge
parent_iface:
phys_dev: !os_env BAREMETAL_PRIVATE_IFACE
Note: This class is imported as L2NetworkDevice at .__init__.py
"""
uuid = base.ParamField()