[Ovirt-devel] Re: Ovirt-qpid API

Ian Main imain at redhat.com
Wed Oct 22 17:36:38 UTC 2008


OK, here's another go around at this.  This has all the bells and whistles for network config.  Please take a moment to go through it and make sure I've done this properly.

BTW, the UUID from hal is in there so that we can map this host to the host in libvirt.  Hopefully they will always be the same.  Xen doesn't mess with this does it in dom0?

Thanks!

	Ian


<schema package="com.redhat.OvirtNode">

  <class name="OvirtNode">
    <property name="uuid" type="sstr" access="RC" desc="hostname UUID as gathered from HAL."/>
    <property name="hostname" type="sstr" access="RC" desc="host name"/>

    <property name="defaultGateway" type="sstr" desc="Default gateway."/>
    <property name="default6Gateway" type="sstr" desc="Default IPv6 gateway."/>

    <property name="beeping" type="bool" desc="true/false to invoke beeping of machine (for identifying system)"/>

    <method name="hardwareShutdown" desc="Bring down host and halt machine."/>
    <method name="hardwareRestart" desc="Bring down host and restart."/>

    <method name="createBondingInterface"/>
      <arg name="interfaceName" dir="I" type="sstr" desc="Name of new interface"/>
      <arg name="interface" dir="O" type="objId" desc="New bonding interface"/>
    </method>

    <method name="createBridgingInterface"/>
      <arg name="interfaceName" dir="I" type="sstr" desc="Name of new interface."/>
      <arg name="interface" dir="O" type="objId" desc="New bridging interface."/>
    </method>
    
    <method name="createVLANInterface"/>
      <arg name="interfaceName" dir="I" type="sstr" desc="Name of raw device interface."/>
      <arg name="vlanId" dir="I" type="uint64" desc="VLAN ID."/>
      <arg name="interface" dir="O" type="objId" desc="New VLAN interface"/>
    </method>

    <method name="reloadNetwork" desc="Reload network config to let changes take effect."/>

  </class>

  <class name="IpAddress">
    <property name="ip" type="sstr" desc="IP address."/>
    <property name="prefix" type="uint32" desc="Prefix/netmask."/>
    <property name="broadcast" type="sstr" desc="Broadcast."/>
    <property name="interface" type="objId" desc="Interface to which this address belongs"/>
  </class>

  <class name="Ip6Address">
    <property name="ip" type="sstr" desc="IPv6 address."/>
    <property name="prefix" type="uint32" desc="Prefix."/>
    <property name="interface" type="objId" desc="Interface to which this address belongs"/>
  </class>

  <class name="NetworkInterface">
    <property name="OvirtNode" type="objId" references="ovirtNode" access="RC" index="y" parentRef="y" desc="Keep track of hardware node these interfaces belong to."/>
    <property name="interfaceName" type="sstr" access="RC" desc="Network interface name."/>
    <property name="dhcp" type="bool" desc="true/false - use DHCP for interface.  If false properties will be saved and restored for static IP."/>
    <property name="enableIPv6" type="bool" desc="true/false - enable IPv6 on interface."/>
    <property name="dhcp6" type="bool" desc="true/false - use DHCP for IPv6 on interface."/>
    <property name="speed" type="uint32" desc="link speed."/>
    <property name="mac" type="uint64" desc="MAC address."/>
    <property name="master" type="objId" desc="Master device interface for bonding or bridging."/>
    <property name="blink" type="bool" desc="True/false to invoke blinking of ethernet light (for identifying interface)"/>
    
    <method name="restart" desc="Restart the interface to allow changes to properties to take effect."/>
  </class>
  
  <class name="BondInterface">
    <property name="OvirtNode" type="objId" references="ovirtNode" access="RC" index="y" parentRef="y" desc="Keep track of hardware node these interfaces belong to."/>
    <property name="interfaceName" type="sstr" access="RC" desc="Network interface name."/>
    <property name="bondingMode" type="uint32" desc="Bonding mode"/>
    <property name="dhcp" type="bool" desc="true/false - use DHCP for interface.  If false properties will be saved and restored for static IP."/>
    <property name="enableIPv6" type="bool" desc="true/false - enable IPv6 on interface."/>
    <property name="dhcp6" type="bool" desc="true/false - use DHCP for IPv6 on interface."/>
    <property name="mac" type="uint64" desc="MAC address."/>
    <property name="master" type="objId" desc="Master device interface name."/>
    <method name="restart" desc="Restart the interface to allow changes to properties to take effect."/>
  </class>

  <class name="BridgeInterface">
    <property name="OvirtNode" type="objId" references="ovirtNode" access="RC" index="y" parentRef="y" desc="Keep track of hardware node these interfaces belong to."/>
    <property name="interfaceName" type="sstr" access="RC" desc="Network interface name."/>
    <property name="dhcp" type="bool" desc="true/false - use DHCP for interface.  If false properties will be saved and restored for static IP."/>
    <property name="enableIPv6" type="bool" desc="true/false - enable IPv6 on interface."/>
    <property name="dhcp6" type="bool" desc="true/false - use DHCP for IPv6 on interface."/>
    <property name="mac" type="uint64" desc="MAC address."/>
    <property name="master" type="objId" desc="Master device interface name."/>
    <method name="restart" desc="Restart the interface to allow changes to properties to take effect."/>
  </class>
  
  <class name="VLANInterface">
    <property name="OvirtNode" type="objId" references="ovirtNode" access="RC" index="y" parentRef="y" desc="Keep track of hardware node these interfaces belong to."/>
    <property name="interfaceName" type="sstr" access="RC" desc="Network interface name."/>
    <property name="vlanId" type="uint64" access="RC" desc="VLAN ID"/>
    <property name="dhcp" type="bool" desc="true/false - use DHCP for interface.  If false properties will be saved and restored for static IP."/>
    <property name="enableIPv6" type="bool" desc="true/false - enable IPv6 on interface."/>
    <property name="dhcp6" type="bool" desc="true/false - use DHCP for IPv6 on interface."/>
    <property name="mac" type="uint64" desc="MAC address."/>
    <property name="master" type="objId" desc="Master device interface name."/>
    <method name="restart" desc="Restart the interface to allow changes to properties to take effect."/>
  </class>
</schema>
    




More information about the ovirt-devel mailing list