docs: def add_ovsbridge_linuxbridge(name, bridge):
      ''' Add linux bridge to the named openvswitch bridge
      :param name: Name of ovs bridge to be added to Linux bridge
      :param bridge: Name of Linux bridge to be added to ovs bridge
      :returns: True if veth is added between ovs bridge and linux bridge,
      False otherwise'''
      try:
          import netifaces
      except ImportError:
          if six.PY2:
              apt_install('python-netifaces', fatal=True)
          else:
              apt_install('python3-netifaces', fatal=True)
          import netifaces
  
      # NOTE(jamespage):
      # Older code supported addition of a linuxbridge directly
      # to an OVS bridge; ensure we don't break uses on upgrade
      existing_ovs_bridge = port_to_br(bridge)
      if existing_ovs_bridge is not None:
          log('Linuxbridge {} is already directly in use'
              ' by OVS bridge {}'.format(bridge, existing_ovs_bridge),
              level=INFO)
          return
  
      # NOTE(jamespage):
      # preserve existing naming because interfaces may already exist.
      ovsbridge_port = "veth-" + name
      linuxbridge_port = "veth-" + bridge
      if (len(ovsbridge_port) > MAX_KERNEL_INTERFACE_NAME_LEN or
              len(linuxbridge_port) > MAX_KERNEL_INTERFACE_NAME_LEN):
          # NOTE(jamespage):
          # use parts of hashed bridgename (openstack style) when
          # a bridge name exceeds 15 chars
          hashed_bridge = hashlib.sha256(bridge.encode('UTF-8')).hexdigest()
          base = '{}-{}'.format(hashed_bridge[:8], hashed_bridge[-2:])
          ovsbridge_port = "cvo{}".format(base)
          linuxbridge_port = "cvb{}".format(base)
  
      interfaces = netifaces.interfaces()
      for interface in interfaces:
          if interface == ovsbridge_port or interface == linuxbridge_port:
              log('Interface {} already exists'.format(interface), level=INFO)
              return
  
      log('Adding linuxbridge {} to ovsbridge {}'.format(bridge, name),
          level=INFO)
  
      check_for_eni_source()
  
      with open('/etc/network/interfaces.d/{}.cfg'.format(
              linuxbridge_port), 'w') as config:
          config.write(BRIDGE_TEMPLATE.format(linuxbridge_port=linuxbridge_port,
                                              ovsbridge_port=ovsbridge_port,
                                              bridge=bridge))
  
      subprocess.check_call(["ifup", linuxbridge_port])
      add_bridge_port(name, linuxbridge_port)