When configured VxLAN GPE interface, Honeycomb displays wrong operational data.
Initial state:
New installation of VPP and Honeycomb, versions:
VPP: vpp v16.09-rc0~45-g16c75df built by root on BM at Thu Jun 2 11:10:47 CEST 2016
HC: "version":
Steps:
1. Create VxLAN GPE interface:
http://10.0.0.5:8181/restconf/config/ietf-interfaces:interfaces
{
"interfaces": {
"interface": [
{
"name": "vxlanGpeTun",
"description": "for testing purposes",
"type": "v3po:vxlan-gpe-tunnel",
"enabled": "true",
"link-up-down-trap-enable": "enabled",
"v3po:routing":
,
"v3po:vxlan-gpe":
}
]
}
}
2. Get the operational data using HC (response was shorted):
tibor@ws:~/ws/vpp> curl -v -su admin:admin http://10.0.0.5:8181/restconf/operational/ietf-interfaces:interfaces-state?prettyPrint=true;echo
- Trying 10.0.0.5...
- Connected to 10.0.0.5 (10.0.0.5) port 8181 (#0)
- Server auth using Basic with user 'admin'
> GET /restconf/operational/ietf-interfaces:interfaces-state?prettyPrint=true HTTP/1.1
> Host: 10.0.0.5:8181
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.42.1
> Accept: /
>
< HTTP/1.1 200 OK
< Set-Cookie: JSESSIONID=1u71f4q9t6tjp1c0uarhabq8nj;Path=/restconf
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Set-Cookie: rememberMe=deleteMe; Path=/restconf; Max-Age=0; Expires=Sun, 05-Jun-2016 07:14:13 GMT
< Content-Type: application/yang.data+json
< Vary: Accept-Encoding, User-Agent
< Transfer-Encoding: chunked
< Server: Jetty(8.1.15.v20140411)
<
{
"interfaces-state":Unknown macro: { "interface"} - Connection #0 to host 10.0.0.5 left intact
}
3. Get the operational data using vppctl:
lab@BM:~$ sudo vppctl show interfaces
Name Idx State Counter Count
GigabitEthernet0/8/0 5 down
GigabitEthernet0/9/0 6 down
local0 0 down
pg/stream-0 1 down
pg/stream-1 2 down
pg/stream-2 3 down
pg/stream-3 4 down
vxlan_gpe_tunnel0 7 up
4. Get vxlan gpe data using vppctl:
lab@BM:~$ sudo vppctl show vxlan-gpe
[0] local: 192.168.50.76 remote: 192.168.50.71 vxlan VNI 9 next-protocol unknown 0 fibs: (encap 0, decap 0)
Bug:
There are differences in values got from HC and vppctl:
- if-index
- oper-status
- next-protocol
- interface type