<div dir="ltr">Hi,<br><br>Could anyone shed some light on how to get the physical interface name (e.g eth0) from network name (e.g PublicNetwork, ExternalNetwork) in tripleo-heat-template service profile ?<br><br>for example:<br><br>I want to add a service profile under puppet/services/time/ptp.pp where it uses 'PtpInterface' as a parameter to get physical interface name (please refer to below piece of code), but I'd like to expose a more user friendly parameter like NetworkName(e.g. provision network, external network etc) instead of 'PtpInterface' and retrieve the actual physical interface name from the NetworkName where the physical interface is connected to, is there any possible way to do this ?<br><br>####<br>parameters:<br>[...]<br>  PtpInterface:      #  ---> change this parameter to PtpNetwork<br>    default: eth0<br>    description: PTP interfaces name.<br>    type: string<br><br>resources:<br>  RoleParametersValue<br>    type: OS::Heat::Value<br>    properties:<br>      type: json<br>      value:             # ---> add logic to get real interface name from PtpNetwork<br>        map_replace:<br>          - map_replace:<br>            - tripleo::profile::base::time::ptp::ptp4l_interface: PtpInterface<br>            - values: {get_param: [RoleParameters]}<br>          - values:<br>              PtpInterface: {get_param: PtpInterface}<br><br>outputs:<br>  role_data:<br>    description: Role ptp using commposable services.<br>    value:<br>      service_name: ptp<br>      config_settings:<br>        map_merge:<br>          - get_attr: [RoleParametersValue, value]<br>[...]<br>####<br><br>Thanks!<br>zenghui<br></div>