ACI mso_schema_template_bd : not valid VRF association

All,

using the mso_schema_template_bd module I have come across the following issue:

Setting the scene:
VRF has been create in Schema X, with template X associated to tenant USER

BD has been created in Schema1, with template 1 associated to tenant USER
BD in schema 1 references VRF in Schema X, a valid deployment in MSO, proven to work.

My issue:
The module only allows to reference the BD schema & template (1), so the playbook will always fail because I can’t work out how to reference another schema & template (X)

Any work around or fix identified yet?

  • name: Add a new BD
    mso_schema_template_bd:

host: “{{ ansible_host }}”

username: admin

password: ****

host: “{{ ansible_host }}”
username: “{{ ansible_user1 }}”
password: “{{ ansible_password1 }}”
validate_certs: false

Module specific variables

schema: sch-{{tenant_name}}-legacy
template: tmpl-{{tenant_name}}-{{site}}{{site_id}}-legacy
bd: bd-{{site}}{{site_id}}-{{item}}
subnets:

  • description: “”
    ip: 11.11.12.1/24
    no_default_gateway: no
    scope: public
    shared: no
    vrf:
    name: v00-aci [this VRF resides in a different Schema & template]
    state: present
    with_items:
  • “{{ entry[site_id][‘vlan_id’] }}”
    delegate_to: localhost

data:

  • op: replace
    path: /templates/tmpl-user-sc1-legacy/bds/bd-sc1-11
    value:
    displayName: bd-sc1-11
    intersiteBumTrafficAllow: true
    l2Stretch: true
    l2UnknownUnicast: proxy
    name: bd-sc1-11
    optimizeWanBandwidth: true
    subnets:
  • description: ‘’
    ip: 11.11.12.1/24
    noDefaultGateway: false
    scope: public
    shared: false
    vrfRef:
    schemaId: 5dc285e5100000d3005d1b9f
    templateName: tmpl-user-sc1-legacy
    vrfName: v00-aci
    info:
    body: ‘{“code”:142,“message”:“Invalid Reference: BD ‘‘bd-sc1-11’’ is not associated to a valid VRF”}’
    connection: close
    content-language: en
    content-length: ‘91’
    content-type: application/json
    date: Mon, 11 Nov 2019 15:53:52 GMT
    msg: ‘HTTP Error 400: Bad Request’
    server: nginx
    status: 400
    strict-transport-security: max-age=31536000; includeSubDomains
    url: https:///api/v1/schemas/5dc285e5100000d3005d1b9f
    item: 11
    msg: ‘MSO Error 142: Invalid Reference: BD ‘‘bd-sc1-11’’ is not associated to a valid VRF’
    payload:
    code: 142
    message: ‘Invalid Reference: BD ‘‘bd-sc1-11’’ is not associated to a valid VRF’