func NewBridges(n uint32, machine string) []Bridge {
	var bridges []Bridge
	var bt bridgeType
	switch machine {
	case QemuQ35:
		fallthrough
	case QemuPC:
		bt = pciBridge
	default:
		return nil
	}
	for i := uint32(0); i < n; i++ {
		bridges = append(bridges, Bridge{
			Type:    bt,
			ID:      fmt.Sprintf("%s-bridge-%d", bt, i),
			Address: make(map[uint32]string),
		})
	}
	return bridges
}
NewBridges creates n new pci(e) bridges depending of the machine type
package virtcontainers
import "fmt"
type bridgeType string
const (
	pciBridge  bridgeType = "pci"
	pcieBridge            = "pcie"
)
const pciBridgeMaxCapacity = 30
type Bridge struct {
	Address map[uint32]string
	Type bridgeType
	ID string
}