mnoptical.ofcdemo.lumentum_NETCONF_API
¶
Lumentum ROADM 20 Control API
Author: Jiakai Yu (jiakaiyu@email.arizona.edu) Created: 2019/03/09 Version: 2.1
Last modified by Jiakai: 2020/08/11 Cleaned up slightly by BL: 2022
Module Contents¶
Classes¶
Attributes¶
- mnoptical.ofcdemo.lumentum_NETCONF_API.USERNAME = 'superuser'¶
- mnoptical.ofcdemo.lumentum_NETCONF_API.PASSWORD = 'Sup%9User'¶
- class mnoptical.ofcdemo.lumentum_NETCONF_API.Lumentum(IP_addr, username=USERNAME, password=PASSWORD)¶
- class WSSConnection(module, connection_id, operation, blocked, input_port, output_port, start_freq, end_freq, attenuation, name)¶
- class WSSConnectionStatus(module, connection_id, operation, blocked, input_port, output_port, start_freq, end_freq, attenuation, name, input_power, output_power, ne, chassis, card)¶
Bases:
Lumentum.WSSConnection
- classmethod from_connection_details(connection_details)¶
- connections¶
- cleanup()¶
- static lookup(node, path)¶
Look up path in a dict tree and return the result note for /some/0/path ‘0’ is looked up as an int
- static lookupstr(node, path)¶
Look up path and node and return it as a string
- edfa_status()¶
Return status of Boost and Preamp EDFAs
- ALS_disable(module)¶
- edfa_config(module, ctrl_mode, status, gain_mode, target_power, target_gain, tilt, ALS)¶
- wss_add_connections(connections)¶
- wss_delete_connection(module_id, connection_id)¶
- wss_get_connections()¶
- static freqRangeGHz(channel)¶
Return frequency range (startGHz, endGHz) for channel
- static gen_dwdm_connections(module, input_port, output_port, loss=0.0, channel_spacing=50.0, channel_width=50.0)¶
- Parameters:
module –
input_port –
output_port –
channel_spacing – in GHz
channel_width – in GHz
- Returns: