1{
2    "meta": {
3        "prefix": "ncs",
4        "namespace": "http://tail-f.com/ns/ncs",
5        "types": {
6            "http://tail-f.com/ns/ncs:outformat2": [
7                {
8                    "name": "http://tail-f.com/ns/ncs:outformat2",
9                    "enumeration": [
10                        {
11                            "info": "NCS CLI curly bracket format.",
12                            "label": "cli"
13                        },
14                        {
15                            "info": "NETCONF XML edit-config format, i.e., the edit-config that\nwould be applied locally (at NCS) to get a config\nthat is equal to that of the managed device.",
16                            "label": "xml"
17                        }
18                    ]
19                },
20                {
21                    "name": "string"
22                }
23            ]
24        },
25        "keypath": "/ncs:devices/device{ce0}/sync-from"
26    },
27    "data": {
28        "info": {
29            "string": "Synchronize the config by pulling from the device"
30        },
31        "kind": "action",
32        "mandatory": true,
33        "name": "sync-from",
34        "qname": "ncs:sync-from",
35        "access": {
36            "read": false,
37            "create": false,
38            "execute": true,
39            "update": false,
40            "delete": false
41        },
42        "children": [
43            {
44                "kind": "container",
45                "is_action_input": true,
46                "name": "dry-run",
47                "presence": true,
48                "qname": "ncs:dry-run",
49                "access": {
50                    "read": false,
51                    "create": false,
52                    "execute": false,
53                    "update": true,
54                    "delete": false
55                },
56                "children": [
57                    {
58                        "info": {
59                            "string": "Report what would be done towards CDB, without\nactually doing anything."
60                        },
61                        "kind": "leaf",
62                        "is_action_input": true,
63                        "name": "outformat",
64                        "qname": "ncs:outformat",
65                        "access": {
66                            "read": false,
67                            "create": false,
68                            "execute": false,
69                            "update": true,
70                            "delete": false
71                        },
72                        "type": {
73                            "namespace": "http://tail-f.com/ns/ncs",
74                            "name": "outformat2"
75                        }
76                    }
77                ]
78            },
79            {
80                "kind": "choice",
81                "cases": [
82                    {
83                        "kind": "case",
84                        "name": "result",
85                        "children": [
86                            {
87                                "kind": "leaf",
88                                "name": "result",
89                                "qname": "ncs:result",
90                                "access": {
91                                    "read": false,
92                                    "create": false,
93                                    "execute": false,
94                                    "update": false,
95                                    "delete": false
96                                },
97                                "type": {
98                                    "primitive": true,
99                                    "name": "boolean"
100                                },
101                                "is_action_output": true
102                            }
103                        ]
104                    },
105                    {
106                        "kind": "case",
107                        "name": "result-xml",
108                        "children": [
109                            {
110                                "kind": "leaf",
111                                "name": "result-xml",
112                                "is_cli_preformatted": true,
113                                "qname": "ncs:result-xml",
114                                "access": {
115                                    "read": false,
116                                    "create": false,
117                                    "execute": false,
118                                    "update": false,
119                                    "delete": false
120                                },
121                                "type": {
122                                    "primitive": true,
123                                    "name": "string"
124                                },
125                                "is_action_output": true
126                            }
127                        ]
128                    },
129                    {
130                        "kind": "case",
131                        "name": "cli",
132                        "children": [
133                            {
134                                "kind": "leaf",
135                                "name": "cli",
136                                "is_cli_preformatted": true,
137                                "qname": "ncs:cli",
138                                "access": {
139                                    "read": false,
140                                    "create": false,
141                                    "execute": false,
142                                    "update": false,
143                                    "delete": false
144                                },
145                                "type": {
146                                    "primitive": true,
147                                    "name": "string"
148                                },
149                                "is_action_output": true
150                            }
151                        ]
152                    }
153                ],
154                "name": "outformat"
155            },
156            {
157                "info": {
158                    "string": "If present, contains additional information about the result."
159                },
160                "kind": "leaf",
161                "name": "info",
162                "qname": "ncs:info",
163                "access": {
164                    "read": false,
165                    "create": false,
166                    "execute": false,
167                    "update": false,
168                    "delete": false
169                },
170                "type": {
171                    "primitive": true,
172                    "name": "string"
173                },
174                "is_action_output": true
175            }
176        ]
177    }
178}
179