teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

追記

2020/02/24 07:52

投稿

narururu
narururu

スコア172

title CHANGED
File without changes
body CHANGED
@@ -7,7 +7,7 @@
7
7
  バージョン:15.2(4)E1
8
8
 
9
9
  ◇以下のURLからntc-templatesはダウンロード済み。
10
- https://github.com/networktocode/ntc-templates
10
+ [https://github.com/networktocode/ntc-templates](https://github.com/networktocode/ntc-templates)
11
11
  解凍したntc-templatesはユーザディレクトリに格納済み。
12
12
 
13
13
  ◇textfsmもインストール済み。

1

追記

2020/02/24 07:52

投稿

narururu
narururu

スコア172

title CHANGED
File without changes
body CHANGED
@@ -81,13 +81,13 @@
81
81
  output,
82
82
  platform=self.device_type,
83
83
  command=command_string.strip(),
84
- template=textfsm_template,
84
+ template=textfsm_template, ←1424行目
85
85
  )
86
86
  ```
87
87
  **utilities.py**
88
88
  ※229行目
89
89
  ```
90
- raise ValueError(msg)
90
+ raise ValueError(msg) ←229行目
91
91
  return os.path.abspath(template_dir)
92
92
  ```
93
93
  ※276行目
@@ -97,7 +97,7 @@
97
97
  raise ValueError(
98
98
  "Either 'platform/command' or 'template' must be specified."
99
99
  )
100
- template_dir = get_template_dir()
100
+ template_dir = get_template_dir() ←276行目
101
101
  index_file = os.path.join(template_dir, "index")
102
102
  textfsm_obj = clitable.CliTable(index_file, template_dir)
103
103
  return _textfsm_parse(textfsm_obj, raw_output, attrs)