<!--
  -- Ethernet Service definition
  -->
<service name="ethernet" interface="org.opensuse.Network.Ethernet" object-class="netif-ethernet">
  <define name="configuration" class="dict">
    <address type="ethernet-address"/>
  </define>

  <define name="properties" class="dict" extends="ethernet:configuration">
    <permanent-address type="ethernet-address"/>
  </define>

  <method name="changeDevice">
    <arguments>
      <!-- First and only argument to changeDevice() method is a
        -- "properties" dict.
        -- The mapping info tells the client to take the device
	-- configuration from the <ethernet> element, and to skip the
	-- call to changeDevice() if that element isn't there.
	-->
      <config type="ethernet:configuration">
       <meta:mapping document-node="/ethernet" skip-unless-present="true" />
      </config>
    </arguments>
  </method>
</service>

