Skip to content

Commit e5f4a84

Browse files
Merge pull request #90 from cisco-system-traffic-generator/port-systeminfo
add get methods on Port and SystemInfo
2 parents 9d3aa7b + eea838e commit e5f4a84

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

src/main/java/com/cisco/trex/stateless/model/Port.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,30 @@ public class Port {
1919
public String src_macaddr;
2020
public List<Integer> supp_speeds;
2121

22+
public String getDescription() {
23+
return description;
24+
}
25+
26+
public String getDriver() {
27+
return driver;
28+
}
29+
30+
public String getHwMac() {
31+
return hw_mac;
32+
}
33+
34+
public String getDstMac() {
35+
return dst_macaddr;
36+
}
37+
2238
public int getIndex() {
2339
return index;
2440
}
2541

42+
public List<Integer> getSupportedSpeeds() {
43+
return supp_speeds;
44+
}
45+
2646
class RxStats {
2747
public Integer counters;
2848
public List<PortCapability> caps;

src/main/java/com/cisco/trex/stateless/model/SystemInfo.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,24 @@ public SystemInfo(
2828
public List<Port> getPorts() {
2929
return ports;
3030
}
31+
32+
public String getCoreType() {
33+
return core_type;
34+
}
35+
36+
public String getHostname() {
37+
return hostname;
38+
}
39+
40+
public int getCoreCount() {
41+
return dp_core_count;
42+
}
43+
44+
public int getCoreCountPerPort() {
45+
return dp_core_count_per_port;
46+
}
47+
48+
public int getPortCount() {
49+
return port_count;
50+
}
3151
}

0 commit comments

Comments
 (0)