Lior Vernia has uploaded a new change for review. Change subject: core: Added ability to search for network by label ......................................................................
core: Added ability to search for network by label All newtorks to which a specific label had been assigned will be returned. Change-Id: Ibbf801953278fe2ed185761f7e5bffe5bae2c5af Signed-off-by: Lior Vernia <lver...@redhat.com> --- M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/NetworkConditionFieldAutoCompleter.java 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/99/22899/1 diff --git a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/NetworkConditionFieldAutoCompleter.java b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/NetworkConditionFieldAutoCompleter.java index 4d2261d..1aafe5f 100644 --- a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/NetworkConditionFieldAutoCompleter.java +++ b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/NetworkConditionFieldAutoCompleter.java @@ -10,6 +10,7 @@ private static final String MTU = "MTU"; private static final String VM_NETWORK = "VMNETWORK"; private static final String DATA_CENTER = "DATACENTER"; + private static final String LABEL = "LABEL"; public NetworkConditionFieldAutoCompleter() { // Building the basic verbs dict. @@ -21,6 +22,7 @@ mVerbs.add(MTU); mVerbs.add(VM_NETWORK); mVerbs.add(DATA_CENTER); + mVerbs.add(LABEL); // Building the autoCompletion dict. buildCompletions(); @@ -34,6 +36,7 @@ getTypeDictionary().put(MTU, Integer.class); getTypeDictionary().put(VM_NETWORK, Boolean.class); getTypeDictionary().put(DATA_CENTER, String.class); + getTypeDictionary().put(LABEL, String.class); // building the ColumnName dict. columnNameDict.put(NAME, "name"); @@ -44,6 +47,7 @@ columnNameDict.put(MTU, "mtu"); columnNameDict.put(VM_NETWORK, "vm_network"); columnNameDict.put(DATA_CENTER, "storage_pool_name"); + columnNameDict.put(LABEL, "label"); // Building the validation dict. buildBasicValidationTable(); -- To view, visit http://gerrit.ovirt.org/22899 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibbf801953278fe2ed185761f7e5bffe5bae2c5af Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Lior Vernia <lver...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches