Skip to content

Commit

Permalink
add the INFO popup to missing options
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohkhn committed Jun 4, 2024
1 parent e718a9b commit e24fe93
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 115 deletions.
6 changes: 6 additions & 0 deletions osc_tui/dhcpOptions.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
from osc_tui import main
from osc_tui import popup

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc_tui.popup
begins an import cycle.
from osc_tui import selectableGrid

class dhcpOptionsGrid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Id"]

def on_selection(line):
popup.editDhcpOptions(self.form, line)

self.on_selection = on_selection

def refresh_call(self, name_filter=None):
groups = main.GATEWAY.ReadDhcpOptions(form=self.form)['DhcpOptionsSets']
Expand Down
6 changes: 6 additions & 0 deletions osc_tui/internetServices.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from osc_tui import main
from osc_tui import popup

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc_tui.popup
begins an import cycle.
from osc_tui import selectableGrid

class internetServicesGrid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Id"]

def on_selection(line):
popup.selectInternetService(self.form, line)

self.on_selection = on_selection

def refresh_call(self, name_filter=None):
groups = main.GATEWAY.ReadInternetServices(form=self.form)['InternetServices']
return groups
Expand Down
6 changes: 6 additions & 0 deletions osc_tui/natServices.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from osc_tui import main
from osc_tui import popup

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc_tui.popup
begins an import cycle.
from osc_tui import selectableGrid

class natServicesGrid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Id", "State", "NetId", "SubnetId"]

def on_selection(line):
popup.selectNatService(self.form, line)

self.on_selection = on_selection

def refresh_call(self, name_filter=None):
groups = main.GATEWAY.ReadNatServices(form=self.form)['NatServices']
return groups
Expand Down
6 changes: 6 additions & 0 deletions osc_tui/netPeering.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from osc_tui import main
from osc_tui import popup

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc_tui.popup
begins an import cycle.
from osc_tui import selectableGrid

class Grid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Id", "AccepterNet", "State"]

def on_selection(line):
popup.editNetPeering(self.form, line)

self.on_selection = on_selection

def refresh_call(self, name_filter=None):
return main.GATEWAY.ReadNetPeerings(form=self.form)['NetPeerings']

Expand Down
6 changes: 6 additions & 0 deletions osc_tui/nicsGrid.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from osc_tui import main
from osc_tui import popup

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc_tui.popup
begins an import cycle.
from osc_tui import selectableGrid

class nicsGrid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Id", "State", "SubnetId", "NetId", "Description", "MacAddress"]

def on_selection(line):
popup.selectNic(self.form, line)

self.on_selection = on_selection

def refresh_call(self, name_filter=None):
groups = main.GATEWAY.ReadNics(form=self.form)['Nics']
return groups
Expand Down
Loading

0 comments on commit e24fe93

Please sign in to comment.