mnoptical.network
¶
Module Contents¶
Classes¶
- class mnoptical.network.Network¶
Bases:
object
- add_lt(name, transceivers=None, **params)¶
Add lt node :param name: name of lt :param transceivers: transceivers of LT for automated instantiation :return: added lt
- add_roadm(name, **params)¶
Add a ROADM node. :param name: name of ROADM :return: added ROADM
- add_amplifier(name, amplifier_type='EDFA', **params)¶
Add an Amplifier node. :param name: name of Amplifier :param amplifier_type: amplifier type (currently supporting only EDFA) :return: added Amplifier
- add_link(src_node, dst_node, src_out_port=-1, dst_in_port=-1, boost_amp=None, spans=None, **params)¶
Add a uni-directional link :param src_node: source node in link :param dst_node: destination node in link :param src_out_port: src_node output port :param dst_in_port: dst_node input port :param boost_amp: optional amplifier object for boost_amplification :param spans: :param **params: optional keyword parameters for fiber/span (eg. srs_model, wd_loss etc.) :return: created and added link
- find_link_and_out_port_from_nodes(src_node, dst_node)¶
This does not consider if there are multiple output ports to the dst_node, as it is the case of the LTs and ROADMs
- find_link_and_in_port_from_nodes(src_node, dst_node)¶
This checks
- find_link_from_nodes(src_node, dst_node)¶
- static find_out_port_from_link(link)¶
- describe()¶