Gerhard,
I was using KA 15.14.003 on my switches, just updated to KA 15.15.006
No longer seeing the port_id offset when using separate VLANs.
curl -sk -H "X-Auth-Token: $Token" https://localhost:8443/sdn/v2.0/of/stats/ports?dpid="00:02:c8:cb:b8:3e:fe:40"
{"stats":[{"dpid":"00:02:c8:cb:b8:3e:fe:40","version":"1.3.0","port_stats"
{"stats":[{"dpid":"00:02:c8:cb:b8:3e:fe:40","version":"1.3.0","port_stats":[{"port_id":23,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":25,"rx_packets":91,"tx_packets":93,"rx_bytes":18872,"tx_bytes":19220,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":26,"rx_packets":91,"tx_packets":93,"rx_bytes":18201,"tx_bytes":18538,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":7,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":4,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":18,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":3,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":20,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":22,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":10,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":8,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":21,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":5,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":14,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":16,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":11,"rx_packets":0,"tx_packets":93,"rx_bytes":0,"tx_bytes":19189,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":15,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":17,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":24,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":6,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":12,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":13,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":9,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":19,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0},{"port_id":4294967294,"rx_packets":0,"tx_packets":0,"rx_bytes":0,"tx_bytes":0,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0}]}]}rduser@rdch200:~$ {"stats":[{"dpid":"00:02:c8:cb:b8:3e:fe:40","version":"1.3.0","port_stats"
curl -sk -H "X-Auth-Token: $Token" --header "Content-Type:application/json" --request GET --url https://localhost:8443/sdn/v2.0/of/stats/ports?dpid="00:02:c8:cb:b8:3e:fe:40"\&port_id="11"
{"stats":[{"dpid":"00:02:c8:cb:b8:3e:fe:40","version":"1.3.0","port_stats":[{"port_id":11,"rx_packets":0,"tx_packets":97,"rx_bytes":0,"tx_bytes":19883,"rx_dropped":0,"tx_dropped":0,"rx_errors":0,"tx_errors":0,"collisions":0,"duration_sec":4294967295,"duration_nsec":4294967295,"rx_crc_err":0,"rx_frame_err":0,"rx_over_err":0}]}]}
Dave.
#SDNswitchOS