Search in sources :

Example 1 with ManagerOtherConfigsBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder in project netvirt by opendaylight.

the class TestBuilders method buildOtherConfig.

public static ManagerOtherConfigs buildOtherConfig(String key, String val) {
    ManagerOtherConfigsBuilder otherConfigsBuilder = new ManagerOtherConfigsBuilder();
    ManagerOtherConfigsKey managerOtherConfigsKey = new ManagerOtherConfigsKey(key);
    otherConfigsBuilder.setKey(managerOtherConfigsKey);
    otherConfigsBuilder.setOtherConfigKey(key);
    otherConfigsBuilder.setOtherConfigValue(val);
    return otherConfigsBuilder.build();
}
Also used : ManagerOtherConfigsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder) ManagerOtherConfigsKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsKey)

Example 2 with ManagerOtherConfigsBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder in project netvirt by opendaylight.

the class HwvtepHAUtil method getOtherConfigBuilder.

/**
 * Build other config data for HA node .
 *
 * @param key The key as in HA child device other config
 * @param val The value as in HA child device other config
 * @return return other config object
 */
public static ManagerOtherConfigsBuilder getOtherConfigBuilder(String key, String val) {
    ManagerOtherConfigsBuilder otherConfigsBuilder = new ManagerOtherConfigsBuilder();
    ManagerOtherConfigsKey otherConfigsKey = new ManagerOtherConfigsKey(key);
    otherConfigsBuilder.setKey(otherConfigsKey);
    otherConfigsBuilder.setOtherConfigKey(key);
    otherConfigsBuilder.setOtherConfigValue(val);
    return otherConfigsBuilder;
}
Also used : ManagerOtherConfigsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder) ManagerOtherConfigsKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsKey)

Aggregations

ManagerOtherConfigsBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder)2 ManagerOtherConfigsKey (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsKey)2