diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-16 16:39:49 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-11-16 16:39:49 +0100 |
commit | 00639f6c84457eff08760dcdd66b654eb39629d1 (patch) | |
tree | 479353d077d0b64ee0b789e119776da601fe389c /src/op_mode/bridge.py | |
parent | 612005604d14b70f953e07e5b4f04e60192fb2e1 (diff) | |
download | vyos-1x-00639f6c84457eff08760dcdd66b654eb39629d1.tar.gz vyos-1x-00639f6c84457eff08760dcdd66b654eb39629d1.zip |
bridge: T4673: remove "sudo" as there is no need to elevate permissions
Diffstat (limited to 'src/op_mode/bridge.py')
-rwxr-xr-x | src/op_mode/bridge.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/bridge.py b/src/op_mode/bridge.py index 5a821a287..d6098c158 100755 --- a/src/op_mode/bridge.py +++ b/src/op_mode/bridge.py @@ -32,7 +32,7 @@ def _get_json_data(): """ Get bridge data format JSON """ - return cmd(f'sudo bridge --json link show') + return cmd(f'bridge --json link show') def _get_raw_data_summary(): @@ -48,7 +48,7 @@ def _get_raw_data_vlan(): """ :returns dict """ - json_data = cmd('sudo bridge --json --compressvlans vlan show') + json_data = cmd('bridge --json --compressvlans vlan show') data_dict = json.loads(json_data) return data_dict @@ -57,7 +57,7 @@ def _get_raw_data_fdb(bridge): """Get MAC-address for the bridge brX :returns list """ - code, json_data = rc_cmd(f'sudo bridge --json fdb show br {bridge}') + code, json_data = rc_cmd(f'bridge --json fdb show br {bridge}') # From iproute2 fdb.c, fdb_show() will only exit(-1) in case of # non-existent bridge device; raise error. if code == 255: |