Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnalam opened this issue Apr 23, 2024 · 0 comments
Open

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

johnalam opened this issue Apr 23, 2024 · 0 comments

Comments

@johnalam
Copy link

johnalam commented Apr 23, 2024

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": {
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant