[stable-2.8] Don't detect update if vrf not set. (#56235) (#56421)

* [stable-2.8] Don't detect update if vrf not set. (#56235)
(cherry picked from commit ea41bbc)
This commit is contained in:
Nathaniel Case 2019-05-24 17:27:33 -04:00 committed by Toshio Kuratomi
parent 0a40b0ed45
commit 39c5758a87
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "eos_eapi: fix idempotency issues when vrf was unspecified."

View file

@ -299,7 +299,7 @@ def map_config_to_obj(module):
'local_http': out[0]['localHttpServer']['configured'],
'local_http_port': out[0]['localHttpServer']['port'],
'socket': out[0]['unixSocketServer']['configured'],
'vrf': out[0]['vrf'],
'vrf': out[0]['vrf'] or "default",
'state': parse_state(out)
}