stats: create /run/vpp before stat socket bind() 04/20004/9
authorYohanPipereau <ypiperea@cisco.com>
Thu, 6 Jun 2019 14:34:14 +0000 (16:34 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 9 Aug 2019 07:53:46 +0000 (07:53 +0000)
commit71dd9d5ff8f9f629d7d917cc2b3695a910640602
tree8e536878e88381a50dfb7ab10cbd60105590cbc5
parentedfe2c0079a756f5fb1108037c39450e3521c8bd
stats: create /run/vpp before stat socket bind()

When VPP tries to bind to stats.sock it will complain about non-existing
/run/vpp directory.
/run/vpp is created before cli socket operations are performed.
The same should be done for stat socket.

Ticket: VPP-1708
Type: fix
Change-Id: I53d70939c8125d04a365ac51a6cbf8926dc52adf
Signed-off-by: YohanPipereau <ypiperea@cisco.com>
Signed-off-by: Ole Troan <ot@cisco.com>
src/vlib/unix/cli.c
src/vpp-api/client/stat_client.h
src/vpp-api/python/vpp_papi/vpp_stats.py
src/vpp/stats/stat_segment.c