summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xcli/gobgpcli4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/gobgpcli b/cli/gobgpcli
index 55d9b379..fada58e1 100755
--- a/cli/gobgpcli
+++ b/cli/gobgpcli
@@ -50,9 +50,9 @@ class Action(object):
self.base_url = self.options.url + ":" + str(self.options.port) + "/v1/bgp"
def __call__(self):
- if len(self.args) != 1:
+ if len(self.args) != 2:
return 1
- r = requests.post(self.base_url + "/neighbor/" + self.args[0] + "/" + self.command)
+ r = requests.post(self.base_url + "/neighbor/" + self.args[1] + "/" + self.command)
if r.status_code == requests.codes.ok:
print "Succeed"
else: