Always run iptables-save as root

When there is a failure and we run commands to collect
network information, the iptables-save command always
fails in the root namespace:

  Executing command 'iptables-save' on local host (timeout=None)...
  Command 'iptables-save' failed (exit_status=4):
  stderr:
  iptables-save v1.8.7 (nf_tables): Could not fetch rule set
    generation id: Permission denied (you must be root)

Change list_iptables() to always use sudo fixes the issue.

Trivialfix

Change-Id: I656569cb333e98f5f55b51b0cfec8e99922424b3
1 file changed