Skip to content
step2body.json-generated.tdltx 1.67 KiB
Newer Older
Package generated_from_step2body_json {
    Type String
    Type TODO_RESOLVE_REFERENCED
    Use "step2body.json" as SOURCE_MAPPING
    Type JSON_String
    Structure JSON_step2body_json (
        JSON_etht_svc_bandwidth_profiles etht_svc_bandwidth_profiles
    )
    Collection JSON_etht_svc_bandwidth_profiles of JSON_etht_svc_bandwidth_profiles_item
    Structure JSON_etht_svc_bandwidth_profiles_item (
        JSON_String bandwidth_profile_name,
        JSON_String bandwidth_profile_type,
        JSON_String CIR,
        JSON_String EIR,
        JSON_String color_aware,
        JSON_String coupling_flag
    )
    
    //Just use mappings? or replace with variables? (if dynamic)
    JSON_step2body_json JSON_instance (
        etht_svc_bandwidth_profiles = [
            (
                bandwidth_profile_name = "bw_profile_{{TD_SDN_SERVICE_NAME}}",
                bandwidth_profile_type = "ietf-eth-tran-types:mef-10-bwp",
                CIR = "{{TD_SDN_CIR_VALUE}}",
                EIR = "{{TD_SDN_EIR_VALUE}}",
                color_aware = "true",
                coupling_flag = "true"
            )
        ]
    )
    Map JSON_step2body_json to "JSON" in SOURCE_MAPPING as JSON_SOURCE_MAPPING {
        etht_svc_bandwidth_profiles -> "etht-svc-bandwidth-profiles"
    }
    Map JSON_etht_svc_bandwidth_profiles_item to "JSON.etht-svc-bandwidth-profiles.item" in SOURCE_MAPPING as JSON_etht_svc_bandwidth_profiles_item_SOURCE_MAPPING {
        bandwidth_profile_name -> "bandwidth-profile-name",
        bandwidth_profile_type -> "bandwidth-profile-type",
        CIR -> "CIR",
        EIR -> "EIR",
        color_aware -> "color-aware",
        coupling_flag -> "coupling-flag"
    }
}