29.04.2019 Views

OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Web Services, CLI Scripting, and OpenFlow<br />

Using Python<br />

<strong>AOS</strong>Headers(Dict config)<br />

config<br />

A a dictionary that contains the current configuration:<br />

if config['json'] is True, then a mime-type of<br />

vnd.alcatellucentaos+json will be requested; if it is False, then<br />

vnd.alcatellucentaos+xml will be requested;<br />

config['api'] will be used to specify a given version of the API.<br />

Since the implementer can specify their own header object, they<br />

are free to create their own object (child of Dict or, preferably,<br />

child of <strong>AOS</strong>Headers) which will provide its own additional<br />

headers in key->value form.<br />

Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 <strong>Switch</strong> <strong>Management</strong> <strong>Guide</strong> May 2014 page 10-19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!