<?xml version="1.0"?>
<!DOCTYPE topology SYSTEM "/usr/share/lib/xml/dtd/digraph-topology.dtd.1">

<!--
  Copyright 2020 Joyent, Inc.

  This XML represents a directed graph that looks like the following:

                           |===> node=2 ===
                           |               |
    node=0 ====> node=1 ===                |===> node=4 ==
                           |               |              |
                           |===> node=3 ===               |
                                  ^  ^                    |
    node=5                        |  |                    |
                                  |  |                    |
    node=6 =======================   ======================

-->

<topo-digraph fmri-scheme='hc' nodename='test-nodename' os-version='test-os-version' product-id='test-product-id' timestamp='2019-12-20T01:51:26Z'>
<vertices>
<vertex name='node' instance='0x0' fmri='hc:///node=0'>

  <nvpair name='property-groups' type='nvlist-array'>
    <nvlist>
      <nvpair name='property-group-name' type='string' value='test-pg-1' />
      <nvpair name='property-values' type='nvlist-array'>

        <nvlist>
          <nvpair name='property-name' type='string' value='string-prop' />
          <nvpair name='property-type' type='uint32' value='6' />
          <nvpair name='property-value' type='string' value='blahblahblah' />
        </nvlist>

        <nvlist>
          <nvpair name='property-name' type='string' value='uint64-array-prop' />
          <nvpair name='property-type' type='uint32' value='13' />
          <nvpair name='property-value' type='uint64-array'>
            <nvpair value='0x1' />
            <nvpair value='0x2' />
          </nvpair>
        </nvlist>

        <nvlist>
          <nvpair name='property-name' type='string' value='int64-array-prop' />
          <nvpair name='property-type' type='uint32' value='12' />
          <nvpair name='property-value' type='int64-array'>
            <nvpair value='1' />
            <nvpair value='2' />
          </nvpair>
        </nvlist>

        <nvlist>
          <nvpair name='property-name' type='string' value='uint32-array-prop' />
          <nvpair name='property-type' type='uint32' value='11' />
          <nvpair name='property-value' type='uint32-array'>
            <nvpair value='1' />
            <nvpair value='2' />
          </nvpair>
        </nvlist>

        <nvlist>
          <nvpair name='property-name' type='string' value='int32-array-prop' />
          <nvpair name='property-type' type='uint32' value='10' />
          <nvpair name='property-value' type='int32-array'>
            <nvpair value='1' />
            <nvpair value='2' />
          </nvpair>
        </nvlist>

        <nvlist>
          <nvpair name='property-name' type='string' value='uint64-prop' />
          <nvpair name='property-type' type='uint32' value='5' />
          <nvpair name='property-value' type='uint64' value='0x5003048023567a00' />
        </nvlist>

        <nvlist>
          <nvpair name='property-name' type='string' value='uint32-prop' />
          <nvpair name='property-type' type='uint32' value='3' />
          <nvpair name='property-value' type='uint32' value='1' />
        </nvlist>

      </nvpair> <!-- property-values -->
    </nvlist>
    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='0' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>

  </nvpair> <!-- property-groups -->
  <outgoing-edges>
    <edge fmri='hc:///node=1' />
  </outgoing-edges>

</vertex>

<vertex name='node' instance='0x1' fmri='hc:///node=1'>

  <nvpair name='property-groups' type='nvlist-array'>

    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='1' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>
  </nvpair> <!-- property-groups -->
  <outgoing-edges>
    <edge fmri='hc:///node=2' />
    <edge fmri='hc:///node=3' />
  </outgoing-edges>

</vertex>

<vertex name='node' instance='0x2' fmri='hc:///node=2'>

  <nvpair name='property-groups' type='nvlist-array'>

    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='2' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>

  </nvpair> <!-- property-groups -->
  <outgoing-edges>
    <edge fmri='hc:///node=4' />
  </outgoing-edges>

</vertex>

<vertex name='node' instance='0x3' fmri='hc:///node=3'>

  <nvpair name='property-groups' type='nvlist-array'>

    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='3' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>

  </nvpair> <!-- property-groups -->
  <outgoing-edges>
    <edge fmri='hc:///node=4' />
  </outgoing-edges>

</vertex>

<vertex name='node' instance='0x4' fmri='hc:///node=4'>

  <nvpair name='property-groups' type='nvlist-array'>
    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='4' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>

  </nvpair> <!-- property-groups -->
  <outgoing-edges>
    <edge fmri='hc:///node=3' />
  </outgoing-edges>

</vertex>

<vertex name='node' instance='0x5' fmri='hc:///node=5'>

  <nvpair name='property-groups' type='nvlist-array'>
    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='5' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>

  </nvpair> <!-- property-groups -->

</vertex>

<vertex name='node' instance='0x6' fmri='hc:///node=6'>

  <nvpair name='property-groups' type='nvlist-array'>
    <nvlist>
      <nvpair name='property-group-name' type='string' value='protocol' />
      <nvpair name='property-values' type='nvlist-array'>
        <nvlist>
          <nvpair name='property-name' type='string' value='resource' />
          <nvpair name='property-type' type='uint32' value='9' />
          <nvpair name='property-value' type='nvlist'>
            <nvlist>
              <nvpair name='scheme' type='string' value='hc' />
              <nvpair name='version' type='uint8' value='0' />
              <nvpair name='hc-list' type='nvlist-array'>
                <nvlist>
                  <nvpair name='hc-name' type='string' value='node' />
                  <nvpair name='hc-id' type='string' value='6' />
                </nvlist>
              </nvpair>
            </nvlist>
          </nvpair> <!-- property-value -->
        </nvlist>
      </nvpair> <!-- property-values -->
    </nvlist>

  </nvpair> <!-- property-groups -->
  <outgoing-edges>
    <edge fmri='hc:///node=3' />
  </outgoing-edges>

</vertex>

</vertices>
</topo-digraph>
