Jump to: navigation, search

SNMP4SDN:snmp4sdn VendorSpecificSwitchConfig file

Please modify the following content and save as a file at /etc/snmp4sdn_VendorSpecificSwitchConfig.xml. Two example switches are in this sample. Currently SNMP4SDN Plugin just proposes a prototype of vendor-specific configuration support, only the "add VLAN and set ports" is implemented. More functions support are TBD.

<VsConfig>

<SwitchConfig>
    <model>D-Link_DGS-3650</model>

    <!--add_vlan_and_set_port-->
    <FunctionConfig>
        <function_name>add_vlan_and_set_port</function_name>
        <channel>snmp</channel>
        <commands_with_items_in_order>
            <command>${vlan_name}$${egress_ports}$${untagged_ports}$${vlan_create}$</command>
        </commands_with_items_in_order>
    </FunctionConfig>
</SwitchConfig>

<SwitchConfig>
    <model>Accton_XXXX</model>

    <FunctionConfig>
        <function_name>add_vlan_and_set_port</function_name>
        <channel>snmp</channel>
        <commands_with_items_in_order>
            <!--two commands in order: create vlan first, then set parameters-->
            <command>${vlan_create}$</command>
            <command>${vlan_name}$${egress_ports}$${untagged_ports}$</command>
        </commands_with_items_in_order>
    </FunctionConfig>

</SwitchConfig>

</VsConfig>