Reference Guide

Table Of Contents
each product in the 5400 product line. The device type J9642A is the 6 slot 5406zl product, and
the J9643A is the 12 slot 5412zl product. For each specific device type the XML file contains the
product description, the SNMP sysObjectId assigned to the device, and Facets that can be used
with this type of device. The XML file may also contain “flags” that define additional information
about the type of device. For example, the 5400.xml file contains a flag indicating 5400
products are chassis products. This information can be used by Facets to allow them to gather
additional information about chassis product.
A key point is that XML files determine what Facets can be used for a specific device type. The
XML files for each level specify what Facets each device type supports. These are interfaces only
so the Applications that need access to a specific device feature will only be using devices that
they know support that feature. For each Facet interface in the XML file, there is also a class name
listed which is the implementation of that Facet for that specific device type. So the 3500.xml and
the 3800.xml both list the FlowMod facet as supported, but each of them gives a different class
name for their implementation. These classes implement the FlowMod Facet in a way that’s
specific for each device type. For example, when working on a 3500, the 3500’s
implementation of the FlowMod Facet is instantiated when the Facet is accessed by an
Application.
Below are parts of the XML files for the 3500 and 3800. Highlighted in red is the Facet Interface
(Facet name) which is the same for both devices. Highlighted in blue is the Facet class which is
different for the two devices.
3500.xml File
<deviceDriver description="HP 3500 Switch">
<type name="3500" extends="HP Switch">
<facet name="com.hp.sdn.dvc.facet.FlowModFacet"
class="com.hp.sdn.dvc.facet.impl.FlowModProVision"/>
<family>ProCurve 3500</family>
<product>3500</product>
</type>
<type name="J8692A" extends="3500" description="Switch 3500yl-24G">
<oid>.1.3.6.1.4.1.11.2.3.7.11.58</oid>
<model>J8692A</model>
<product>Switch 3500yl-24G</product>
</type>
. . . . . . .
</deviceDriver>
3800.xml File
<type name="3800"
extends="HP Switch">
<facet name="com.hp.sdn.dvc.facet.FlowModFacet"
class="com.hp.sdn.dvc.facet.impl.FlowModChassisV2"/>
116