|
8 | 8 |
|
9 | 9 | parser_map: t.Dict[str, t.Type[parser.BaseConfigParser]] = { |
10 | 10 | "arista_eos": parser.EOSConfigParser, |
11 | | - "aruba_aoscx": parser.ArubaConfigParser, |
| 11 | + "aruba_aoscx": parser.ArubaConfigCXParser, |
| 12 | + "aruba_os": parser.ArubaConfigOSParser, |
| 13 | + "aruba_osswitch": parser.ArubaConfigOSParser, |
12 | 14 | "bigip_f5": parser.F5ConfigParser, |
13 | 15 | "cisco_aireos": parser.AIREOSConfigParser, |
14 | 16 | "cisco_asa": parser.ASAConfigParser, |
@@ -196,7 +198,9 @@ def compliance( |
196 | 198 |
|
197 | 199 |
|
198 | 200 | def config_section_not_parsed( |
199 | | - features: t.List[t.Dict[str, t.Union[str, bool, t.List[str]]]], device_cfg: str, network_os: str |
| 201 | + features: t.List[t.Dict[str, t.Union[str, bool, t.List[str]]]], |
| 202 | + device_cfg: str, |
| 203 | + network_os: str, |
200 | 204 | ) -> t.Dict[str, t.Union[str, t.List[str]]]: |
201 | 205 | r"""Return device config section that is not checked by compliance. |
202 | 206 |
|
@@ -291,7 +295,10 @@ def diff_network_config(compare_config: str, base_config: str, network_os: str) |
291 | 295 |
|
292 | 296 |
|
293 | 297 | def feature_compliance( |
294 | | - feature: t.Dict[str, t.Union[str, bool, t.List[str]]], backup_cfg: str, intended_cfg: str, network_os: str |
| 298 | + feature: t.Dict[str, t.Union[str, bool, t.List[str]]], |
| 299 | + backup_cfg: str, |
| 300 | + intended_cfg: str, |
| 301 | + network_os: str, |
295 | 302 | ) -> t.Dict[str, t.Union[str, bool]]: |
296 | 303 | r"""Report compliance for all features provided as input. |
297 | 304 |
|
@@ -391,7 +398,11 @@ def find_unordered_cfg_lines(intended_cfg: str, actual_cfg: str) -> t.Tuple[bool |
391 | 398 | return (False, unordered_lines) |
392 | 399 |
|
393 | 400 |
|
394 | | -def section_config(feature: t.Dict[str, t.Union[str, bool, t.List[str]]], device_cfg: str, network_os: str) -> str: |
| 401 | +def section_config( |
| 402 | + feature: t.Dict[str, t.Union[str, bool, t.List[str]]], |
| 403 | + device_cfg: str, |
| 404 | + network_os: str, |
| 405 | +) -> str: |
395 | 406 | """Parse feature section config from device cfg. |
396 | 407 |
|
397 | 408 | In case section attribute of the the feature is not provided |
|
0 commit comments