Пример #1
0
def net_fixtures (scope) :
    """ Create more fixtures for testing IP allocation and polymorphic
        queries on owner.
    """
    create (scope)
    scope.commit ()
    FFM   = scope.FFM
    PAP   = scope.PAP
    cta   = PAP.Person \
        (first_name = 'Christian', last_name = 'Tanzer', raw = True)
    dtype = FFM.Net_Device_Type.instance (name = 'Generic', raw = True)
    rsc   = PAP.Person.query (first_name = 'ralf').one ()
    swing = PAP.Company (name = "Swing")
    ff    = PAP.Association (name = "Funkfeuer")
    n1    = FFM.Node \
        (name = "Node-net1", manager = cta, owner = swing, raw = True)
    n2    = FFM.Node (name = "Node-net2", manager = cta, owner = ff, raw = True)
    n3    = FFM.Node (name = "Node-net3", manager = rsc, owner = ff, raw = True)
    n4    = FFM.Node (name = "Node-net4", manager = rsc, raw = True)
    net   = FFM.IP4_Network \
        (net_address = '10.10.0.0/16', owner = ff, raw = True)
    nv6   = FFM.IP6_Network ('2001:db8::/32', owner = swing, raw = True)
    n1d1  = FFM.Net_Device \
        (left = dtype, node = n1, name = 'n1d1', raw = True)
    n1d2  = FFM.Net_Device \
        (left = dtype, node = n1, name = 'n1d2', raw = True)
    n2d1  = FFM.Net_Device \
        (left = dtype, node = n2, name = 'n2d1', raw = True)
    n2d2  = FFM.Net_Device \
        (left = dtype, node = n2, name = 'n2d2', raw = True)
    n2d3  = FFM.Net_Device \
        (left = dtype, node = n2, name = 'n2d3', raw = True)
    n3d1  = FFM.Net_Device \
        (left = dtype, node = n3, name = 'n3d1', raw = True)
    n4d1  = FFM.Net_Device \
        (left = dtype, node = n4, name = 'n4d1', raw = True)
    n4d2  = FFM.Net_Device \
        (left = dtype, node = n4, name = 'n4d2', raw = True)
    n4d3  = FFM.Net_Device \
        (left = dtype, node = n4, name = 'n4d3', raw = True)
    n4d4  = FFM.Net_Device \
        (left = dtype, node = n4, name = 'n4d4', raw = True)
    n4d5  = FFM.Net_Device \
        (left = dtype, node = n4, name = 'n4d5', raw = True)
Пример #2
0
#
#++
# Name
#    auto_imports
#
# Purpose
#    Automatically import MOM-related modules that are needed during
#    sphinx run (import when a specific module is documented is too late!)
#
# Revision Dates
#    17-Aug-2015 (CT) Creation
#    ««revision-date»»···
#--

from _MOM import MOM
from _GTW._OMP._Auth import Auth
from _GTW._OMP._EVT import EVT
from _GTW._OMP._PAP import PAP
from _GTW._OMP._SRM import SRM
from _GTW._OMP._SWP import SWP

MOM._Import_All()
MOM.Attr._Import_All()
Auth._Import_All()
EVT._Import_All()
PAP._Import_All()
SRM._Import_All()
SWP._Import_All()

### __END__ auto_imports
Пример #3
0
# -*- coding: utf-8 -*-
# Copyright (C) 2015 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. [email protected]
# ****************************************************************************
# This package is part of the package GTW.OMP.PAP.
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.c-tanzer.at/license/bsd_3c.html>.
# ****************************************************************************
#
#++
# Name
#    GTW.OMP.PAP.E164.__init__
#
# Purpose
#    Package providing country specific information about E.164, aka,
#    the international public telecommunication numbering plan
#
# Revision Dates
#    23-Jul-2015 (CT) Creation
#    ««revision-date»»···
#--

from _GTW._OMP._PAP import PAP
from _TFL.Package_Namespace import Package_Namespace

E164 = Package_Namespace()
PAP._Export("E164")

### __END__ GTW.OMP.PAP.E164.__init__
Пример #4
0
#
#++
# Name
#    auto_imports
#
# Purpose
#    Automatically import MOM-related modules that are needed during
#    sphinx run (import when a specific module is documented is too late!)
#
# Revision Dates
#    17-Aug-2015 (CT) Creation
#    ««revision-date»»···
#--

from _MOM                import MOM
from _GTW._OMP._Auth     import Auth
from _GTW._OMP._EVT      import EVT
from _GTW._OMP._PAP      import PAP
from _GTW._OMP._SRM      import SRM
from _GTW._OMP._SWP      import SWP

MOM._Import_All      ()
MOM.Attr._Import_All ()
Auth._Import_All     ()
EVT._Import_All      ()
PAP._Import_All      ()
SRM._Import_All      ()
SWP._Import_All      ()

### __END__ auto_imports
Пример #5
0
# -*- coding: utf-8 -*-
# Copyright (C) 2015 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. [email protected]
# ****************************************************************************
# This package is part of the package GTW.OMP.PAP.
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.c-tanzer.at/license/bsd_3c.html>.
# ****************************************************************************
#
#++
# Name
#    GTW.OMP.PAP.E164.__init__
#
# Purpose
#    Package providing country specific information about E.164, aka,
#    the international public telecommunication numbering plan
#
# Revision Dates
#    23-Jul-2015 (CT) Creation
#    ««revision-date»»···
#--

from   _GTW._OMP._PAP         import PAP
from   _TFL.Package_Namespace import Package_Namespace

E164 = Package_Namespace ()
PAP._Export ("E164")

### __END__ GTW.OMP.PAP.E164.__init__