Skip to content

Commit

Permalink
few fixes to prep rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkala committed Jun 27, 2024
1 parent 2150773 commit 740a39b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/user/app_yaml_overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ There are only a few components to the file and they're described below:
- `root key data name` - Is fully defined in the schema definition.
- `commands` - List of commands to execute in order to get the required data.
- `command` - Actual `show` command to execute.
- `parser` - Whether to use a parser (textfsm, pyats, ttp, etc) alternatively `no` can be used if the platform supports some other method to return structured data. E.g. (`| display json`) or an equivalent.
- `parser` - Whether to use a parser (textfsm, pyats, ttp, etc) alternatively `none` can be used if the platform supports some other method to return structured data. E.g. (`| display json`) or an equivalent.
- `jpath` - The jmespath (specifically jdiffs implementation) to extract the data from the parsed json returned from parser.
- `post_processor` - Jinja2 capable code to further transform the returned data post jpath extraction.
- `iterable_type` - A optional value to force a parsed result to a specific data type.
Expand Down
1 change: 1 addition & 0 deletions nautobot_device_onboarding/command_mappers/cisco_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ sync_devices:
parser: "textfsm"
jpath: "[*].hardware[]"
post_processor: "{{ obj | unique | first }}"
iterable_type: "str"
mgmt_interface:
commands:
- command: "show interfaces"
Expand Down
4 changes: 2 additions & 2 deletions nautobot_device_onboarding/nornir_plays/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def sync_devices_schema(json_schema=True):
"properties": {
"hostname": {"type": "string", "description": "Hostname of the network device"},
"serial": {"type": "string", "description": "Serial number of the network device"},
"device_type": {"type": "string", "description": "Type of the network device"},
"device_type": {"type": ["string", "integer"], "description": "Type of the network device"},
"mgmt_interface": {"type": "string", "description": "Management interface of the network device"},
"mask_length": {
"type": "integer",
Expand Down Expand Up @@ -117,7 +117,7 @@ def sync_network_data_schema(json_schema=True):
"minItems": 1,
},
"hostname": {"type": "string"},
"device_type": {"type": "string"},
"device_type": {"type": ["string", "integer"]},
"mgmt_interface": {"type": "string"},
"mask_length": {"type": "integer"},
},
Expand Down

0 comments on commit 740a39b

Please sign in to comment.