Search in sources :

Example 1 with Up4Store

use of org.omecproject.up4.impl.Up4Store in project up4 by omec-project.

the class ReadInternalUp4StoreCommand method doExecute.

@Override
protected void doExecute() {
    Up4Service up4Service = get(Up4Service.class);
    Up4Store upfStore = get(Up4Store.class);
    if (up4Service == null) {
        print("Error: Up4Service is null");
        return;
    }
    if (upfStore == null) {
        print("Error: FabricUpfStore is null");
        return;
    }
    Set<Ip4Address> bufferUes = upfStore.getBufferUe();
    print("bufferFarIds size: " + bufferUes.size());
    if (verbose) {
        bufferUes.forEach(ue -> print("UEAddress{" + ue.toString() + "}"));
    }
}
Also used : Up4Service(org.omecproject.up4.Up4Service) Ip4Address(org.onlab.packet.Ip4Address) Up4Store(org.omecproject.up4.impl.Up4Store)

Aggregations

Up4Service (org.omecproject.up4.Up4Service)1 Up4Store (org.omecproject.up4.impl.Up4Store)1 Ip4Address (org.onlab.packet.Ip4Address)1