Example for libvirt networks based on existing bridges (docstring)

Change-Id: I40f839e74a8d366841c3a3a5f66f91639e8b43f8
This commit is contained in:
Dennis Dmitriev 2017-03-07 13:26:17 +02:00
parent 80a7d51598
commit cbcfcf5dab
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()