Skip to content

Commit 40e86df

Browse files
committed
update L2Configuration&L3Configuration
-bugfix: incorrect attribute name "status" in L2Configuration -add getState method in L3Configuration Signed-off-by: Leo Ma <[email protected]>
1 parent 79bded4 commit 40e86df

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
@JsonIgnoreProperties(ignoreUnknown = true)
77
public class L2Configuration {
8+
89
@JsonProperty("dst")
910
private String dst;
1011

1112
@JsonProperty("src")
1213
private String src;
1314

14-
@JsonProperty("status")
15+
@JsonProperty("state")
1516
private String state;
1617

1718
@JsonProperty("dst")
@@ -34,13 +35,13 @@ public void setSrc(String src) {
3435
this.src = src;
3536
}
3637

37-
@JsonProperty("status")
38-
public String getStatus() {
38+
@JsonProperty("state")
39+
public String getState() {
3940
return state;
4041
}
4142

42-
@JsonProperty("status")
43-
public void setStatus(String status) {
44-
this.state = status;
43+
@JsonProperty("state")
44+
public void setState(String state) {
45+
this.state = state;
4546
}
4647
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
@JsonIgnoreProperties(ignoreUnknown = true)
77
public class L3Configuration {
8+
89
@JsonProperty("dst")
910
private String dst;
1011

@@ -34,6 +35,11 @@ public void setSrc(String src) {
3435
this.src = src;
3536
}
3637

38+
@JsonProperty("state")
39+
public String getState() {
40+
return state;
41+
}
42+
3743
@JsonProperty("state")
3844
public void setState(String state) {
3945
this.state = state;

0 commit comments

Comments
 (0)