Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions gbpservice/nfp/orchestrator/modules/service_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,10 @@ def create_network_function(self, context, network_function_info):
base_mode_support = (True if service_details['device_type'] == 'None'
else False)
service_vendor = service_details['service_vendor']
# REVISIT(ashu): take the first few characters just like neutron does
# with ovs interfaces inside the name spaces..
u_id = service_chain_id[:11] if service_chain_id else service_id[:11]
name = "%s_%s_%s" % (service_profile['service_type'],
service_vendor,
service_chain_id or service_id)
u_id)
service_config_str = network_function_info.get('service_config')
network_function = {
'name': name,
Expand Down Expand Up @@ -889,10 +888,8 @@ def create_network_function_instance(self, event):
'port_model': ele['port_model'],
'port_classification': ele['port_classification']
})

# REVISIT(ashu): Only pick few chars from id
name = '%s_%s' % (network_function['name'],
network_function['id'])
name = '%s_%s' % (network_function['name'][:-12],
network_function['id'][:11])
network_function_instance = (
self._get_network_function_instance_for_multi_service_sharing(
port_info))
Expand Down