use of org.onosproject.kubevirtnode.api.KubevirtNodeAdminService in project onos by opennetworkinglab.
the class KubevirtSyncRulesCommand method doExecute.
@Override
protected void doExecute() throws Exception {
// All handlers in this application reacts the node complete event and
// tries to re-configure flow rules for the complete node.
KubevirtNodeAdminService nodeAdminService = get(KubevirtNodeAdminService.class);
if (nodeAdminService == null) {
error("Failed to re-install flow rules for kubevirt networking.");
return;
}
nodeAdminService.completeNodes().forEach(node -> syncRulesBaseForNode(nodeAdminService, node));
print("Done all flow rules synchronization, but some nodes may have issues.");
}
Aggregations