remove unused tx_rate and rx_rate from vyos_interface (#37062) (#37064)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 5f3feac7fa)
This commit is contained in:
Trishna Guha 2018-03-06 17:03:53 +05:30 committed by GitHub
parent c4cb7daa6b
commit 5ec5c05f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,11 +306,9 @@ def check_declarative_intent_params(module, want, result):
have_neighbors = None
for w in want:
want_state = w.get('state')
want_tx_rate = w.get('tx_rate')
want_rx_rate = w.get('rx_rate')
want_neighbors = w.get('neighbors')
if want_state not in ('up', 'down') and not want_tx_rate and not want_rx_rate and not want_neighbors:
if want_state not in ('up', 'down') and not want_neighbors:
continue
if result['changed']: