commit | d15afa501e5b8dca31bbdbf0cd89d8c9379de314 | [log] [tgz] |
---|---|---|
author | Sean Condon <sean.condon@microsemi.com> | Thu Aug 17 12:21:58 2017 +0100 |
committer | Ray Milkey <ray@opennetworking.org> | Thu Aug 17 15:49:48 2017 +0000 |
tree | f42cdb231479821f6be307a8a2947872b0790e59 | |
parent | e225d153fb8956768448016e1fc76caa6c197a92 [diff] |
Bug fix for [ONOS-6938] null-create-host gives error Change-Id: I838c0d9d84034207f2dcf6420e82016fcc728922 (cherry picked from commit c59d69630898855b7b4276265351c8da46b52ada)
diff --git a/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullHost.java b/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullHost.java index 3757c0f..5197e79 100644 --- a/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullHost.java +++ b/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullHost.java
@@ -32,6 +32,7 @@ import org.onosproject.provider.nil.NullProviders; import org.onosproject.provider.nil.TopologySimulator; +import java.util.HashSet; import java.util.Iterator; /** @@ -88,6 +89,7 @@ BasicHostConfig cfg = cfgService.addConfig(id, BasicHostConfig.class); cfg.locType(locType); + cfg.setLocations(new HashSet<HostLocation>() {{ add(location); }}); if (GEO.equals(locType)) { cfg.latitude(latOrY).longitude(longOrX);