Project

General

Profile

Revision b7c13398

IDb7c133980f2b98a13870b0bbc3e66140bce47169
Parent d1ea2257
Child ba5cd4f1

Added by Francois POIROTTE about 14 years ago

Mise à jour des références à mainip (address).

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@3646 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

maj_bdd.py
33 33
    return g
34 34

  
35 35
# Hôte (Host)
36
#def create_Host(name, checkhostcmd, hosttpl, snmpcommunity, mainip, snmpport):
36
#def create_Host(name, checkhostcmd, hosttpl, snmpcommunity, address, snmpport):
37 37
def create_Host(name):
38 38
    h = DBSession.query(Host).filter(Host.name == name).first()
39 39
    if not h:
40 40
        h = Host(name=name,
41 41
                 checkhostcmd=u'dummy',
42 42
                 hosttpl=u'linux',
43
                 mainip=u"127.0.0.1",
43
                 address=u"127.0.0.1",
44 44
                 snmpcommunity=u"public",
45 45
                 snmpport=161,
46 46
                 weight=0)

Also available in: Unified diff