[CORD-2447] fix for eline creation in GUI

Change-Id: I20ca6aa97c86df473f644b0a8b718ceea01e9e12
(cherry picked from commit 9938b7665eb867d3d2d6ecea30dd88cdb289fa03)
diff --git a/xos/gui/src/app/components/eline-side.component.html b/xos/gui/src/app/components/eline-side.component.html
index 733f022..d3032e5 100755
--- a/xos/gui/src/app/components/eline-side.component.html
+++ b/xos/gui/src/app/components/eline-side.component.html
@@ -37,18 +37,28 @@
     </div>
     <div class="form-group">
       <label for="cpi1">Connect point 1 ID</label>
-      <input required class="form-control" id="cpi1" type="text" ng-value="vm.vng.eline.connect_point_1_id" ng-model="vm.vng.eline.connect_point_1_id">
+      <select required class="form-control"
+              id="cpi1"
+              ng-model="vm.vng.eline.connect_point_1_id"
+              ng-options="uni.id as uni.cpe_id for uni in vm.vng.unis  | orderBy:'cpe_id'"
+      >
+      </select>
     </div>
     <div class="form-group">
       <label for="cpi2">Connect point 2 ID</label>
-      <input required class="form-control" id="cpi2" type="text" ng-value="vm.vng.eline.connect_point_2_id" ng-model="vm.vng.eline.connect_point_2_id">
+      <select required class="form-control"
+              id="cpi2"
+              ng-model="vm.vng.eline.connect_point_2_id"
+              ng-options="uni.id as uni.cpe_id for uni in vm.vng.unis | orderBy:'cpe_id'"
+      >
+      </select>
     </div>
     <div class="form-group">
       <label for="bwps">Bandwidth Profile</label>
       <select required class="form-control"
               id="bwps"
-              ng-model="vm.vng.eline.bwp"
-              ng-options="bwp.name as bwp.name for bwp in vm.vng.bwps | orderBy:'name'"
+              ng-model="vm.vng.eline.bwp_id"
+              ng-options="bwp.id as bwp.name for bwp in vm.vng.bwps | orderBy:'name'"
       >
       </select>
     </div>
diff --git a/xos/gui/src/app/components/vnaasMap.component.ts b/xos/gui/src/app/components/vnaasMap.component.ts
index cca3b03..9415280 100755
--- a/xos/gui/src/app/components/vnaasMap.component.ts
+++ b/xos/gui/src/app/components/vnaasMap.component.ts
@@ -164,7 +164,7 @@
       self.eline = {
         name: uni.name,
         uni1name: uni.name,
-        connect_point_1_id: uni.cpe_id,
+        connect_point_1_id: uni.id
       };
       self.elinePanel({}, self.eline, false);
     };
@@ -172,7 +172,7 @@
   }
 
   public finishConnection(uni: any) {
-    self.eline.connect_point_2_id = uni.cpe_id;
+    self.eline.connect_point_2_id = uni.id;
     if (self.eline.name === self.eline.uni1name) {
       self.eline.name = self.eline.name + uni.name;
     }