HPENetworking/topology

Attribute injection on wrong nodes

saenzpa opened this issue · 1 comments

Used the following attribute injector file:

*****************************************************************
[
    {
        "files": ["/pnb/software/at/sand00/saenzpa/repos/openswitch_tests/test/lacp/*"],
        "modifiers": [
            {
                "nodes": ["type=openswitch"],
                "attributes": {
                    "image": "onie-installer-x86_64-as5712_54x-0.2.0-rc0+2016012518"
                }
            }
        ]
    }
]
*******************************************************************

The logicalXML file generated had the attirbute injected to the wrong (type=host) nodes.

<?xml version="1.0" ?>
<topology version="3">
        <device group="NULL" name="dut01" target="true">
                <attribute name="system-category" value="switch"/>
                <attribute name="system-family" value="AS5712"/>
        </device>
        <device group="NULL" name="dut02" target="true">
                <attribute name="system-category" value="switch"/>
                <attribute name="system-family" value="AS5712"/>
        </device>
        <device group="NULL" name="wrkston01" target="false">
                <attribute name="system-category" value="workstation"/>
                <attribute name="system-profile" value="onie-installer-x86_64-as5712_54x-0.2.0-rc0+2016012518"/>
        </device>
        <device group="NULL" name="wrkston02" target="false">
                <attribute name="system-category" value="workstation"/>
                <attribute name="system-profile" value="onie-installer-x86_64-as5712_54x-0.2.0-rc0+2016012518"/>
        </device>
        <link device1="wrkston01" device2="dut01" name="lnk01" rate="any"/>
        <link device1="dut01" device2="dut02" name="lnk02" rate="any"/>
        <link device1="dut01" device2="dut02" name="lnk03" rate="any"/>
        <link device1="dut02" device2="wrkston02" name="lnk04" rate="any"/>
</topology>

Please add the SZN string for this test case.