def add_vnfc1_type(self): vnfc_t = VnfcType() vnfc_t.set_vnfc_info(VNFC1_T, VNFC1_AFF, VNFC1_T) vnfc_t.set_artifact(None, None, 'qcow', VNFC1_IMAGE, VNFC_IMAGE_DIR + VNFC1_IMAGE, 'gzip', None) vnfc_t.add_flavor_constraint(NS_F_VNFC1_IMAGE_VALUE, NS_F_VNFC1_FLAVOR_VALUE) vnfc_t.add_endpoint(VNFC1_EP_1, VNFC1_EP_1) self.vnfc_types[VNFC1_T] = vnfc_t
def add_vnfc4_type(self): vnfc_t = VnfcType() vnfc_t.set_vnfc_info(VNFC4_T, VNFC4_AFF, VNFC4_T) vnfc_t.set_artifact(None, None, 'qcow', VNFC4_IMAGE, VNFC_IMAGE_DIR + VNFC4_IMAGE, 'gzip', None) vnfc_t.add_flavor_constraint(NS_F_VNFC4_IMAGE_VALUE, NS_F_VNFC4_FLAVOR_VALUE) vnfc_t.add_endpoint(VNFC4_EP_1, VNFC4_EP_1) #vnfc_t.add_config_property(VNFC1_PROP_2, VNFC1_PROP_2) #vnfc_t.add_config_property(VNFC1_PROP_5, VNFC1_PROP_5) #vnfc_t.add_interface(VNFC1_IF_CONFIGURE, 'configure', VNFC_IF_ORDER, VNFC1_IF_CONFIGURE_FORMAT, # VNFC_IF_ABS_PATH, VNFC1_IF_CONFIGURE) #vnfc_t.add_interface(VNFC1_IF_START, 'start', VNFC_IF_ORDER, VNFC1_IF_START_FORMAT, # VNFC_IF_ABS_PATH, VNFC1_IF_START) #vnfc_t.add_interface(VNFC2_IF_STOP, 'stop', VNFC_IF_ORDER, \ # VNFC2_IF_STOP_FORMAT, VNFC_IF_ABS_PATH, VNFC2_IF_STOP) self.vnfc_types[VNFC4_T] = vnfc_t