diff options
author | aapostoliuk <a.apostoliuk@vyos.io> | 2022-07-26 13:05:10 +0300 |
---|---|---|
committer | aapostoliuk <a.apostoliuk@vyos.io> | 2022-07-26 13:05:10 +0300 |
commit | 59927630d982b7489c4d6d9c8fda1a54fbf1945b (patch) | |
tree | 40d5ac90af2bffda5f65938f621af65c880e944f | |
parent | 8274e9706adf33544e4c990134e65a0ddee976d8 (diff) | |
download | vyos-1x-59927630d982b7489c4d6d9c8fda1a54fbf1945b.tar.gz vyos-1x-59927630d982b7489c4d6d9c8fda1a54fbf1945b.zip |
nhrp: T4546: Fixed gateway in route add command
Fixed incorrect key to get gateway for route add command
-rwxr-xr-x | src/etc/opennhrp/opennhrp-script.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/opennhrp/opennhrp-script.py b/src/etc/opennhrp/opennhrp-script.py index 5a64dade8..8274e6564 100755 --- a/src/etc/opennhrp/opennhrp-script.py +++ b/src/etc/opennhrp/opennhrp-script.py @@ -62,7 +62,7 @@ def add_peer_route(nbma_src: str, nbma_dst: str, mtu: str) -> None: for route_item in route_info_data: route_dev = route_item.get('dev') route_dst = route_item.get('dst') - route_gateway = route_item.get('route_gateway') + route_gateway = route_item.get('gateway') # Prepare a command to add a route route_add_cmd = 'sudo ip route add' if route_dst: |