forked from t2trg/wishi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.json
6 lines (6 loc) · 10 KB
/
example.json
1
2
3
4
5
6
{
"data": "oFo6HA==",
"files": {
"device.yang": "bW9kdWxlIGRldmljZS1leGFtcGxlIHsKICAgIG5hbWVzcGFjZSAiaHR0cDovL2Fja2xpby5jb20iOwogICAgcHJlZml4ICJhY2tsaW8iOwoKICAgIGltcG9ydCBhY2tsaW8teW91cGkgeyBwcmVmaXggeW91cGk7IH0KCiAgICBvcmdhbml6YXRpb24KICAgICAgICAiQWNrbGlvIjsKCiAgICBjb250YWN0CiAgICAgICAgIkVkaXRvcjogICBBbGV4YW5kZXIgUGVsb3YKICAgICAgICA8bWFpbHRvOmFAYWNrbC5pbz4KCiAgICAgICAgRWRpdG9yOiAgIEl2YXlsbyBQZXRyb3YKICAgICAgICA8bWFpbHRvOml2YXlsb0BhY2tsLmlvPiI7CgogICAgZGVzY3JpcHRpb24KICAgICAgICAiRXhhbXBsZSBkZXZpY2UgY29uZmlndXJhdGlvbiBZQU5HIG1vZHVsZS4gQ29weXJpZ2h0IEFDS0xJTyAyMDE3IjsKCiAgICByZXZpc2lvbiAyMDE3LTA2LTA5IHsKICAgICAgICBkZXNjcmlwdGlvbiAiSW5pdGlhbCByZXZpc2lvbi4iOwogICAgfQoKCiAgICB0eXBlZGVmIG1vZGUtdHlwZSB7CiAgICAgICAgdHlwZSBlbnVtZXJhdGlvbiB7CiAgICAgICAgICAgIGVudW0gYnRuIDsKICAgICAgICAgICAgZW51bSB0ZW1wIDsKICAgICAgICAgICAgZW51bSBsaWdodCA7CiAgICAgICAgICAgIGVudW0gZG9vciA7CiAgICAgICAgICAgIGVudW0gbW92ZSA7CiAgICAgICAgICAgIGVudW0gcmVlZCA7CiAgICAgICAgfQogICAgfQoKICAgIHR5cGVkZWYgbXNnLXR5cGUtdHlwZSB7CiAgICAgICAgdHlwZSBlbnVtZXJhdGlvbiB7CiAgICAgICAgICAgIGVudW0gcmVndWxhciA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ZGF0YS5uYXNhLmdvdi9xdWR0L293bC91bml0I0RlZ3JlZUNlbHNpdXMiOwogICAgICAgIHlvdXBpOnVuaXRzLXN1YmplY3QgImh0dHA6Ly9kYXRhLm5hc2EuZ292L3F1ZHQvb3dsL3F1YW50aXR5I1RoZXJtb2R5bmFtaWNUZW1wZXJhdHVyZSI7CiAgICB9CgogICAgdHlwZWRlZiBmcmVxdWVuY3ktb2YtdXBkYXRlIHsKICAgICAgICB0eXBlIGVudW1lcmF0aW9uIHsKICAgICAgICAgICAgZW51bSAxMCA7CiAgICAgICAgICAgIGVudW0gNjAgOwogICAgICAgICAgICBlbnVtIDM2MCA7CiAgICAgICAgICAgIGVudW0gMTQ0MCA7CiAgICAgICAgfQogICAgICAgIHVuaXRzICJodHRwOi8vZGF0YS5uYXNhLmdvdi9xdWR0L293bC91bml0I01pbnV0ZVRpbWUiOwogICAgICAgIHlvdXBpOnVuaXRzLXN1YmplY3QgImh0dHA6Ly9wZW5kaW5nLnNjaGVtYS5vcmcvcmVwZWF0RnJlcXVlbmN5IjsKICAgIH0KCiAgICB0eXBlZGVmIGFjY2VsZXJvbWV0ZXItc2Vuc2l0aXZpdHkgewogICAgICAgIHR5cGUgZW51bWVyYXRpb24gewogICAgICAgICAgICBlbnVtIHZlcnktbGl0dGxlLXNlbnNpdGl2aXR5IHsKICAgICAgICAgICAgICAgIHZhbHVlIDEwNDk0NTk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZW51bSBub3QtdmVyeS1zZW5zaXRpdmUgewogICAgICAgICAgICAgICAgdmFsdWUgNTI0OTE1OwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVudW0gc3RhbmRhcmQgewogICAgICAgICAgICAgICAgdmFsdWUgMjYyNzcxOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVudW0gc2Vuc2l0aXZlIHsKICAgICAgICAgICAgICAgIHZhbHVlIDE5Njk3OTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbnVtIHZlcnktc2Vuc2l0aXZlIHsKICAgICAgICAgICAgICAgIHZhbHVlIDI2MjUxNTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBkZXNjcmlwdGlvbiAiU2Vuc2l0aXZpdHkgb2YgYW4gYWNjZWxlcm9tZXRlci4iOwogICAgfQoKICAgIHR5cGVkZWYgbWFnbmV0LXNlbnNpdGl2aXR5IHsKICAgICAgICB0eXBlIGVudW1lcmF0aW9uIHsKICAgICAgICAgICAgZW51bSBub3QtdmVyeS1zZW5zaXRpdmUgewogICAgICAgICAgICAgICAgdmFsdWUgMjI7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZW51bSBzdGFuZGFyZCB7CiAgICAgICAgICAgICAgICB2YWx1ZSA1MDsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbnVtIHNlbnNpdGl2ZSB7CiAgICAgICAgICAgICAgICB2YWx1ZSA4MDsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBkZXNjcmlwdGlvbiAiU2Vuc2l0aXZpdHkgb2YgdGhlIG1hZ25ldC4iOwogICAgfQoKICAgIHR5cGVkZWYgbGlnaHQtZmFjdG9yLXR5cGUgewogICAgICAgIHR5cGUgZW51bWVyYXRpb24gewogICAgICAgICAgICBlbnVtIDEgOwogICAgICAgICAgICBlbnVtIDggOwogICAgICAgICAgICBlbnVtIDY0IDsKICAgICAgICAgICAgZW51bSAyMDE0IDsKICAgICAgICB9CiAgICB9CgogICAgZ3JvdXBpbmcgbGlnaHQtdHlwZSB7CiAgICAgICAgZGVzY3JpcHRpb24gIkxpZ2h0IHNlbnNpdGl2aXR5IG9mIHRoZSBzZW5zb3IuIFRvIG9idGFpbiB0aGUgdW5pdHMgaW4gbHV4LCBtdWx0aXBseSB0aGUgYmFzZSBieSB0aGUgZmFjdG9yIGFuZCBkaXZpZGUgYnkgMTAwLiI7CgogICAgICAgIGxlYWYgbGlnaHQtYmFzZSB7CiAgICAgICAgICAgIHR5cGUgdWludDggewogICAgICAgICAgICAgICAgc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AgICAgfQogICAgfQoKICAgIGdyb3VwaW5nIHRlbXAtcHJlY2lzZS1yZWVkLXR5cGUgewogICAgICAgIGxlYWYgdGVtcCB7CiAgICAgICAgICAgIHR5cGUgdGVtcGVyYXR1cmU7CiAgICAgICAgICAgIHlvdXBpOnBvc2l0aW9uICIxNi4uMjEgfCAxMi4uMTUiOwogICAgICAgICAgICB5b3VwaTptdWx0aXBsaWVyICIwLjEyNSI7CiAgICAgICAgICAgIHlvdXBpOm9mZnNldCAiLTIwMCI7CiAgICAgICAgfQoKICAgICAgICBsZWFmIHJlZWQtc3RhdGUgewogICAgICAgICAgICB0eXBlIGJvb2xlYW47CiAgICAgICAgICAgIHlvdXBpOnBvc2l0aW9uICIyMiI7CiAgICAgICAgfQogICAgfQoKICAgIGNvbnRhaW5lciB1cGxpbmsgewogICAgICAgIGxlYWYgbW9kZSB7CiAgICAgICAgICAgIHR5cGUgbW9kZS10eXBlOwogICAgICAgICAgICBkZWZhdWx0IGJ0bjsKICAgICAgICAgICAgeW91cGk6cG9zaXRpb24gIjAuLjIiOwogICAgICAgIH0KCiAgICAgICAgbGVhZiBwZXJpb2QgewogICAgICAgICAgICB0eXBlIGZyZXF1ZW5jeS1vZi11cGRhdGU7CiAgICAgICAgICAgIGRlZmF1bHQgMzYwOwogICAgICAgICAgICBkZXNjcmlwdGlvbiAiV2hhdCBpcyB0aGUgZnJlcXVlbmN5IGF0IHdoaWNoIHRoZSBub2RlIHdpbGwgcmVwb3J0IGl0cyB2YWx1ZXMiOwogICAgICAgICAgICB5b3VwaTpwb3NpdGlvbiAiMy4uNCI7CiAgICAgICAgfQoKICAgICAgICBsZWFmIG1zZy10eXBlIHsKICAgICAgICAgICAgdHlwZSBtc2ctdHlwZS10eXBlOwogICAgICAgICAgICB5b3VwaTpwb3NpdGlvbiAiNS4uNiI7CiAgICAgICAgfQoKICAgICAgICBsZWFmIGJhdHRlcnkgewogICAgICAgICAgICB0eXBlIGJhdHRlcnktbGV2ZWw7CiAgICAgICAgICAgIHlvdXBpOnBvc2l0aW9uICI4Li4xMSB8IDciOwogICAgICAgICAgICB5b3VwaTptdWx0aXBsaWVyICIwLjA1IjsKICAgICAgICAgICAgeW91cGk6b2Zmc2V0ICI1NCI7CiAgICAgICAgfQoKICAgICAgICBsZWFmIGFwcHJveGltYXRpdmUtdGVtcCB7CiAgICAgICAgICAgIHR5cGUgdGVtcGVyYXR1cmU7CiAgICAgICAgICAgIHlvdXBpOnBvc2l0aW9uICIxMi4uMTUiOwogICAgICAgICAgICB5b3VwaTptdWx0aXBsaWVyICI2LjQiOwogICAgICAgICAgICB5b3VwaTpvZmZzZXQgIi0zLjEyNSI7CiAgICAgICAgICAgIHlvdXBpOnVuaXRzLXN1YmplY3QgImh0dHA6Ly9hY2tsLmlvL2lvdC92b2NhYi9tMy1saXRlI0FwcHJveGltYXRlVGVtcGVyYXR1cmUiOwogICAgICAgIH0KCiAgICAgICAgY2hvaWNlIGRhdGEgewogICAgICAgICAgICBjYXNlIF9idG4gewogICAgICAgICAgICAgICAgY29udGFpbmVyIGJ1dHRvbi1kYXRhIHsKICAgICAgICAgICAgICAgICAgICB1c2VzIHRlbXAtcHJlY2lzZS1yZWVkLXR5cGU7CgogICAgICAgICAgICAgICAgICAgIGxlYWYgbWlub3ItdmVyc2lvbiB7CiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgdWludDg7CiAgICAgICAgICAgICAgICAgICAgICAgIHlvdXBpOnBvc2l0aW9uICIyNC4uMjciOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBsZWFmIG1ham9yLXZlcnNpb24gewogICAgICAgICAgICAgICAgICAgICAgICB0eXBlIHVpbnQ4OwogICAgICAgICAgICAgICAgICAgICAgICB5b3VwaTpwb3NpdGlvbiAiMjguLjMxIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgY2FzZSBfdGVtcCB7CiAgICAgICAgICAgICAgICBjb250YWluZXIgdGVtcGVyYXR1cmUtZGF0YSB7CiAgICAgICAgICAgICAgICAgICAgdXNlcyB0ZW1wLXByZWNpc2UtcmVlZC10eXBlOwoKICAgICAgICAgICAgICAgICAgICBsZWFmIGh1bWlkaXR5IHsKICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSBkZWNpbWFsNjQgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhY3Rpb24tZGlnaXRzIDE7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByYW5nZSAiMCAuLiAxMDAiOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIHVuaXRzICJodHRwOi8vZGF0YS5uYXNhLmdvdi9xdWR0L293bC91bml0I1BlcmNlbnQiOwogICAgICAgICAgICAgICAgICAgICAgICB5b3VwaTp1bml0cy1zdWJqZWN0ICJodHRwczovL3czaWQub3JnL3NhcmVmI0h1bWlkaXR5IjsKICAgICAgICAgICAgICAgICAgICAgICAgeW91cGk6cG9zaXRpb24gIjI0Li4zMSI7CiAgICAgICAgICAgICAgICAgICAgICAgIHlvdXBpOm11bHRpcGxpZXIgIjAuNSI7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGNhc2UgX2xpZ2h0IHsKICAgICAgICAgICAgICAgIGNvbnRhaW5lciBsaWdodC1kYXRhIHsKICAgICAgICAgICAgICAgICAgICB1c2VzIGxpZ2h0LXR5cGU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgY2FzZSBfZG9vciB7CiAgICAgICAgICAgICAgICBjb250YWluZXIgZG9vci1kYXRhIHsKICAgICAgICAgICAgICAgICAgICBsZWFmIHBhZGRpbmcgewogICAgICAgICAgICAgICAgICAgICAgICB0eXBlIGVtcHR5OwogICAgICAgICAgICAgICAgICAgICAgICB5b3VwaTpwb3NpdGlvbiAiMTYuLjIzIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgbGVhZiBjb3VudCB7CiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgdWludDg7CiAgICAgICAgICAgICAgICAgICAgICAgIHlvdXBpOnBvc2l0aW9uICIyNC4uMzEiOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBjYXNlIF9tb3ZlIHsKICAgICAgICAgICAgICAgIGNvbnRhaW5lciBtb3ZlbWVudC1kYXRhIHsKICAgICAgICAgICAgICAgICAgICB1c2VzIHRlbXAtcHJlY2lzZS1yZWVkLXR5cGU7CgogICAgICAgICAgICAgICAgICAgIGxlYWYgY291bnQgewogICAgICAgICAgICAgICAgICAgICAgICB0eXBlIHVpbnQ4OwogICAgICAgICAgICAgICAgICAgICAgICB5b3VwaTpwb3NpdGlvbiAiMjQuLjMxIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgY2FzZSBfcmVlZCB7CiAgICAgICAgICAgICAgICBjb250YWluZXIgcmVlZC1zd2l0Y2gtZGF0YSB7CiAgICAgICAgICAgICAgICAgICAgdXNlcyB0ZW1wLXByZWNpc2UtcmVlZC10eXBlOwogICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgIGxlYWYgY291bnQgewogICAgICAgICAgICAgICAgICAgICAgICB0eXBlIHVpbnQ4OwogICAgICAgICAgICAgICAgICAgICAgICB5b3VwaTpwb3NpdGlvbiAiMjQuLjMxIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgeW91cGk6Y29uZGl0aW9uICJtb2RlIjsKICAgICAgICB9CiAgICB9Cgp9Cg=="
}
}