Skip to content

Commit

Permalink
update Capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
airlenet committed Jan 16, 2021
1 parent 7f2cfa9 commit c12c636
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions yang-jnc/src/main/java/com/tailf/jnc/Capabilities.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.tailf.jnc;

import java.util.ArrayList;
import java.util.List;

public class Capabilities {

Expand Down Expand Up @@ -447,6 +448,7 @@ public String getRevision(String uri) {
}
return null;
}

public Capa getCapa(String uri) {
for (Capa capa : data_capas) {
if (capa.uri.equals(uri)) {
Expand All @@ -455,4 +457,11 @@ public Capa getCapa(String uri) {
}
return null;
}

public List<Capa> getCapas() {
return capas;
}
public List<Capa> getDataCapas() {
return data_capas;
}
}

0 comments on commit c12c636

Please sign in to comment.