summaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-16 09:40:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-16 09:40:55 +0900
commit7d95d771ff4a4e44f005d454312c87ae4fe9d322 (patch)
tree6576dd4bdec560cbfa37d5b396d579ceec2fffad /cli
parent03bf3795ef880537d37349ea7a772daafcddd0de (diff)
cli: fix action command line
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cli')
-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: