noc.inv.models.interface

Module Contents

noc.inv.models.interface.INTERFACE_TYPES
noc.inv.models.interface.INTERFACE_PROTOCOLS
noc.inv.models.interface.logger
class noc.inv.models.interface.Interface

Bases: mongoengine.document.Document

Interfaces

meta
managed_object
name
type
description
ifindex
mac
aggregated_interface
enabled_protocols
profile
profile_locked
project
state
vc_domain
admin_status
oper_status
oper_status_change
full_duplex
in_speed
out_speed
bandwidth
coverage
technologies
nri_name
service

Return Link instance or None :return:

is_linked

Check interface is linked :returns: True if interface is linked, False otherwise

subinterface_set
lag_members
effective_vc_domain
status

Returns interface status in form of Up/100/Full

parent

Returns aggregated interface for LAG or self for non-aggregated interface

__str__(self)
iter_changed_datastream(self, changed_fields=None)
save(self, *args, **kwargs)
on_delete(self)

Remove existing link. Raise ValueError if interface is not linked

Create p-t-p link with other interface Raise ValueError if either of interface already connected. :param other: Other Iface for link :param method: Linking method :type other: Interface :returns: Link instance

classmethod get_interface(cls, s)

Parse <managed object>@<interface> string and return interface instance or None

set_oper_status(self, status)

Set current oper status

get_profile(self)