-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.output
More file actions
203 lines (190 loc) · 6.66 KB
/
Copy pathclient.output
File metadata and controls
203 lines (190 loc) · 6.66 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
Sequence of client curl command:
--------------------------------
127.0.0.1 - - [26/Sep/2016 19:09:59] "POST /network-elements HTTP/1.1" 200 21
127.0.0.1 - - [26/Sep/2016 19:09:59] "POST /network-elements HTTP/1.1" 200 22
127.0.0.1 - - [26/Sep/2016 19:09:59] "POST /conn-links HTTP/1.1" 200 20
127.0.0.1 - - [26/Sep/2016 19:09:59] "GET /network-elements HTTP/1.1" 200 278
127.0.0.1 - - [26/Sep/2016 19:09:59] "GET /conn-links HTTP/1.1" 200 189
127.0.0.1 - - [26/Sep/2016 19:09:59] "DELETE /conn-links/conn-one HTTP/1.1" 200 0
127.0.0.1 - - [26/Sep/2016 19:09:59] "DELETE /network-elements/vmxAccess HTTP/1.1" 200 0
127.0.0.1 - - [26/Sep/2016 19:09:59] "DELETE /network-elements/vmxService HTTP/1.1" 200 0
Client Curl Output:
-------------------
# ./client.sh
Host IP = localhost
Host Port = 10001
Press [Enter] key to continue or [Ctrl+C] to exit ...
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> POST /network-elements HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
> Content-Length: 71
>
* upload completely sent off: 71 out of 71 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:57 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 25
< Content-Type: application/json
<
* Closing connection 0
{"name": "vmxTestAccess"}
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> POST /network-elements HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
> Content-Length: 73
>
* upload completely sent off: 73 out of 73 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:57 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 26
< Content-Type: application/json
<
* Closing connection 0
{"name": "vmxTestService"}
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> POST /conn-links HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
> Content-Length: 188
>
* upload completely sent off: 188 out of 188 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:57 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 20
< Content-Type: application/json
<
* Closing connection 0
{"name": "conn-one"}
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> GET /network-elements HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:57 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 826
< Content-Type: application/json
< Cache-Control: no-cache
<
* Closing connection 0
{"network-elements": [{"username": "root", "name": "vmxTestService", "mgmt_ip": "169.254.0.20", "ref_cnt": 1, "role": "service", "password": "Embe1mpls"}, {"username": "root", "name": "vmxTestAccess", "mgmt_ip": "169.254.0.22", "ref_cnt": 1, "role": "access", "password": "Embe1mpls"}, {"username": "root", "name": "vmxAbbasService02", "mgmt_ip": "169.254.0.22", "ref_cnt": 0, "role": "service", "password": "Embe1mpls"}, {"username": "root", "name": "vmxAbbasService03", "mgmt_ip": "169.254.0.23", "ref_cnt": 0, "role": "service", "password": "Embe1mpls"}, {"username": "root", "name": "vmxAbbasService01", "mgmt_ip": "169.254.0.20", "ref_cnt": 0, "role": "service", "password": "Embe1mpls"}, {"username": "root", "name": "vmxAbbasAccess", "mgmt_ip": "169.254.0.22", "ref_cnt": 0, "role": "access", "password": "Embe1mpls"}]}
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> GET /conn-links HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Referer: rbose
> Content-Type: application/json
> Cache-Control: no-cache
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:57 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 258
< Content-Type: application/json
< Cache-Control: no-cache
<
* Closing connection 0
{"conn-links": [{"name": "conn-one", "service_fab_intf": "fi1", "access_fab_intf": "fi0", "access_links": ["ge-0/0/1", "ge-0/0/2"], "access_node": "vmxTestAccess", "service_links": ["ge-1/0/1", "ge-2/0/2"], "service_node": "vmxTestService", "fabric": null}]}
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> DELETE /conn-links/conn-one HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:58 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Closing connection 0
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> DELETE /network-elements/vmxTestAccess HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:58 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Closing connection 0
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 10001 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10001 (#0)
> DELETE /network-elements/vmxTestService HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:10001
> Accept: */*
> Content-Type: application/json
> Cache-Control: no-cache
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 27 Oct 2016 23:14:58 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Closing connection 0