Class List Method List File List

# Module: Yast::RelocationServerDialogsInclude

Defined in:
  ../../src/include/relocation-server/dialogs.rb

## Instance Method Summary (collapse)

- - (Object) initialize_relocation_server_dialogs(include_target)
- - (Object) KVMConfigurationDialogContent
- - (Object) XendConfigurationDialogContent

## Instance Method Details

### - (`Object`) initialize_relocation_server_dialogs(include_target)

    30
    31
    32
    33
    34
    35
    36
    37
    38
    # File '../../src/include/relocation-server/dialogs.rb', line 30

    def initialize_relocation_server_dialogs(include_target)
      textdomain "relocation-server"

      Yast.import "Label"
      Yast.import "Wizard"
      Yast.import "RelocationServer"

      Yast.include include_target, "relocation-server/helps.rb"
    end

### - (`Object`) KVMConfigurationDialogContent

    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    # File '../../src/include/relocation-server/dialogs.rb', line 134

    def KVMConfigurationDialogContent
      VBox(
        Frame(
          _("Tunneled migration"),
          VBox(
            Left(
              CheckBox(
                Id("tunneled_migration"),
                Opt(:notify),
                _("Make sure tunneled migration works")
              )
            )
          )
        ),
        Frame(
          _("Plain migration"),
          VBox(
            Left(
              CheckBox(
                Id("plain_migration"),
                Opt(:notify),
                _("Make sure plain migration works")
              )
            ),
            VSpacing(),
            Left(Label(_("TCP Ports"))),
            Left(
              MinSize(
                40,
                5,
                # A table header
                Table(Id("Port"), Header(_("Port")), [])
              )
            ),
            Left(
              HBox(
                # a push button
                PushButton(Id("add_port"), _("&Add...")),
                # a push button
                PushButton(Id("edit_port"), _("&Edit...")),
                # a push button
                PushButton(Id("delete_port"), _("&Delete"))
              )
            ),
            Left(
              CheckBox(
                Id("default_port_range"),
                Opt(:notify),
                _("Include default port range")
              )
            )
          )
        ),
        Frame(_("Firewall"), VBox("fw-kvm"))
      )
    end

### - (`Object`) XendConfigurationDialogContent

    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    # File '../../src/include/relocation-server/dialogs.rb', line 40

    def XendConfigurationDialogContent
      VBox(
        Frame(
          _("Global Settings"),
          VBox(
            Left(
              InputField(
                Id("xend-relocation-address"),
                Opt(:hstretch),
                _("Relocation Address:")
              )
            ),
            Left(
              InputField(
                Id("xend-relocation-hosts-allow"),
                Opt(:hstretch),
                _("Allowed Hosts:")
              )
            ),
            Left(CheckBox(Id("xend-relocation-ssl"), _("Use SSL as Default"))),
            HStretch(),
            VStretch()
          )
        ),
        Frame(
          _("non-SSL Server"),
          VBox(
            Left(
              HSquash(
                IntField(Id("xend-relocation-port"), _("Port:"), 1, 65535, 1)
              )
            ),
            Left(
              CheckBox(Id("xend-relocation-server"), Opt(:notify), _("Enable"))
            ),
            VStretch()
          )
        ),
        Frame(
          _("SSL Server"),
          VBox(
            Left(
              HSquash(
                IntField(
                  Id("xend-relocation-ssl-port"),
                  _("Port:"),
                  1,
                  65535,
                  1
                )
              )
            ),
            Left(
              HBox(
                InputField(
                  Id("xend-relocation-server-ssl-key-file"),
                  Opt(:hstretch),
                  _("SSL Key File:")
                ),
                HSpacing(1),
                VBox(
                  Label(""),
                  PushButton(Id("browse_ssl_key_file"), Label.BrowseButton)
                )
              )
            ),
            Left(
              HBox(
                InputField(
                  Id("xend-relocation-server-ssl-cert-file"),
                  Opt(:hstretch),
                  _("SSL Cert File:")
                ),
                HSpacing(1),
                VBox(
                  Label(""),
                  PushButton(Id("browse_ssl_cert_file"), Label.BrowseButton)
                )
              )
            ),
            Left(
              CheckBox(
                Id("xend-relocation-ssl-server"),
                Opt(:notify),
                _("Enable")
              )
            ),
            VStretch()
          )
        ),
        Frame(_("Firewall"), VBox("fw-xend", VStretch()))
      )
    end