| @@ 5351-5381 (lines=31) @@ | ||
| 5348 | ||
| 5349 | return self._send_xml_command(cmd) |
|
| 5350 | ||
| 5351 | def modify_port_list( |
|
| 5352 | self, |
|
| 5353 | port_list_id: str, |
|
| 5354 | *, |
|
| 5355 | comment: Optional[str] = None, |
|
| 5356 | name: Optional[str] = None, |
|
| 5357 | ) -> Any: |
|
| 5358 | """Modifies an existing port list. |
|
| 5359 | ||
| 5360 | Arguments: |
|
| 5361 | port_list_id: UUID of port list to modify. |
|
| 5362 | name: Name of port list. |
|
| 5363 | comment: Comment on port list. |
|
| 5364 | ||
| 5365 | Returns: |
|
| 5366 | The response. See :py:meth:`send_command` for details. |
|
| 5367 | """ |
|
| 5368 | if not port_list_id: |
|
| 5369 | raise RequiredArgument( |
|
| 5370 | function=self.modify_port_list.__name__, argument='port_list_id' |
|
| 5371 | ) |
|
| 5372 | cmd = XmlCommand("modify_port_list") |
|
| 5373 | cmd.set_attribute("port_list_id", port_list_id) |
|
| 5374 | ||
| 5375 | if comment: |
|
| 5376 | cmd.add_element("comment", comment) |
|
| 5377 | ||
| 5378 | if name: |
|
| 5379 | cmd.add_element("name", name) |
|
| 5380 | ||
| 5381 | return self._send_xml_command(cmd) |
|
| 5382 | ||
| 5383 | def modify_report_format( |
|
| 5384 | self, |
|
| @@ 6579-6609 (lines=31) @@ | ||
| 6576 | ||
| 6577 | return self._send_xml_command(cmd) |
|
| 6578 | ||
| 6579 | def modify_port_list( |
|
| 6580 | self, |
|
| 6581 | port_list_id: str, |
|
| 6582 | *, |
|
| 6583 | comment: Optional[str] = None, |
|
| 6584 | name: Optional[str] = None, |
|
| 6585 | ) -> Any: |
|
| 6586 | """Modifies an existing port list. |
|
| 6587 | ||
| 6588 | Arguments: |
|
| 6589 | port_list_id: UUID of port list to modify. |
|
| 6590 | name: Name of port list. |
|
| 6591 | comment: Comment on port list. |
|
| 6592 | ||
| 6593 | Returns: |
|
| 6594 | The response. See :py:meth:`send_command` for details. |
|
| 6595 | """ |
|
| 6596 | if not port_list_id: |
|
| 6597 | raise RequiredArgument( |
|
| 6598 | function=self.modify_port_list.__name__, argument='port_list_id' |
|
| 6599 | ) |
|
| 6600 | cmd = XmlCommand("modify_port_list") |
|
| 6601 | cmd.set_attribute("port_list_id", port_list_id) |
|
| 6602 | ||
| 6603 | if comment: |
|
| 6604 | cmd.add_element("comment", comment) |
|
| 6605 | ||
| 6606 | if name: |
|
| 6607 | cmd.add_element("name", name) |
|
| 6608 | ||
| 6609 | return self._send_xml_command(cmd) |
|
| 6610 | ||
| 6611 | def modify_report_format( |
|
| 6612 | self, |
|