diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-16 09:40:55 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-16 09:40:55 +0900 |
commit | 7d95d771ff4a4e44f005d454312c87ae4fe9d322 (patch) | |
tree | 6576dd4bdec560cbfa37d5b396d579ceec2fffad /cli | |
parent | 03bf3795ef880537d37349ea7a772daafcddd0de (diff) |
cli: fix action command line
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/gobgpcli | 4 |
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: |