当前位置: 首页>>代码示例>>Java>>正文


Java NeutronPort.setTenantID方法代码示例

本文整理汇总了Java中org.opendaylight.controller.networkconfig.neutron.NeutronPort.setTenantID方法的典型用法代码示例。如果您正苦于以下问题:Java NeutronPort.setTenantID方法的具体用法?Java NeutronPort.setTenantID怎么用?Java NeutronPort.setTenantID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opendaylight.controller.networkconfig.neutron.NeutronPort的用法示例。


在下文中一共展示了NeutronPort.setTenantID方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: defaultNeutronPortObject

import org.opendaylight.controller.networkconfig.neutron.NeutronPort; //导入方法依赖的package包/类
public NeutronPort defaultNeutronPortObject() {
    NeutronPort neutronPort = new NeutronPort();
    neutronPort.setPortUUID("64a271fe-0216-46bc-a3e6-1ff582fbd324");
    neutronPort.setNetworkUUID("54a271fe-0216-46bc-a3e6-1ff582fbd324");
    neutronPort.setMacAddress("02:70:72:93:4d:d6");
    neutronPort.setName("port12");
    neutronPort.setDeviceID("100071fe-0216-46bc-a3e6-1ff582fbd324");
    neutronPort.setTenantID("100071fe-0216-46bc-a3e6-1ff582fbd324");
    List<Neutron_IPs> ips = new ArrayList<Neutron_IPs>();
    ips.add(mockNeutron_IPs);
    neutronPort.setFixedIPs(ips);
    return neutronPort;
}
 
开发者ID:opendaylight,项目名称:archived-plugin2oc,代码行数:14,代码来源:PortHandlerTest.java

示例2: detaNeutronPort

import org.opendaylight.controller.networkconfig.neutron.NeutronPort; //导入方法依赖的package包/类
public NeutronPort detaNeutronPort() {
    NeutronPort dummyNeutronPort = new NeutronPort();
    dummyNeutronPort.setPortUUID("64a271fe-0216-46bc-a3e6-1ff582fbd324");
    dummyNeutronPort.setNetworkUUID("54a271fe-0216-46bc-a3e6-1ff582fbd324");
    dummyNeutronPort.setName("port01");
    dummyNeutronPort.setDeviceID("100071fe-0216-46bc-a3e6-1ff582fbd324");
    dummyNeutronPort.setTenantID("100071fe-0216-46bc-a3e6-1ff582fbd324");
    List<Neutron_IPs> ips = new ArrayList<Neutron_IPs>();
    ips.add(mockNeutron_IPs);
    dummyNeutronPort.setFixedIPs(ips);
    return dummyNeutronPort;
}
 
开发者ID:opendaylight,项目名称:archived-plugin2oc,代码行数:13,代码来源:PortHandlerTest.java

示例3: testCanCreatePortTenantIdNull

import org.opendaylight.controller.networkconfig.neutron.NeutronPort; //导入方法依赖的package包/类
@Test
public void testCanCreatePortTenantIdNull() {
    Activator.apiConnector = mockedApiConnector;
    NeutronPort neutronPort = defaultNeutronPortObject();
    neutronPort.setTenantID(null);
    assertEquals(HttpURLConnection.HTTP_BAD_REQUEST, porthandler.canCreatePort(neutronPort));
}
 
开发者ID:opendaylight,项目名称:archived-plugin2oc,代码行数:8,代码来源:PortHandlerTest.java

示例4: defaultNeutronPortObject

import org.opendaylight.controller.networkconfig.neutron.NeutronPort; //导入方法依赖的package包/类
public NeutronPort defaultNeutronPortObject() {
    NeutronPort neutronPort = new NeutronPort();
    neutronPort.setPortUUID("64a271fe-0216-46bc-a3e6-1ff582fbd324");
    neutronPort.setNetworkUUID("54a271fe-0216-46bc-a3e6-1ff582fbd324");
    neutronPort.setMacAddress("02:70:72:93:4d:d6");
    neutronPort.setName("port12");
    neutronPort.setDeviceID("100071fe-0216-46bc-a3e6-1ff582fbd324");
    neutronPort.setTenantID("001570f2-17b1-4fc3-99ec-1b7f7778a29a");
    List<Neutron_IPs> ips = new ArrayList<Neutron_IPs>();
    ips.add(mockNeutron_IPs);
    neutronPort.setFixedIPs(ips);
    return neutronPort;
}
 
开发者ID:opendaylight,项目名称:archived-plugin2oc,代码行数:14,代码来源:LoadBalancerPoolMemberHandlerTest.java


注:本文中的org.opendaylight.controller.networkconfig.neutron.NeutronPort.setTenantID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。