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 d1319d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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,12 +448,11 @@ public String getRevision(String uri) {
}
return null;
}
public Capa getCapa(String uri) {
for (Capa capa : data_capas) {
if (capa.uri.equals(uri)) {
return capa;
}
}
return null;

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

0 comments on commit d1319d8

Please sign in to comment.