Changeset 11510 in genesis


Ignore:
Timestamp:
Sep 28, 2012, 8:02:34 PM (12 years ago)
Author:
rick
Message:

Some second part allowing basic interface creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/node-editor

    r11506 r11510  
    5959   
    6060
    61 rlinput_choices("Test", gformat.get_hostlist())
    6261
    6362
     
    10099    ifname = rlinput("Interface name", "vr%i" % if_nr)
    101100    if_nr = if_nr + 1
    102     remote = rlinput("Remote Node", "Unused")
     101    remote = rlinput_choices("Create interlink", gformat.get_hostlist(),'HybridCeTIM2')
     102    remote_datadump = gformat.get_yaml(remote)
     103    print "Available remote interfaces:"
     104    for ifkey in remote_datadump['autogen_iface_keys']:
     105      ifdump = remote_datadump[ifkey]
     106      print " - %4s" % ifdump['autogen_ifbase'], '- %30s' % ifdump['comment'],
     107      if ifdump.has_key('ssid'):
     108        print '-', ifdump['ssid']
     109      else:
     110        print ''
     111    iface = rlinput_choices("Interface Used", remote_datadump['autogen_iface_keys'], "vr1")
    103112    netmask = 28
    104113    print "Generating the Interlink IP range..."
    105114    link_network = getrange.get_ranges(True, netmask, 1)[0]
     115
    106116    datadump['iface_%s' % ifname] = {
    107117      'comment': rlinput(" - Comment", "Link naar " + remote),
Note: See TracChangeset for help on using the changeset viewer.