Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"
}
}