Skip to content

Fast CLI render command does not render the "Includes" #45

@johnalam

Description

@johnalam

Here are the commands.

The contents of the directory.

[j@QNJXJKW] app6 % ls
_as3.yaml app2.mst app4.mst
_virtual.yaml app2_inputs.json f5.json

Here are the inputs:

[j@QNJXJKW] app6 % more app2_inputs.json
{
"tenant_name": "my_tenant",
"application_name": "my_app",
"app_name": "my_app",
"virtual_port": 443,
"virtual_address": "10.10.10.10/24",
"server_port": 80,
"server_addresses": ["10.1.1.1","10.1.1.2"]
}

We try to render the template.

Note that the tenant and app name are populated but nothing from the _virtual.yaml is included.

[j@QNJXJKW]app6 % fast render app2.mst app2_inputs.json
contentType: application/json
title: HTTP Application Template
description: Configure high availability and optimization for HTTP and HTTPS implementations.
allOf:

  • $ref: "_as3.yaml#"
  • $ref: "_virtual.yaml#"

- $ref: "_redirect_http.yaml#"

- $ref: "_snat.yaml#"

#anyOf:

- {}

- $ref: "_analytics.yaml#/http"

- $ref: "_analytics.yaml#/tcp"

- $ref: "_security_policy.yaml#/fastl4"

- $ref: "_security_firewall.yaml#"

- $ref: "_security_dos.yaml#/fastl4"

- $ref: "_shape.yaml#/fastl4"

- $ref: "_telemetry.yaml#"

template: |
{
"my_tenant": {
"my_app": {
"my_app": {
}
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions