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);
}