Fix more merge conflicts 75/1175/1 master_vca_intg
authorPhilip Joseph <philip.joseph@riftio.com>
Thu, 23 Feb 2017 14:48:12 +0000 (20:18 +0530)
committerPhilip Joseph <philip.joseph@riftio.com>
Thu, 23 Feb 2017 15:08:20 +0000 (20:38 +0530)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
examples/ping_pong_ns/rift/mano/examples/ping_pong_nsd.py
examples/ping_pong_ns/rift/mano/examples/ping_setup.py
examples/ping_pong_ns/rift/mano/examples/ping_start_stop.py
examples/ping_pong_ns/rift/mano/examples/pong_setup.py
examples/ping_pong_ns/rift/mano/examples/pong_start_stop.py
models/plugins/yang/nsd.yang
models/plugins/yang/vnfd.yang

index cce685c..ff706c8 100755 (executable)
@@ -729,16 +729,6 @@ class VirtualNetworkFunction(ManoDescriptor):
                     else:
                         self.add_ping_config()
 
-            # Add VNF access point
-            if use_vca_conf:
-                self.add_vnf_access_point(mano_ut=mano_ut)
-                if 'pong_' in self.name:
-                    self.add_pong_config(mano_ut=mano_ut,
-                                         use_ns_init_conf=use_ns_init_conf)
-                else:
-                    self.add_ping_config(mano_ut=mano_ut,
-                                         use_ns_init_conf=use_ns_init_conf)
-
             # sepcify the guest EPA
             if use_epa:
                 vdu.guest_epa.trusted_execution = False
index c0d0589..0169206 100755 (executable)
@@ -75,14 +75,14 @@ def ping_setup(yaml_cfg, logger):
             if 'HTTP/1.1 200 OK' in resp:
                 rc = 0
                 break
-            self._log.error("Got error response: {}".format(resp))
+            logger.error("Got error response: {}".format(resp))
             rc = 1
             break
 
         elif proc.returncode == 7:
             # Connection timeout
             if count >= max_tries:
-                self._log.error("Connect failed for {}. Failing".format(count))
+                logger.error("Connect failed for {}. Failing".format(count))
                 rc = 7
                 break
             # Try after delay
index fdd62ed..2608620 100755 (executable)
@@ -64,7 +64,7 @@ def ping_start_stop(yaml_cfg, logger):
         # Check if we got 200 OK
         resp = proc.stdout.read().decode()
         if 'HTTP/1.1 200 OK' not in resp:
-            self._log.error("Got error response: {}".format(resp))
+            logger.error("Got error response: {}".format(resp))
             rc = 1
 
     return rc
index 7bd2479..f2e46bf 100755 (executable)
@@ -75,14 +75,14 @@ def pong_setup(yaml_cfg, logger):
             if 'HTTP/1.1 200 OK' in resp:
                 rc = 0
                 break
-            self._log.error("Got error response: {}".format(resp))
+            logger.error("Got error response: {}".format(resp))
             rc = 1
             break
 
         elif proc.returncode == 7:
             # Connection timeout
             if count >= max_tries:
-                self._log.error("Connect failed for {}. Failing".format(count))
+                logger.error("Connect failed for {}. Failing".format(count))
                 rc = 7
                 break
             # Try after delay
index 30e7fa6..a8d6867 100755 (executable)
@@ -64,7 +64,7 @@ def pong_start_stop(yaml_cfg, logger):
         # Check if we got 200 OK
         resp = proc.stdout.read().decode()
         if 'HTTP/1.1 200 OK' not in resp:
-            self._log.error("Got error response: {}".format(resp))
+            logger.error("Got error response: {}".format(resp))
             rc = 1
 
     return rc
index 8808daf..494acf4 100644 (file)
@@ -289,46 +289,6 @@ module nsd
         }
       }
 
-      list vnfap-map {
-        key "id";
-        description "A mapping of VNF application point 
-                     capability/dependency within this network service";
-        leaf id {
-          description "Identfier for VNF access point map";
-          type string;
-        }
-        container capability {
-          leaf member-vnf-index-ref {
-            description "Reference to member-vnf within constituent-vnfds";
-            type leafref {
-              path "../../../../constituent-vnfd/member-vnf-index";
-            }
-          }
-          leaf capability-ref {
-            description "Reference to the capability with the capability of the VNF
-                         with the specified member-vnf-index";
-            type leafref {
-              path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:vnfap/vnfd:capability/vnfd:name";
-            }
-          }
-        }
-        container dependency {
-          leaf member-vnf-index-ref {
-            description "Reference to member-vnf within constituent-vnfds";
-            type leafref {
-              path "../../../../constituent-vnfd/member-vnf-index";
-            }
-          }
-          leaf dependency-ref {
-            description "Reference to the dependency within the dependency of the VNF
-                         with the specified member-vnf-index";
-            type leafref {
-              path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:vnfap/vnfd:dependency/vnfd:name";
-            }
-          }
-        }
-      }
-
       // replicate for pnfd container here
       uses manotypes:provider-network;
 
index fb1bd03..75de5e3 100644 (file)
@@ -675,8 +675,6 @@ module vnfd
       key "id";
 
       uses vnfd-descriptor;
-
-      uses vnf-access-point;
     }
   }
 }