Add ability to set protocol in endpoint_data.yaml file
Currently we can noly set the port and suffixes for each endpoint, this enables the script to be able to generate the protocol in the endpoint map. Change-Id: I890e1022459beea9f3d0a0e333fbed0ac063f96b
This commit is contained in:
parent
958914098e
commit
1db66f5d73
@ -65,7 +65,8 @@ def net_param_name(endpoint_type_defn):
|
||||
def endpoint_map_default(config):
|
||||
def map_item(ep_name, ep_type, svc):
|
||||
values = collections.OrderedDict([
|
||||
(F_PROTOCOL, svc.get(F_PROTOCOL, 'http')),
|
||||
(F_PROTOCOL, str(svc[ep_type].get(F_PROTOCOL,
|
||||
svc.get(F_PROTOCOL, 'http')))),
|
||||
(F_PORT, str(svc[ep_type].get(F_PORT, svc[F_PORT]))),
|
||||
(F_HOST, SUBST_IP_ADDRESS),
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user