Visit openwrt api with namespace suffix 87/2287/1
authorchengli3 <cheng1.li@intel.com>
Fri, 6 Mar 2020 03:38:09 +0000 (11:38 +0800)
committerchengli3 <cheng1.li@intel.com>
Fri, 6 Mar 2020 03:38:09 +0000 (11:38 +0800)
commit3cda56734949e2cab22dec1207b3b2e1135d5b3d
tree31c82ba9c8c8dfaa9f815c95ba29fa44a799330f
parent8618003ba1a5d77aba5befe3dd92d1151f2cf122
Visit openwrt api with namespace suffix

openwrt api requests are sent from the sdewan controller pod. As
the controller namespace may be different with the openwrt pod.
We add the namespace suffix so that the controller can always resolv
the openwrt svc.

Signed-off-by: chengli3 <cheng1.li@intel.com>
Change-Id: I49c62ecda5d2a22e1feaaf717cfa411d4ba01b05
wrtprovider/wrtprovider.go