Users Guide

Table Of Contents
Return Values
msg:
type: str
description: Overall status of the template VLAN operation.
returned: always
sample: "Successfully applied the network settings to template"
error_info:
description: Details of the HTTP Error.
returned: on HTTP error
type: dict
sample: {
"error": {
"@Message.ExtendedInfo": [{
"Message": "Unable to process the request because an error occurred:",
"MessageArgs": "",
"MessageId": "CGEN6001",
"RelatedProperties": [],
"Resolution": "Retry the operation. If the issue persists, contact your
system administrator.",
"Severity": "Critical"
}],
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information."
}}
'''
Examples
- name: Add tagged or untagged VLANs to a template using VLAN ID and name.
ome_template_network_vlan:
hostname: "192.168.0.1"
username: "username"
password: "password"
template_id: 78
nic_identifier: NIC Slot 4
untagged_networks:
- port: 1
untagged_network_id: 127656
- port: 2
untagged_network_name: vlan2
tagged_networks:
- port: 1
tagged_network_ids:
- 12767
- 12768
- port: 4
tagged_network_ids:
- 12767
- 12768
tagged_network_names:
- vlan3
- port: 2
tagged_network_names:
- vlan4
- vlan1
- name: Clear the tagged and untagged VLANs from a template.
ome_template_network_vlan:
hostname: "192.168.0.1"
username: "username"
password: "password"
template_id: 78
nic_identifier: NIC Slot 4
untagged_networks:
- port: 1
untagged_network_id: 0
- port: 2
untagged_network_name: 0
tagged_networks:
- port: 1
tagged_network_ids: []
62
Modules for OpenManage Enterprise (OME)