Search in sources :

Example 1 with PortVlan

use of com.cisco.trex.stateless.model.port.PortVlan in project trex-stateless-gui by cisco-system-traffic-generator.

the class PortsManager method updateModel.

private void updateModel(int portIdx, PortStatus.PortStatusResult portStatus) {
    PortModel model = getPortModel(portIdx);
    String vlan = "";
    PortVlan portVlan = portStatus.getAttr().getVlan();
    List<Integer> vlanIds = portVlan.getTags();
    if (!vlanIds.isEmpty()) {
        vlan = vlanIds.stream().map(String::valueOf).collect(Collectors.joining(" "));
    }
    model.setVlan(vlan);
}
Also used : PortVlan(com.cisco.trex.stateless.model.port.PortVlan) PortModel(com.exalttech.trex.ui.models.PortModel)

Aggregations

PortVlan (com.cisco.trex.stateless.model.port.PortVlan)1 PortModel (com.exalttech.trex.ui.models.PortModel)1