Пример #1
0
def tlc():
    tlc = parser_methods(sh_profile_url('10.0.3.149')['tlc'])
    max_tlc = list(map(float, tlc.name_value('di')))
    max_tlc = ''.join(str(e) for e in max_tlc)
    cn_local = tlc.values()[3] + '.' + tlc.values()[4]
    cn_station = tlc.values()[5] + '.' + tlc.values()[6]
    return tlc.check_mode('dh') + max_tlc.split()  + tlc.name_value('db') + tlc.name_value('dc') + cn_local.split() \
           + cn_station.split()
Пример #2
0
def tdma_bw():
    tdma_bw = parser_methods(sh_profile_url('10.0.3.149')['tdma_bw'])
    return tdma_bw.name_value('db') + tdma_bw.name_value('dc') + tdma_bw.name_value('dd') + tdma_bw.name_value('de') \
           + tdma_bw.name_value('df') + tdma_bw.name_value('dg') + tdma_bw.name_value('dh') + tdma_bw.name_value('di') \
           + tdma_bw.name_value('dj') + tdma_bw.name_value('dk') + tdma_bw.name_value('dl') + tdma_bw.name_value('dm') \
           + tdma_bw.name_value('dn') + tdma_bw.name_value('do') + tdma_bw.name_value('dp') + tdma_bw.name_value('dq') \
           + tdma_bw.check_mode('dw') + tdma_bw.check_mode('dx') + tdma_bw.check_mode('dy') + tdma_bw.name_value('dz') \
           + tdma_bw.check_mode('dv')
Пример #3
0
def mid(ip):
    '''Rx1 + Rx2 + Transmit + Power + Transmit + 10MhzRx + 10MhzTx + SpInvRx1 + SpInvRx2 + SpInvTx +
    FreqAdjRx1 + FreqAdjRx2 + FreqAdjTx'''
    mid = parser_methods(sh_profile_url(ip)['site_setup'])
    return mid.name_value('df') + mid.name_value('de') + mid.name_value('dd') \
+ mid.check_mode('dn') + mid.check_mode('dg') + mid.check_mode('do') \
+ mid.check_mode('dh') + mid.check_mode('dp') + mid.check_mode('dm') \
+ mid.check_mode('di') + mid.name_value('dr') + mid.name_value('dq') \
+ mid.name_value('dk')
Пример #4
0
def tdma_acm():
    tdma_acm = parser_methods(sh_profile_url('10.0.3.149')['tdma_acm'])
    cn_th = tdma_acm.values()[0] + '.' + tdma_acm.values()[1]
    if tdma_acm.select('dc') == ['1']:
        return tdma_acm.check_mode('db') + tdma_acm.select('dc') + tdma_acm.check_mode('dh') + tdma_acm.check_mode('dl') \
           + tdma_acm.check_mode('dp') + tdma_acm.check_mode('di') + tdma_acm.check_mode('dm') \
           + tdma_acm.check_mode('dq') + tdma_acm.check_mode('dj') + tdma_acm.check_mode('dn') \
           + tdma_acm.check_mode('dr') + tdma_acm.check_mode('dk') + tdma_acm.check_mode('do') \
           + tdma_acm.check_mode('ds') + cn_th.split()
    else:
        return tdma_acm.check_mode('db') + tdma_acm.select(
            'dc') + cn_th.split()
Пример #5
0
def location(ip):
    '''Lat + deg + min + Long + deg + min'''
    location = parser_methods(sh_profile_url(ip)['site_setup'])
    return location.name_value('du') + location.name_value('dv') + list(location.select('dw')) \
            + location.name_value('dx') + location.name_value('dy') + list(location.select('dz'))
Пример #6
0
def site_name(ip):
    site_name = parser_methods(sh_profile_url(ip)['site_setup'])
    return site_name.name_value('td')
Пример #7
0
def bottom(ip):
    ''' SCPC_mode + TDMA mode + NET_ID + RF_ID + Gloabal_TX'''
    '''TDMA_mode: 0 - 6, 1 - 12, 2 -24, 3 - 40'''
    bottom = parser_methods(sh_profile_url(ip)['site_setup'])
    return bottom.name_value('dt') + bottom.select('ds') + bottom.name_value('dc') + bottom.name_value('db') \
+ bottom.name_value('dl')
Пример #8
0
def tdm_rx():
    tdm_rx = parser_methods(sh_profile_url('10.0.3.149')['tdm_rx'])
    return tdm_rx.select('dj') + tdm_rx.name_value('db') + tdm_rx.name_value(
        'dc')
Пример #9
0
def roaming():
    roaming = parser_methods(sh_profile_url('10.0.3.149')['roaming'])
    return roaming.check_mode('db') + roaming.name_value('dc')
Пример #10
0
def tdma_prot():
    tdma_prot = parser_methods(sh_profile_url('10.0.3.149')['tdma_prot'])
    return tdma_prot.values() + tdma_prot.check_mode('dg')
Пример #11
0
def tdma_rf():
    tdma_rf = parser_methods(sh_profile_url('10.0.3.149')['tdma_rf'])
    modcod = tdma_rf.f_sel_text('option').split()
    return tdma_rf.name_value('db') + modcod + tdma_rf.check_mode('d6') + tdma_rf.check_mode('d7') \
           + tdma_rf.name_value('dv') + tdma_rf.name_value('dL')
Пример #12
0
def tdm_acm():
    tdm_acm = parser_methods(sh_profile_url('10.0.3.149')['tdm_acm'])
    cn_th = tdm_acm.values()[0] + '.' + tdm_acm.values()[1]
    return tdm_acm.check_mode('db') + tdm_acm.selects() + cn_th.split()
Пример #13
0
def basic():
    basic = parser_methods(sh_profile_url('10.0.3.149')['basic'])
    return basic.selects() + basic.checkboxes() + basic.values()
Пример #14
0
def timing():
    timing = parser_methods(sh_profile_url('10.0.3.149')['timing'])
    return timing.select('de') + timing.name_value('df')
Пример #15
0
def mod():
    mod = parser_methods(sh_profile_url('10.0.3.149')['mod'])
    mod_lvl = [
        i + '.' + j for i, j in zip(mod.name_value('db'), mod.name_value('dc'))
    ]
    return mod.check_mode('dd') + mod_lvl
Пример #16
0
def tdm_tx():
    tdm_tx = parser_methods(sh_profile_url('10.0.3.149')['tdm_tx'])
    return  tdm_tx.name_value('db') + tdm_tx.name_value('dc') + tdm_tx.select('de') + tdm_tx.check_mode('dg') \
+ tdm_tx.select('df')