'Create dialog body'

def body(self, master):

    self.rootFrame = master
    self.leftfieldFrame = Frame(self.rootFrame, padx=5, pady=5)
    self.leftfieldFrame.grid(row=0, column=0, sticky='nswe', columnspan=2)
    self.rightfieldFrame = Frame(self.rootFrame, padx=5, pady=5)
    self.rightfieldFrame.grid(row=0, column=2, sticky='nswe', columnspan=2)
    Label(self.leftfieldFrame, text='IP    Base:').grid(row=0, sticky=E)
    self.ipEntry = Entry(self.leftfieldFrame)
    self.ipEntry.grid(row=0, column=1)
    ipBase = self.prefValues['ipBase']
    self.ipEntry.insert(0, ipBase)
    Label(self.leftfieldFrame, text='Default    Terminal:').grid(row=1, sticky=E)
    self.terminalVar = StringVar(self.leftfieldFrame)
    self.terminalOption = OptionMenu(self.leftfieldFrame, self.terminalVar, 'xterm', 'gterm')
    self.terminalOption.grid(row=1, column=1, sticky=W)
    terminalType = self.prefValues['terminalType']
    self.terminalVar.set(terminalType)
    Label(self.leftfieldFrame, text='Start    CLI:').grid(row=2, sticky=E)
    self.cliStart = IntVar()
    self.cliButton = Checkbutton(self.leftfieldFrame, variable=self.cliStart)
    self.cliButton.grid(row=2, column=1, sticky=W)
    if (self.prefValues['startCLI'] == '0'):
        self.cliButton.deselect()
    else:
        self.cliButton.select()
    Label(self.leftfieldFrame, text='Default    Switch:').grid(row=3, sticky=E)
    self.switchType = StringVar(self.leftfieldFrame)
    self.switchTypeMenu = OptionMenu(self.leftfieldFrame, self.switchType, 'Open    vSwitch    Kernel    Mode', 'Indigo    Virtual    Switch', 'Userspace    Switch', 'Userspace    Switch    inNamespace')
    self.switchTypeMenu.grid(row=3, column=1, sticky=W)
    switchTypePref = self.prefValues['switchType']
    if (switchTypePref == 'ivs'):
        self.switchType.set('Indigo    Virtual    Switch')
    elif (switchTypePref == 'userns'):
        self.switchType.set('Userspace    Switch    inNamespace')
    elif (switchTypePref == 'user'):
        self.switchType.set('Userspace    Switch')
    else:
        self.switchType.set('Open    vSwitch    Kernel    Mode')
    ovsFrame = LabelFrame(self.leftfieldFrame, text='Open    vSwitch', padx=5, pady=5)
    ovsFrame.grid(row=4, column=0, columnspan=2, sticky=EW)
    Label(ovsFrame, text='OpenFlow    1.0:').grid(row=0, sticky=E)
    Label(ovsFrame, text='OpenFlow    1.1:').grid(row=1, sticky=E)
    Label(ovsFrame, text='OpenFlow    1.2:').grid(row=2, sticky=E)
    Label(ovsFrame, text='OpenFlow    1.3:').grid(row=3, sticky=E)
    self.ovsOf10 = IntVar()
    self.covsOf10 = Checkbutton(ovsFrame, variable=self.ovsOf10)
    self.covsOf10.grid(row=0, column=1, sticky=W)
    if (self.prefValues['openFlowVersions']['ovsOf10'] == '0'):
        self.covsOf10.deselect()
    else:
        self.covsOf10.select()
    self.ovsOf11 = IntVar()
    self.covsOf11 = Checkbutton(ovsFrame, variable=self.ovsOf11)
    self.covsOf11.grid(row=1, column=1, sticky=W)
    if (self.prefValues['openFlowVersions']['ovsOf11'] == '0'):
        self.covsOf11.deselect()
    else:
        self.covsOf11.select()
    self.ovsOf12 = IntVar()
    self.covsOf12 = Checkbutton(ovsFrame, variable=self.ovsOf12)
    self.covsOf12.grid(row=2, column=1, sticky=W)
    if (self.prefValues['openFlowVersions']['ovsOf12'] == '0'):
        self.covsOf12.deselect()
    else:
        self.covsOf12.select()
    self.ovsOf13 = IntVar()
    self.covsOf13 = Checkbutton(ovsFrame, variable=self.ovsOf13)
    self.covsOf13.grid(row=3, column=1, sticky=W)
    if (self.prefValues['openFlowVersions']['ovsOf13'] == '0'):
        self.covsOf13.deselect()
    else:
        self.covsOf13.select()
    Label(self.leftfieldFrame, text='dpctl    port:').grid(row=5, sticky=E)
    self.dpctlEntry = Entry(self.leftfieldFrame)
    self.dpctlEntry.grid(row=5, column=1)
    if ('dpctl' in self.prefValues):
        self.dpctlEntry.insert(0, self.prefValues['dpctl'])
    sflowValues = self.prefValues['sflow']
    self.sflowFrame = LabelFrame(self.rightfieldFrame, text='sFlow    Profile    for    Open    vSwitch', padx=5, pady=5)
    self.sflowFrame.grid(row=0, column=0, columnspan=2, sticky=EW)
    Label(self.sflowFrame, text='Target:').grid(row=0, sticky=E)
    self.sflowTarget = Entry(self.sflowFrame)
    self.sflowTarget.grid(row=0, column=1)
    self.sflowTarget.insert(0, sflowValues['sflowTarget'])
    Label(self.sflowFrame, text='Sampling:').grid(row=1, sticky=E)
    self.sflowSampling = Entry(self.sflowFrame)
    self.sflowSampling.grid(row=1, column=1)
    self.sflowSampling.insert(0, sflowValues['sflowSampling'])
    Label(self.sflowFrame, text='Header:').grid(row=2, sticky=E)
    self.sflowHeader = Entry(self.sflowFrame)
    self.sflowHeader.grid(row=2, column=1)
    self.sflowHeader.insert(0, sflowValues['sflowHeader'])
    Label(self.sflowFrame, text='Polling:').grid(row=3, sticky=E)
    self.sflowPolling = Entry(self.sflowFrame)
    self.sflowPolling.grid(row=3, column=1)
    self.sflowPolling.insert(0, sflowValues['sflowPolling'])
    nflowValues = self.prefValues['netflow']
    self.nFrame = LabelFrame(self.rightfieldFrame, text='NetFlow    Profile    for    Open    vSwitch', padx=5, pady=5)
    self.nFrame.grid(row=1, column=0, columnspan=2, sticky=EW)
    Label(self.nFrame, text='Target:').grid(row=0, sticky=E)
    self.nflowTarget = Entry(self.nFrame)
    self.nflowTarget.grid(row=0, column=1)
    self.nflowTarget.insert(0, nflowValues['nflowTarget'])
    Label(self.nFrame, text='Active    Timeout:').grid(row=1, sticky=E)
    self.nflowTimeout = Entry(self.nFrame)
    self.nflowTimeout.grid(row=1, column=1)
    self.nflowTimeout.insert(0, nflowValues['nflowTimeout'])
    Label(self.nFrame, text='Add    ID    to    Interface:').grid(row=2, sticky=E)
    self.nflowAddId = IntVar()
    self.nflowAddIdButton = Checkbutton(self.nFrame, variable=self.nflowAddId)
    self.nflowAddIdButton.grid(row=2, column=1, sticky=W)
    if (nflowValues['nflowAddId'] == '0'):
        self.nflowAddIdButton.deselect()
    else:
        self.nflowAddIdButton.select()
    return self.ipEntry
