Macro Examples - Simple#

Simple macros must always resolve to one value only.

{{data.Countries.iso_country_code | country_name:'South Africa'}}

'ZAF'

Call to a non-existent macro.

{{macro.DoesNotExist}}

{u'code': 6003,
 u'http_code': 400,
 u'message': u'Macro lookup of macro.DoesNotExist failed at hierarchy sys',
 u'transaction': None}

First Partition member name in CSS PSTN-CSS-Cape-Town.

{{ device.cucm.Css.members.member.0.routePartitionName | name: 'PSTN-CSS-Cape-Town' }}

'PHONES-PT-Cape-Town'

First Partition member UUID in CSS PSTN-CSS-Cape-Town.

{{ device.cucm.Css.members.member.0.uuid | name: 'PSTN-CSS-Cape-Town' }}

'{7AF255DC-3A05-A1B4-9E5E-95CD48C3C95F}'