1. 23 3月, 2015 1 次提交
  2. 17 9月, 2014 1 次提交
  3. 14 8月, 2014 1 次提交
    • J
      Maximum vlanid should be 4095 in interface.rng · 2a8fabba
      Jianwei Hu 提交于
      The correct vlanid range is 0~4095.
      
      After merging this patch, we can not validate a interface xml with vlanid >= 4096.
      [root@localhost ~]# cat vlan.xml
      <interface type='vlan' name='eno1.4096'>
         <start mode='onboot'/>
         <protocol family='ipv4'>
          <dhcp/>
         </protocol>
         <vlan tag='4096'>
           <interface name='eno1'/>
         </vlan>
      </interface>
      [root@localhost ~]# virt-xml-validate vlan.xml
      vlan.xml:1: element interface: Relax-NG validity error : Invalid sequence in interleave
      vlan.xml:6: element vlan: Relax-NG validity error : Element interface failed to validate content
      vlan.xml:6: element vlan: Relax-NG validity error : Element vlan failed to validate attributes
      vlan.xml fails to validate
      [root@localhost ~]#
      
      Here is a ip command help on this.
      [root@localhost /]# ip link add link eno1 name eno1.90 type vlan help
      Usage: ... vlan [ protocol VLANPROTO ] id VLANID                [ FLAG-LIST ]
                      [ ingress-qos-map QOS-MAP ] [ egress-qos-map QOS-MAP ]
      
      VLANPROTO: [ 802.1Q / 802.1ad ]
      VLANID := 0-4095
      FLAG-LIST := [ FLAG-LIST ] FLAG
      FLAG := [ reorder_hdr { on | off } ] [ gvrp { on | off } ] [ mvrp { on | off } ]
              [ loose_binding { on | off } ]
      QOS-MAP := [ QOS-MAP ] QOS-MAPPING
      QOS-MAPPING := FROM:TO
      2a8fabba
  4. 20 6月, 2014 1 次提交
    • L
      interface: report link state for bonds and vlans too · 69db5f92
      Laine Stump 提交于
      The interface state for bonds and vlans does seem to reflect the state
      of the underlying physical devices, at least in some cases, so it
      makes sense to allow reporting it (netcf now does).
      
      The link state/speed for bridge devices is meaningless though, so we
      don't even look for it.
      69db5f92
  5. 19 6月, 2014 1 次提交
    • L
      interface: allow reordering of elements in xml · a341fc73
      Laine Stump 提交于
      The interface xml schema was written with strict rules about the
      ordering of the elements. This was never intentional, but just due to
      omission of <interleave> in the appropriate places. This patch just
      adds in <interleave> wherever there is more than one element, and
      re-indents everything else appropriately.
      a341fc73
  6. 11 6月, 2014 1 次提交
    • M
      virInterface: Expose link state & speed · 3db89662
      Michal Privoznik 提交于
      Currently it is not possible to determine the speed of an interface
      and whether a link is actually detected from the API. Orchestrating
      platforms want to be able to determine when the link has failed and
      where multiple speeds may be available which one the interface is
      actually connected at. This commit introduces an extension to our
      interface XML (without implementation to interface driver backends):
      
        <interface type='ethernet' name='eth0'>
          <start mode='none'/>
          <mac address='aa:bb:cc:dd:ee:ff'/>
          <link speed='1000' state='up'/>
          <mtu size='1492'/>
          ...
        </interface>
      
      Where @speed is negotiated link speed in Mbits per second, and state
      is the current NIC state (can be one of the following:  "unknown",
      "notpresent", "down", "lowerlayerdown","testing", "dormant", "up").
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      3db89662
  7. 08 3月, 2012 1 次提交
  8. 06 7月, 2011 1 次提交
    • L
      xml: create an RNG file for common types and move some definitions there · 0c97dc41
      Laine Stump 提交于
      domain.rng, network.rng, and interface.rng already use a few of the
      same types (or in some cases *should* but don't), and an upcoming code
      change will have them sharing even more. To prepare for that, this
      patch takes those common data type definitions and moves them into
      basictypes.rng.
      
      This may break some rule about the need to RNG files to be autonomous
      or something, but I saw that storageencryption.rng is used in this
      way, so I figured it must not be completely against the law...
      0c97dc41
  9. 16 11月, 2010 2 次提交
  10. 20 1月, 2010 1 次提交
  11. 16 7月, 2009 1 次提交
    • D
      Add netcf XML schemas and test data · 19e57fd9
      Daniel Veillard 提交于
      * docs/schemas/interface.rng: schemas for the interface XML files
        directly imported from netcf-0.1.0
      * tests/interfaceschemadata/*.xml: set of test files from netcf-0.1.0
        changed to use single quote instead of double quote
      19e57fd9