1. 21 2月, 2020 4 次提交
    • L
      conf: extra validation for <port isolated='yes'/> · ef8de28c
      Laine Stump 提交于
      During the hypervisor-agnostic validation of network devices, verify
      that the interface type is either "network" or "bridge", and that if
      there is any <virtualport>, that it doesn't have any type associated
      with it.
      
      This needs to be done both for the parse-time validation and for
      runtime validation (after a port has been acquired from any associated
      network), because an interface with type='network' could have an
      actual type at runtime of "hostdev" or "direct", neither of which
      support isolated='true' (yet). Likewise, if an interface is
      type='network', then at runtime a <virtualport> with a type that
      doesn't support isolated='yes' (e.g. "openvswitch", "802.1Qbh" -
      currently *none* of the available virtualport types support it)
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      ef8de28c
    • L
      qemu/lxc: plumb isolatedPort from config down through bridge attachment · 2b8fd733
      Laine Stump 提交于
      This patch pushes the isolatedPort setting from the <interface> down
      all the way to the callers of virNetDevBridgeAddPort(), and sets
      BR_ISOLATED on the port (using virNetDevBridgePortSetIsolated()) after
      the port has been successfully added to the bridge.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      2b8fd733
    • L
      network: propagate <port isolated='yes'/> between network and domain · de7c347d
      Laine Stump 提交于
      Similar to the way that the <vlan>, <bandwidth>, and <virtualport>
      elements and the trustGuestRxFilters attribute in a <network> (or in
      the appropriate <portgroup> element of a <network> can be applied to a
      port when it is allocated for a domain's network interface, this patch
      checks for a configured value of <port isolated="yes|no"/> in
      either the domain <interface> or in the network, setting isolatedPort
      in the <networkport> to the first one it finds (the setting from the
      domain's <interface> is preferred). This, in turn, is passed back to
      the domain when a port is allocated, so that the domain will use that
      setting.
      
      (One difference from <vlan>, <bandwidth>, <virtualport>, and
      trustGuestRxFilters, is that all of those can be set in a <portgroup>
      so that they can be applied only to a subset of interfaces connected
      to the network. This didn't really make sense for the isolated setting
      due to the way that it's implemented in Linux - the BR_ISOLATED flag
      will prevent traffic from passing between two ports that both have
      BR_ISOLATED set, but traffic can still go between those ports and
      other ports that *don't* have BR_ISOLATED. (It would be nice if all
      traffic from a BR_ISOLATED port could be blocked except traffic going
      to/from a designated egress port or ports, but instead the entire
      feature is implemented as a single flag. Because of this, it's really
      only useful if all the ports on a network are isolated, so setting it
      for a subset has no practical utility.)
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      de7c347d
    • L
      conf: parse/format <port isolated='yes|no'/> · 31d95b18
      Laine Stump 提交于
      This is a very simple thing to parse and format, but needs to be done
      in 4 places, so two trivial utility functions have been made that can
      be called from all the higher level parser/formatters:
      
        <domain><interface>
        <domain><interface><actual> (only in domain status)
        <network>
        <networkport>
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      31d95b18
  2. 14 2月, 2020 2 次提交
  3. 11 2月, 2020 9 次提交
  4. 06 2月, 2020 2 次提交
  5. 05 2月, 2020 2 次提交
  6. 04 2月, 2020 1 次提交
  7. 30 1月, 2020 2 次提交
    • J
      Add a space before ending a comment · 49882b33
      Ján Tomko 提交于
      Also add a space after the start in some of the cases.
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      49882b33
    • L
      conf: parse/format <teaming> subelement of <interface> · fb0509d0
      Laine Stump 提交于
      The subelement <teaming> of <interface> devices is used to configure a
      simple teaming association between two interfaces in a domain. Example:
      
        <interface type='bridge'>
          <source bridge='br0'/>
          <model type='virtio'/>
          <mac address='00:11:22:33:44:55'/>
          <alias name='ua-backup0'/>
          <teaming type='persistent'/>
        </interface>
        <interface type='hostdev'>
          <source>
            <address type='pci' bus='0x02' slot='0x10' function='0x4'/>
          </source>
          <mac address='00:11:22:33:44:55'/>
          <teaming type='transient' persistent='ua-backup0'/>
        </interface>
      
      The interface with <teaming type='persistent'/> is assumed to always
      be present, while the interface with type='transient' may be be
      unplugged and later re-plugged; the persistent='blah' attribute (and
      in the one currently available implementation, also the matching MAC
      addresses) is what associates the two devices with each other. It is
      up to the hypervisor and the guest network drivers to determine what
      to do with this information.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      fb0509d0
  8. 29 1月, 2020 3 次提交
  9. 28 1月, 2020 3 次提交
  10. 25 1月, 2020 1 次提交
  11. 23 1月, 2020 1 次提交
  12. 17 1月, 2020 1 次提交
  13. 16 1月, 2020 2 次提交
  14. 13 1月, 2020 2 次提交
  15. 08 1月, 2020 2 次提交
  16. 07 1月, 2020 3 次提交