repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_code_tokens
listlengths
15
672k
func_documentation_string
stringlengths
1
47.2k
func_documentation_tokens
listlengths
1
3.92k
split_name
stringclasses
1 value
func_code_url
stringlengths
85
339
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_clock.py
brocade_clock.show_clock_output_clock_time_timezone
def show_clock_output_clock_time_timezone(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_clock = ET.Element("show_clock") config = show_clock output = ET.SubElement(show_clock, "output") clock_time = ET.SubElement(output, "clock-time") timezone = ET.SubElement(clock_time, "timezone") timezone.text = kwargs.pop('timezone') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_clock_output_clock_time_timezone(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_clock = ET.Element("show_clock") config = show_clock output = ET.SubElement(show_clock, "output") clock_time = ET.SubElement(output, "clock-time") timezone = ET.SubElement(clock_time, "timezone") timezone.text = kwargs.pop('timezone') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_clock_output_clock_time_timezone", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_clock", "=", "ET", ".", "Element", "(", "\"show_clock\"", ")", "config", "=", "show_clock", "ou...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_clock.py#L65-L77
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_input_rbridge_id
def get_system_uptime_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime input = ET.SubElement(get_system_uptime, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime input = ET.SubElement(get_system_uptime, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_input_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config", "=", "get_sys...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L12-L23
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_output_show_system_uptime_rbridge_id
def get_system_uptime_output_show_system_uptime_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_output_show_system_uptime_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_output_show_system_uptime_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L25-L37
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_output_show_system_uptime_days
def get_system_uptime_output_show_system_uptime_days(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') days = ET.SubElement(show_system_uptime, "days") days.text = kwargs.pop('days') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_output_show_system_uptime_days(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') days = ET.SubElement(show_system_uptime, "days") days.text = kwargs.pop('days') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_output_show_system_uptime_days", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L39-L53
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_output_show_system_uptime_hours
def get_system_uptime_output_show_system_uptime_hours(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') hours = ET.SubElement(show_system_uptime, "hours") hours.text = kwargs.pop('hours') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_output_show_system_uptime_hours(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') hours = ET.SubElement(show_system_uptime, "hours") hours.text = kwargs.pop('hours') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_output_show_system_uptime_hours", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L55-L69
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_output_show_system_uptime_minutes
def get_system_uptime_output_show_system_uptime_minutes(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') minutes = ET.SubElement(show_system_uptime, "minutes") minutes.text = kwargs.pop('minutes') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_output_show_system_uptime_minutes(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') minutes = ET.SubElement(show_system_uptime, "minutes") minutes.text = kwargs.pop('minutes') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_output_show_system_uptime_minutes", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L71-L85
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_output_show_system_uptime_seconds
def get_system_uptime_output_show_system_uptime_seconds(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') seconds = ET.SubElement(show_system_uptime, "seconds") seconds.text = kwargs.pop('seconds') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_output_show_system_uptime_seconds(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") show_system_uptime = ET.SubElement(output, "show-system-uptime") rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id") rbridge_id_key.text = kwargs.pop('rbridge_id') seconds = ET.SubElement(show_system_uptime, "seconds") seconds.text = kwargs.pop('seconds') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_output_show_system_uptime_seconds", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L87-L101
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py
brocade_system.get_system_uptime_output_cmd_error
def get_system_uptime_output_cmd_error(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") cmd_error = ET.SubElement(output, "cmd-error") cmd_error.text = kwargs.pop('cmd_error') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_system_uptime_output_cmd_error(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_system_uptime = ET.Element("get_system_uptime") config = get_system_uptime output = ET.SubElement(get_system_uptime, "output") cmd_error = ET.SubElement(output, "cmd-error") cmd_error.text = kwargs.pop('cmd_error') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_system_uptime_output_cmd_error", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_system_uptime", "=", "ET", ".", "Element", "(", "\"get_system_uptime\"", ")", "config", "=", "get_sys...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system.py#L103-L114
CCareaga/scum
scum/main.py
rgb_to_short
def rgb_to_short(rgb, mapping): """Find the closest xterm-256 approximation to the given RGB value.""" # Thanks to Micah Elliott (http://MicahElliott.com) for colortrans.py rgb = rgb.lstrip('#') if rgb.startswith('#') else rgb incs = (0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff) # Break 6-char RGB code into 3 integer vals. parts = [int(h, 16) for h in re.split(r'(..)(..)(..)', rgb)[1:4]] res = [] for part in parts: i = 0 while i < len(incs)-1: s, b = incs[i], incs[i+1] # smaller, bigger if s <= part <= b: s1 = abs(s - part) b1 = abs(b - part) if s1 < b1: closest = s else: closest = b res.append(closest) break i += 1 res = ''.join([ ('%02.x' % i) for i in res ]) equiv = mapping[res] return equiv, res
python
def rgb_to_short(rgb, mapping): """Find the closest xterm-256 approximation to the given RGB value.""" # Thanks to Micah Elliott (http://MicahElliott.com) for colortrans.py rgb = rgb.lstrip('#') if rgb.startswith('#') else rgb incs = (0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff) # Break 6-char RGB code into 3 integer vals. parts = [int(h, 16) for h in re.split(r'(..)(..)(..)', rgb)[1:4]] res = [] for part in parts: i = 0 while i < len(incs)-1: s, b = incs[i], incs[i+1] # smaller, bigger if s <= part <= b: s1 = abs(s - part) b1 = abs(b - part) if s1 < b1: closest = s else: closest = b res.append(closest) break i += 1 res = ''.join([ ('%02.x' % i) for i in res ]) equiv = mapping[res] return equiv, res
[ "def", "rgb_to_short", "(", "rgb", ",", "mapping", ")", ":", "# Thanks to Micah Elliott (http://MicahElliott.com) for colortrans.py", "rgb", "=", "rgb", ".", "lstrip", "(", "'#'", ")", "if", "rgb", ".", "startswith", "(", "'#'", ")", "else", "rgb", "incs", "=", ...
Find the closest xterm-256 approximation to the given RGB value.
[ "Find", "the", "closest", "xterm", "-", "256", "approximation", "to", "the", "given", "RGB", "value", "." ]
train
https://github.com/CCareaga/scum/blob/15c21ab32f590271d2d12c3573573d35630f51b0/scum/main.py#L172-L194
CCareaga/scum
scum/main.py
MainGUI.register_palette
def register_palette(self): """Converts pygmets style to urwid palatte""" default = 'default' palette = list(self.palette) mapping = CONFIG['rgb_to_short'] for tok in self.style.styles.keys(): for t in tok.split()[::-1]: st = self.style.styles[t] if '#' in st: break if '#' not in st: st = '' st = st.split() st.sort() # '#' comes before '[A-Za-z0-9]' if len(st) == 0: c = default elif st[0].startswith('bg:'): c = default elif len(st[0]) == 7: c = 'h' + rgb_to_short(st[0][1:], mapping)[0] elif len(st[0]) == 4: c = 'h' + rgb_to_short(st[0][1]*2 + st[0][2]*2 + st[0][3]*2, mapping)[0] else: c = default a = urwid.AttrSpec(c, default, colors=256) row = (tok, default, default, default, a.foreground, default) palette.append(row) self.loop.screen.register_palette(palette)
python
def register_palette(self): """Converts pygmets style to urwid palatte""" default = 'default' palette = list(self.palette) mapping = CONFIG['rgb_to_short'] for tok in self.style.styles.keys(): for t in tok.split()[::-1]: st = self.style.styles[t] if '#' in st: break if '#' not in st: st = '' st = st.split() st.sort() # '#' comes before '[A-Za-z0-9]' if len(st) == 0: c = default elif st[0].startswith('bg:'): c = default elif len(st[0]) == 7: c = 'h' + rgb_to_short(st[0][1:], mapping)[0] elif len(st[0]) == 4: c = 'h' + rgb_to_short(st[0][1]*2 + st[0][2]*2 + st[0][3]*2, mapping)[0] else: c = default a = urwid.AttrSpec(c, default, colors=256) row = (tok, default, default, default, a.foreground, default) palette.append(row) self.loop.screen.register_palette(palette)
[ "def", "register_palette", "(", "self", ")", ":", "default", "=", "'default'", "palette", "=", "list", "(", "self", ".", "palette", ")", "mapping", "=", "CONFIG", "[", "'rgb_to_short'", "]", "for", "tok", "in", "self", ".", "style", ".", "styles", ".", ...
Converts pygmets style to urwid palatte
[ "Converts", "pygmets", "style", "to", "urwid", "palatte" ]
train
https://github.com/CCareaga/scum/blob/15c21ab32f590271d2d12c3573573d35630f51b0/scum/main.py#L1134-L1161
brocade/pynos
pynos/versions/ver_7/ver_7_1_0/yang/brocade_ntp.py
brocade_ntp.ntp_server_ip
def ntp_server_ip(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp") server = ET.SubElement(ntp, "server") use_vrf_key = ET.SubElement(server, "use-vrf") use_vrf_key.text = kwargs.pop('use_vrf') ip = ET.SubElement(server, "ip") ip.text = kwargs.pop('ip') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def ntp_server_ip(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp") server = ET.SubElement(ntp, "server") use_vrf_key = ET.SubElement(server, "use-vrf") use_vrf_key.text = kwargs.pop('use_vrf') ip = ET.SubElement(server, "ip") ip.text = kwargs.pop('ip') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "ntp_server_ip", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "ntp", "=", "ET", ".", "SubElement", "(", "config", ",", "\"ntp\"", ",", "xmlns", "=", "\"urn:brocade.com:mgmt:brocade-ntp\...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_7/ver_7_1_0/yang/brocade_ntp.py#L71-L83
brocade/pynos
pynos/versions/ver_7/ver_7_1_0/yang/brocade_ntp.py
brocade_ntp.ntp_server_key
def ntp_server_key(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp") server = ET.SubElement(ntp, "server") ip_key = ET.SubElement(server, "ip") ip_key.text = kwargs.pop('ip') use_vrf_key = ET.SubElement(server, "use-vrf") use_vrf_key.text = kwargs.pop('use_vrf') key = ET.SubElement(server, "key") key.text = kwargs.pop('key') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def ntp_server_key(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp") server = ET.SubElement(ntp, "server") ip_key = ET.SubElement(server, "ip") ip_key.text = kwargs.pop('ip') use_vrf_key = ET.SubElement(server, "use-vrf") use_vrf_key.text = kwargs.pop('use_vrf') key = ET.SubElement(server, "key") key.text = kwargs.pop('key') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "ntp_server_key", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "ntp", "=", "ET", ".", "SubElement", "(", "config", ",", "\"ntp\"", ",", "xmlns", "=", "\"urn:brocade.com:mgmt:brocade-ntp...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_7/ver_7_1_0/yang/brocade_ntp.py#L85-L99
brocade/pynos
pynos/versions/ver_7/ver_7_1_0/yang/brocade_ntp.py
brocade_ntp.ntp_server_use_vrf
def ntp_server_use_vrf(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp") server = ET.SubElement(ntp, "server") ip_key = ET.SubElement(server, "ip") ip_key.text = kwargs.pop('ip') use_vrf = ET.SubElement(server, "use-vrf") use_vrf.text = kwargs.pop('use_vrf') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def ntp_server_use_vrf(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp") server = ET.SubElement(ntp, "server") ip_key = ET.SubElement(server, "ip") ip_key.text = kwargs.pop('ip') use_vrf = ET.SubElement(server, "use-vrf") use_vrf.text = kwargs.pop('use_vrf') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "ntp_server_use_vrf", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "ntp", "=", "ET", ".", "SubElement", "(", "config", ",", "\"ntp\"", ",", "xmlns", "=", "\"urn:brocade.com:mgmt:brocade...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_7/ver_7_1_0/yang/brocade_ntp.py#L101-L113
kdeldycke/chessboard
chessboard/solver.py
Permutations.increment
def increment(self): """ Increment the last permutation we returned to the next. """ # Increment position from the deepest place of the tree first. for index in reversed(range(self.depth)): self.indexes[index] += 1 # We haven't reached the end of board, no need to adjust upper # level. if self.indexes[index] < self.range_size: break # We've reached the end of board. Reset current level and increment # the upper level. self.indexes[index] = 0 # Now that we incremented our indexes, we need to deduplicate positions # shering the same UIDs, by aligning piece's indexes to their parents. # This works thanks to the sort performed on self.pieces # initialization. See #7. for i in range(self.depth - 1): if (self.pieces[i] == self.pieces[i + 1]) and ( self.indexes[i] > self.indexes[i + 1]): self.indexes[i + 1] = self.indexes[i]
python
def increment(self): """ Increment the last permutation we returned to the next. """ # Increment position from the deepest place of the tree first. for index in reversed(range(self.depth)): self.indexes[index] += 1 # We haven't reached the end of board, no need to adjust upper # level. if self.indexes[index] < self.range_size: break # We've reached the end of board. Reset current level and increment # the upper level. self.indexes[index] = 0 # Now that we incremented our indexes, we need to deduplicate positions # shering the same UIDs, by aligning piece's indexes to their parents. # This works thanks to the sort performed on self.pieces # initialization. See #7. for i in range(self.depth - 1): if (self.pieces[i] == self.pieces[i + 1]) and ( self.indexes[i] > self.indexes[i + 1]): self.indexes[i + 1] = self.indexes[i]
[ "def", "increment", "(", "self", ")", ":", "# Increment position from the deepest place of the tree first.", "for", "index", "in", "reversed", "(", "range", "(", "self", ".", "depth", ")", ")", ":", "self", ".", "indexes", "[", "index", "]", "+=", "1", "# We h...
Increment the last permutation we returned to the next.
[ "Increment", "the", "last", "permutation", "we", "returned", "to", "the", "next", "." ]
train
https://github.com/kdeldycke/chessboard/blob/ac7a14dc7b6905701e3f6d4e01e8fe1869241bed/chessboard/solver.py#L69-L89
kdeldycke/chessboard
chessboard/solver.py
Permutations.skip_branch
def skip_branch(self, level): """ Abandon the branch at the provided level and skip to the next. When we call out to skip to the next branch of the search space, we push sublevel pieces to the maximum positions of the board. So that the next time the permutation iterator is called, it can produce the vector state of the next adjacent branch. See #3. """ for i in range(level + 1, self.depth): self.indexes[i] = self.range_size - 1
python
def skip_branch(self, level): """ Abandon the branch at the provided level and skip to the next. When we call out to skip to the next branch of the search space, we push sublevel pieces to the maximum positions of the board. So that the next time the permutation iterator is called, it can produce the vector state of the next adjacent branch. See #3. """ for i in range(level + 1, self.depth): self.indexes[i] = self.range_size - 1
[ "def", "skip_branch", "(", "self", ",", "level", ")", ":", "for", "i", "in", "range", "(", "level", "+", "1", ",", "self", ".", "depth", ")", ":", "self", ".", "indexes", "[", "i", "]", "=", "self", ".", "range_size", "-", "1" ]
Abandon the branch at the provided level and skip to the next. When we call out to skip to the next branch of the search space, we push sublevel pieces to the maximum positions of the board. So that the next time the permutation iterator is called, it can produce the vector state of the next adjacent branch. See #3.
[ "Abandon", "the", "branch", "at", "the", "provided", "level", "and", "skip", "to", "the", "next", "." ]
train
https://github.com/kdeldycke/chessboard/blob/ac7a14dc7b6905701e3f6d4e01e8fe1869241bed/chessboard/solver.py#L110-L119
kdeldycke/chessboard
chessboard/solver.py
SolverContext.solve
def solve(self): """ Solve all possible positions of pieces within the context. Depth-first, tree-traversal of the product space. """ # Create a new, empty board. board = Board(self.length, self.height) # Iterate through all combinations of positions. permutations = Permutations(self.pieces, self.vector_size) for positions in permutations: # Reuse board but flush all pieces. board.reset() for level, (piece_uid, linear_position) in enumerate(positions): # Try to place the piece on the board. try: board.add(piece_uid, linear_position) # If one of the piece can't be added, throw the whole set, skip # the rotten branch and proceed to the next. except (OccupiedPosition, VulnerablePosition, AttackablePiece): permutations.skip_branch(level) break else: # All pieces fits, save solution and proceeed to the next # permutation. self.result_counter += 1 yield board
python
def solve(self): """ Solve all possible positions of pieces within the context. Depth-first, tree-traversal of the product space. """ # Create a new, empty board. board = Board(self.length, self.height) # Iterate through all combinations of positions. permutations = Permutations(self.pieces, self.vector_size) for positions in permutations: # Reuse board but flush all pieces. board.reset() for level, (piece_uid, linear_position) in enumerate(positions): # Try to place the piece on the board. try: board.add(piece_uid, linear_position) # If one of the piece can't be added, throw the whole set, skip # the rotten branch and proceed to the next. except (OccupiedPosition, VulnerablePosition, AttackablePiece): permutations.skip_branch(level) break else: # All pieces fits, save solution and proceeed to the next # permutation. self.result_counter += 1 yield board
[ "def", "solve", "(", "self", ")", ":", "# Create a new, empty board.", "board", "=", "Board", "(", "self", ".", "length", ",", "self", ".", "height", ")", "# Iterate through all combinations of positions.", "permutations", "=", "Permutations", "(", "self", ".", "p...
Solve all possible positions of pieces within the context. Depth-first, tree-traversal of the product space.
[ "Solve", "all", "possible", "positions", "of", "pieces", "within", "the", "context", "." ]
train
https://github.com/kdeldycke/chessboard/blob/ac7a14dc7b6905701e3f6d4e01e8fe1869241bed/chessboard/solver.py#L160-L189
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_input_rbridge_id
def show_raslog_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog input = ET.SubElement(show_raslog, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog input = ET.SubElement(show_raslog, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_input_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "=", "show_raslog", "input", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L12-L23
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_rbridge_id
def show_raslog_output_show_all_raslog_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") rbridge_id = ET.SubElement(show_all_raslog, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") rbridge_id = ET.SubElement(show_all_raslog, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "=", "show_ras...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L38-L50
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_number_of_entries
def show_raslog_output_show_all_raslog_number_of_entries(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") number_of_entries = ET.SubElement(show_all_raslog, "number-of-entries") number_of_entries.text = kwargs.pop('number_of_entries') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_number_of_entries(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") number_of_entries = ET.SubElement(show_all_raslog, "number-of-entries") number_of_entries.text = kwargs.pop('number_of_entries') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_number_of_entries", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "=", "s...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L52-L64
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_index
def show_raslog_output_show_all_raslog_raslog_entries_index(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") index = ET.SubElement(raslog_entries, "index") index.text = kwargs.pop('index') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_index(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") index = ET.SubElement(raslog_entries, "index") index.text = kwargs.pop('index') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_index", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "=", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L66-L79
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_message_id
def show_raslog_output_show_all_raslog_raslog_entries_message_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") message_id = ET.SubElement(raslog_entries, "message-id") message_id.text = kwargs.pop('message_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_message_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") message_id = ET.SubElement(raslog_entries, "message-id") message_id.text = kwargs.pop('message_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_message_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L81-L94
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_date_and_time_info
def show_raslog_output_show_all_raslog_raslog_entries_date_and_time_info(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") date_and_time_info = ET.SubElement(raslog_entries, "date-and-time-info") date_and_time_info.text = kwargs.pop('date_and_time_info') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_date_and_time_info(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") date_and_time_info = ET.SubElement(raslog_entries, "date-and-time-info") date_and_time_info.text = kwargs.pop('date_and_time_info') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_date_and_time_info", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "conf...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L96-L109
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_severity
def show_raslog_output_show_all_raslog_raslog_entries_severity(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") severity = ET.SubElement(raslog_entries, "severity") severity.text = kwargs.pop('severity') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_severity(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") severity = ET.SubElement(raslog_entries, "severity") severity.text = kwargs.pop('severity') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_severity", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "="...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L111-L124
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_repeat_count
def show_raslog_output_show_all_raslog_raslog_entries_repeat_count(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") repeat_count = ET.SubElement(raslog_entries, "repeat-count") repeat_count.text = kwargs.pop('repeat_count') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_repeat_count(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") repeat_count = ET.SubElement(raslog_entries, "repeat-count") repeat_count.text = kwargs.pop('repeat_count') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_repeat_count", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L126-L139
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_message
def show_raslog_output_show_all_raslog_raslog_entries_message(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") message = ET.SubElement(raslog_entries, "message") message.text = kwargs.pop('message') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_message(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") message = ET.SubElement(raslog_entries, "message") message.text = kwargs.pop('message') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_message", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L141-L154
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_message_flag
def show_raslog_output_show_all_raslog_raslog_entries_message_flag(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") message_flag = ET.SubElement(raslog_entries, "message-flag") message_flag.text = kwargs.pop('message_flag') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_message_flag(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") message_flag = ET.SubElement(raslog_entries, "message-flag") message_flag.text = kwargs.pop('message_flag') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_message_flag", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L156-L169
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_log_type
def show_raslog_output_show_all_raslog_raslog_entries_log_type(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") log_type = ET.SubElement(raslog_entries, "log-type") log_type.text = kwargs.pop('log_type') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_log_type(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") log_type = ET.SubElement(raslog_entries, "log-type") log_type.text = kwargs.pop('log_type') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_log_type", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "="...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L171-L184
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_show_all_raslog_raslog_entries_switch_or_chassis_name
def show_raslog_output_show_all_raslog_raslog_entries_switch_or_chassis_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") switch_or_chassis_name = ET.SubElement(raslog_entries, "switch-or-chassis-name") switch_or_chassis_name.text = kwargs.pop('switch_or_chassis_name') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_show_all_raslog_raslog_entries_switch_or_chassis_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") show_all_raslog = ET.SubElement(output, "show-all-raslog") raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries") switch_or_chassis_name = ET.SubElement(raslog_entries, "switch-or-chassis-name") switch_or_chassis_name.text = kwargs.pop('switch_or_chassis_name') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_show_all_raslog_raslog_entries_switch_or_chassis_name", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L186-L199
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_raslog_output_cmd_status_error_msg
def show_raslog_output_cmd_status_error_msg(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") cmd_status_error_msg = ET.SubElement(output, "cmd-status-error-msg") cmd_status_error_msg.text = kwargs.pop('cmd_status_error_msg') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_raslog_output_cmd_status_error_msg(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_raslog = ET.Element("show_raslog") config = show_raslog output = ET.SubElement(show_raslog, "output") cmd_status_error_msg = ET.SubElement(output, "cmd-status-error-msg") cmd_status_error_msg.text = kwargs.pop('cmd_status_error_msg') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_raslog_output_cmd_status_error_msg", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_raslog", "=", "ET", ".", "Element", "(", "\"show_raslog\"", ")", "config", "=", "show_raslog", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L201-L212
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_support_save_status_input_rbridge_id
def show_support_save_status_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status input = ET.SubElement(show_support_save_status, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_support_save_status_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status input = ET.SubElement(show_support_save_status, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_support_save_status_input_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_support_save_status", "=", "ET", ".", "Element", "(", "\"show_support_save_status\"", ")", "confi...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L214-L225
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_support_save_status_output_show_support_save_status_rbridge_id
def show_support_save_status_output_show_support_save_status_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") rbridge_id = ET.SubElement(show_support_save_status, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_support_save_status_output_show_support_save_status_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") rbridge_id = ET.SubElement(show_support_save_status, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_support_save_status_output_show_support_save_status_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_support_save_status", "=", "ET", ".", "Element", "(", "\"show_support_save_...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L227-L239
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_support_save_status_output_show_support_save_status_status
def show_support_save_status_output_show_support_save_status_status(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") status = ET.SubElement(show_support_save_status, "status") status.text = kwargs.pop('status') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_support_save_status_output_show_support_save_status_status(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") status = ET.SubElement(show_support_save_status, "status") status.text = kwargs.pop('status') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_support_save_status_output_show_support_save_status_status", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_support_save_status", "=", "ET", ".", "Element", "(", "\"show_support_save_stat...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L241-L253
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_support_save_status_output_show_support_save_status_message
def show_support_save_status_output_show_support_save_status_message(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") message = ET.SubElement(show_support_save_status, "message") message.text = kwargs.pop('message') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_support_save_status_output_show_support_save_status_message(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") message = ET.SubElement(show_support_save_status, "message") message.text = kwargs.pop('message') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_support_save_status_output_show_support_save_status_message", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_support_save_status", "=", "ET", ".", "Element", "(", "\"show_support_save_sta...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L255-L267
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_support_save_status_output_show_support_save_status_percentage_of_completion
def show_support_save_status_output_show_support_save_status_percentage_of_completion(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") percentage_of_completion = ET.SubElement(show_support_save_status, "percentage-of-completion") percentage_of_completion.text = kwargs.pop('percentage_of_completion') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_support_save_status_output_show_support_save_status_percentage_of_completion(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_support_save_status = ET.Element("show_support_save_status") config = show_support_save_status output = ET.SubElement(show_support_save_status, "output") show_support_save_status = ET.SubElement(output, "show-support-save-status") percentage_of_completion = ET.SubElement(show_support_save_status, "percentage-of-completion") percentage_of_completion.text = kwargs.pop('percentage_of_completion') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_support_save_status_output_show_support_save_status_percentage_of_completion", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_support_save_status", "=", "ET", ".", "Element", "(", "\"show...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L269-L281
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_system_info_input_rbridge_id
def show_system_info_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_system_info = ET.Element("show_system_info") config = show_system_info input = ET.SubElement(show_system_info, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_system_info_input_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_system_info = ET.Element("show_system_info") config = show_system_info input = ET.SubElement(show_system_info, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_system_info_input_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_system_info", "=", "ET", ".", "Element", "(", "\"show_system_info\"", ")", "config", "=", "show_syste...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L283-L294
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_system_info_output_show_system_info_rbridge_id
def show_system_info_output_show_system_info_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_system_info = ET.Element("show_system_info") config = show_system_info output = ET.SubElement(show_system_info, "output") show_system_info = ET.SubElement(output, "show-system-info") rbridge_id = ET.SubElement(show_system_info, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_system_info_output_show_system_info_rbridge_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_system_info = ET.Element("show_system_info") config = show_system_info output = ET.SubElement(show_system_info, "output") show_system_info = ET.SubElement(output, "show-system-info") rbridge_id = ET.SubElement(show_system_info, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_system_info_output_show_system_info_rbridge_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_system_info", "=", "ET", ".", "Element", "(", "\"show_system_info\"", ")", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L296-L308
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py
brocade_ras_ext.show_system_info_output_show_system_info_stack_mac
def show_system_info_output_show_system_info_stack_mac(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_system_info = ET.Element("show_system_info") config = show_system_info output = ET.SubElement(show_system_info, "output") show_system_info = ET.SubElement(output, "show-system-info") stack_mac = ET.SubElement(show_system_info, "stack-mac") stack_mac.text = kwargs.pop('stack_mac') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def show_system_info_output_show_system_info_stack_mac(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_system_info = ET.Element("show_system_info") config = show_system_info output = ET.SubElement(show_system_info, "output") show_system_info = ET.SubElement(output, "show-system-info") stack_mac = ET.SubElement(show_system_info, "stack-mac") stack_mac.text = kwargs.pop('stack_mac') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "show_system_info_output_show_system_info_stack_mac", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "show_system_info", "=", "ET", ".", "Element", "(", "\"show_system_info\"", ")", "config", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_ras_ext.py#L310-L322
brocade/pynos
pynos/versions/base/fabric_service.py
FabricService.trill_links
def trill_links(self): """dict: trill link details """ xmlns = 'urn:brocade.com:mgmt:brocade-fabric-service' get_links_info = ET.Element('show-linkinfo', xmlns=xmlns) results = self._callback(get_links_info, handler='get') result = [] for item in results.findall('{%s}show-link-info' % xmlns): src_rbridge_id = item.find('{%s}linkinfo-rbridgeid' % xmlns).text src_switch_wwn = item.find('{%s}linkinfo-wwn' % xmlns).text for link in item.findall('{%s}linkinfo-isl' % xmlns): dest_rbridge_id = link.find( '{%s}linkinfo-isllink-destdomain' % xmlns).text src_interface = link.find( '{%s}linkinfo-isllink-srcport-interface' % xmlns).text dest_interface = link.find( '{%s}linkinfo-isllink-destport-interface' % xmlns).text link_cost = link.find('{%s}linkinfo-isl-linkcost' % xmlns).text link_cost_count = link.find( '{%s}linkinfo-isllink-costcount' % xmlns).text item_results = {'source-rbridgeid': src_rbridge_id, 'source-switch-wwn': src_switch_wwn, 'dest-rbridgeid': dest_rbridge_id, 'source-interface': src_interface, 'dest-interface': dest_interface, 'link-cost': link_cost, 'link-costcount': link_cost_count} result.append(item_results) return result
python
def trill_links(self): """dict: trill link details """ xmlns = 'urn:brocade.com:mgmt:brocade-fabric-service' get_links_info = ET.Element('show-linkinfo', xmlns=xmlns) results = self._callback(get_links_info, handler='get') result = [] for item in results.findall('{%s}show-link-info' % xmlns): src_rbridge_id = item.find('{%s}linkinfo-rbridgeid' % xmlns).text src_switch_wwn = item.find('{%s}linkinfo-wwn' % xmlns).text for link in item.findall('{%s}linkinfo-isl' % xmlns): dest_rbridge_id = link.find( '{%s}linkinfo-isllink-destdomain' % xmlns).text src_interface = link.find( '{%s}linkinfo-isllink-srcport-interface' % xmlns).text dest_interface = link.find( '{%s}linkinfo-isllink-destport-interface' % xmlns).text link_cost = link.find('{%s}linkinfo-isl-linkcost' % xmlns).text link_cost_count = link.find( '{%s}linkinfo-isllink-costcount' % xmlns).text item_results = {'source-rbridgeid': src_rbridge_id, 'source-switch-wwn': src_switch_wwn, 'dest-rbridgeid': dest_rbridge_id, 'source-interface': src_interface, 'dest-interface': dest_interface, 'link-cost': link_cost, 'link-costcount': link_cost_count} result.append(item_results) return result
[ "def", "trill_links", "(", "self", ")", ":", "xmlns", "=", "'urn:brocade.com:mgmt:brocade-fabric-service'", "get_links_info", "=", "ET", ".", "Element", "(", "'show-linkinfo'", ",", "xmlns", "=", "xmlns", ")", "results", "=", "self", ".", "_callback", "(", "get_...
dict: trill link details
[ "dict", ":", "trill", "link", "details" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/base/fabric_service.py#L39-L70
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_datastores_datastore_name
def netconf_state_datastores_datastore_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name = ET.SubElement(datastore, "name") name.text = kwargs.pop('name') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_datastores_datastore_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name = ET.SubElement(datastore, "name") name.text = kwargs.pop('name') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_datastores_datastore_name", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L12-L23
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_datastores_datastore_locks_lock_type_global_lock_global_lock_locked_time
def netconf_state_datastores_datastore_locks_lock_type_global_lock_global_lock_locked_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') locks = ET.SubElement(datastore, "locks") lock_type = ET.SubElement(locks, "lock-type") global_lock = ET.SubElement(lock_type, "global-lock") global_lock = ET.SubElement(global_lock, "global-lock") locked_time = ET.SubElement(global_lock, "locked-time") locked_time.text = kwargs.pop('locked_time') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_datastores_datastore_locks_lock_type_global_lock_global_lock_locked_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') locks = ET.SubElement(datastore, "locks") lock_type = ET.SubElement(locks, "lock-type") global_lock = ET.SubElement(lock_type, "global-lock") global_lock = ET.SubElement(global_lock, "global-lock") locked_time = ET.SubElement(global_lock, "locked-time") locked_time.text = kwargs.pop('locked_time') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_datastores_datastore_locks_lock_type_global_lock_global_lock_locked_time", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L44-L61
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_lock_id
def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_lock_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') locks = ET.SubElement(datastore, "locks") lock_type = ET.SubElement(locks, "lock-type") partial_lock = ET.SubElement(lock_type, "partial-lock") partial_lock = ET.SubElement(partial_lock, "partial-lock") lock_id = ET.SubElement(partial_lock, "lock-id") lock_id.text = kwargs.pop('lock_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_lock_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') locks = ET.SubElement(datastore, "locks") lock_type = ET.SubElement(locks, "lock-type") partial_lock = ET.SubElement(lock_type, "partial-lock") partial_lock = ET.SubElement(partial_lock, "partial-lock") lock_id = ET.SubElement(partial_lock, "lock-id") lock_id.text = kwargs.pop('lock_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_lock_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L63-L80
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_locked_by_session
def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_locked_by_session(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') locks = ET.SubElement(datastore, "locks") lock_type = ET.SubElement(locks, "lock-type") partial_lock = ET.SubElement(lock_type, "partial-lock") partial_lock = ET.SubElement(partial_lock, "partial-lock") lock_id_key = ET.SubElement(partial_lock, "lock-id") lock_id_key.text = kwargs.pop('lock_id') locked_by_session = ET.SubElement(partial_lock, "locked-by-session") locked_by_session.text = kwargs.pop('locked_by_session') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_locked_by_session(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') locks = ET.SubElement(datastore, "locks") lock_type = ET.SubElement(locks, "lock-type") partial_lock = ET.SubElement(lock_type, "partial-lock") partial_lock = ET.SubElement(partial_lock, "partial-lock") lock_id_key = ET.SubElement(partial_lock, "lock-id") lock_id_key.text = kwargs.pop('lock_id') locked_by_session = ET.SubElement(partial_lock, "locked-by-session") locked_by_session.text = kwargs.pop('locked_by_session') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_locked_by_session", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "c...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L82-L101
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_datastores_datastore_transaction_id
def netconf_state_datastores_datastore_transaction_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') transaction_id = ET.SubElement(datastore, "transaction-id", xmlns="http://tail-f.com/yang/netconf-monitoring") transaction_id.text = kwargs.pop('transaction_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_datastores_datastore_transaction_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") datastores = ET.SubElement(netconf_state, "datastores") datastore = ET.SubElement(datastores, "datastore") name_key = ET.SubElement(datastore, "name") name_key.text = kwargs.pop('name') transaction_id = ET.SubElement(datastore, "transaction-id", xmlns="http://tail-f.com/yang/netconf-monitoring") transaction_id.text = kwargs.pop('transaction_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_datastores_datastore_transaction_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L124-L137
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_schemas_schema_identifier
def netconf_state_schemas_schema_identifier(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") version_key = ET.SubElement(schema, "version") version_key.text = kwargs.pop('version') format_key = ET.SubElement(schema, "format") format_key.text = kwargs.pop('format') identifier = ET.SubElement(schema, "identifier") identifier.text = kwargs.pop('identifier') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_schemas_schema_identifier(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") version_key = ET.SubElement(schema, "version") version_key.text = kwargs.pop('version') format_key = ET.SubElement(schema, "format") format_key.text = kwargs.pop('format') identifier = ET.SubElement(schema, "identifier") identifier.text = kwargs.pop('identifier') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_schemas_schema_identifier", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L139-L154
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_schemas_schema_version
def netconf_state_schemas_schema_version(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") identifier_key = ET.SubElement(schema, "identifier") identifier_key.text = kwargs.pop('identifier') format_key = ET.SubElement(schema, "format") format_key.text = kwargs.pop('format') version = ET.SubElement(schema, "version") version.text = kwargs.pop('version') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_schemas_schema_version(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") identifier_key = ET.SubElement(schema, "identifier") identifier_key.text = kwargs.pop('identifier') format_key = ET.SubElement(schema, "format") format_key.text = kwargs.pop('format') version = ET.SubElement(schema, "version") version.text = kwargs.pop('version') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_schemas_schema_version", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L156-L171
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_schemas_schema_format
def netconf_state_schemas_schema_format(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") identifier_key = ET.SubElement(schema, "identifier") identifier_key.text = kwargs.pop('identifier') version_key = ET.SubElement(schema, "version") version_key.text = kwargs.pop('version') format = ET.SubElement(schema, "format") format.text = kwargs.pop('format') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_schemas_schema_format(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") identifier_key = ET.SubElement(schema, "identifier") identifier_key.text = kwargs.pop('identifier') version_key = ET.SubElement(schema, "version") version_key.text = kwargs.pop('version') format = ET.SubElement(schema, "format") format.text = kwargs.pop('format') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_schemas_schema_format", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L173-L188
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_schemas_schema_namespace
def netconf_state_schemas_schema_namespace(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") identifier_key = ET.SubElement(schema, "identifier") identifier_key.text = kwargs.pop('identifier') version_key = ET.SubElement(schema, "version") version_key.text = kwargs.pop('version') format_key = ET.SubElement(schema, "format") format_key.text = kwargs.pop('format') namespace = ET.SubElement(schema, "namespace") namespace.text = kwargs.pop('namespace') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_schemas_schema_namespace(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") schemas = ET.SubElement(netconf_state, "schemas") schema = ET.SubElement(schemas, "schema") identifier_key = ET.SubElement(schema, "identifier") identifier_key.text = kwargs.pop('identifier') version_key = ET.SubElement(schema, "version") version_key.text = kwargs.pop('version') format_key = ET.SubElement(schema, "format") format_key.text = kwargs.pop('format') namespace = ET.SubElement(schema, "namespace") namespace.text = kwargs.pop('namespace') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_schemas_schema_namespace", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L190-L207
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_session_id
def netconf_state_sessions_session_session_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id = ET.SubElement(session, "session-id") session_id.text = kwargs.pop('session_id') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_session_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id = ET.SubElement(session, "session-id") session_id.text = kwargs.pop('session_id') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_session_id", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L209-L220
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_transport
def netconf_state_sessions_session_transport(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') transport = ET.SubElement(session, "transport") transport.text = kwargs.pop('transport') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_transport(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') transport = ET.SubElement(session, "transport") transport.text = kwargs.pop('transport') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_transport", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns"...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L222-L235
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_username
def netconf_state_sessions_session_username(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') username = ET.SubElement(session, "username") username.text = kwargs.pop('username') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_username(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') username = ET.SubElement(session, "username") username.text = kwargs.pop('username') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_username", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L237-L250
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_source_host
def netconf_state_sessions_session_source_host(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') source_host = ET.SubElement(session, "source-host") source_host.text = kwargs.pop('source_host') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_source_host(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') source_host = ET.SubElement(session, "source-host") source_host.text = kwargs.pop('source_host') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_source_host", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmln...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L252-L265
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_login_time
def netconf_state_sessions_session_login_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') login_time = ET.SubElement(session, "login-time") login_time.text = kwargs.pop('login_time') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_login_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') login_time = ET.SubElement(session, "login-time") login_time.text = kwargs.pop('login_time') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_login_time", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L267-L280
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_in_rpcs
def netconf_state_sessions_session_in_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') in_rpcs = ET.SubElement(session, "in-rpcs") in_rpcs.text = kwargs.pop('in_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_in_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') in_rpcs = ET.SubElement(session, "in-rpcs") in_rpcs.text = kwargs.pop('in_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_in_rpcs", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L282-L295
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_in_bad_rpcs
def netconf_state_sessions_session_in_bad_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') in_bad_rpcs = ET.SubElement(session, "in-bad-rpcs") in_bad_rpcs.text = kwargs.pop('in_bad_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_in_bad_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') in_bad_rpcs = ET.SubElement(session, "in-bad-rpcs") in_bad_rpcs.text = kwargs.pop('in_bad_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_in_bad_rpcs", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmln...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L297-L310
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_out_rpc_errors
def netconf_state_sessions_session_out_rpc_errors(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') out_rpc_errors = ET.SubElement(session, "out-rpc-errors") out_rpc_errors.text = kwargs.pop('out_rpc_errors') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_out_rpc_errors(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') out_rpc_errors = ET.SubElement(session, "out-rpc-errors") out_rpc_errors.text = kwargs.pop('out_rpc_errors') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_out_rpc_errors", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "x...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L312-L325
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_sessions_session_out_notifications
def netconf_state_sessions_session_out_notifications(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') out_notifications = ET.SubElement(session, "out-notifications") out_notifications.text = kwargs.pop('out_notifications') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_sessions_session_out_notifications(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") sessions = ET.SubElement(netconf_state, "sessions") session = ET.SubElement(sessions, "session") session_id_key = ET.SubElement(session, "session-id") session_id_key.text = kwargs.pop('session_id') out_notifications = ET.SubElement(session, "out-notifications") out_notifications.text = kwargs.pop('out_notifications') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_sessions_session_out_notifications", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L327-L340
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_netconf_start_time
def netconf_state_statistics_netconf_start_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") netconf_start_time = ET.SubElement(statistics, "netconf-start-time") netconf_start_time.text = kwargs.pop('netconf_start_time') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_netconf_start_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") netconf_start_time = ET.SubElement(statistics, "netconf-start-time") netconf_start_time.text = kwargs.pop('netconf_start_time') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_netconf_start_time", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xml...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L342-L352
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_in_bad_hellos
def netconf_state_statistics_in_bad_hellos(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_bad_hellos = ET.SubElement(statistics, "in-bad-hellos") in_bad_hellos.text = kwargs.pop('in_bad_hellos') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_in_bad_hellos(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_bad_hellos = ET.SubElement(statistics, "in-bad-hellos") in_bad_hellos.text = kwargs.pop('in_bad_hellos') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_in_bad_hellos", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L354-L364
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_in_sessions
def netconf_state_statistics_in_sessions(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_sessions = ET.SubElement(statistics, "in-sessions") in_sessions.text = kwargs.pop('in_sessions') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_in_sessions(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_sessions = ET.SubElement(statistics, "in-sessions") in_sessions.text = kwargs.pop('in_sessions') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_in_sessions", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L366-L376
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_dropped_sessions
def netconf_state_statistics_dropped_sessions(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") dropped_sessions = ET.SubElement(statistics, "dropped-sessions") dropped_sessions.text = kwargs.pop('dropped_sessions') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_dropped_sessions(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") dropped_sessions = ET.SubElement(statistics, "dropped-sessions") dropped_sessions.text = kwargs.pop('dropped_sessions') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_dropped_sessions", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L378-L388
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_in_rpcs
def netconf_state_statistics_in_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_rpcs = ET.SubElement(statistics, "in-rpcs") in_rpcs.text = kwargs.pop('in_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_in_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_rpcs = ET.SubElement(statistics, "in-rpcs") in_rpcs.text = kwargs.pop('in_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_in_rpcs", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L390-L400
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_in_bad_rpcs
def netconf_state_statistics_in_bad_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_bad_rpcs = ET.SubElement(statistics, "in-bad-rpcs") in_bad_rpcs.text = kwargs.pop('in_bad_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_in_bad_rpcs(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") in_bad_rpcs = ET.SubElement(statistics, "in-bad-rpcs") in_bad_rpcs.text = kwargs.pop('in_bad_rpcs') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_in_bad_rpcs", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L402-L412
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_out_rpc_errors
def netconf_state_statistics_out_rpc_errors(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") out_rpc_errors = ET.SubElement(statistics, "out-rpc-errors") out_rpc_errors.text = kwargs.pop('out_rpc_errors') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_out_rpc_errors(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") out_rpc_errors = ET.SubElement(statistics, "out-rpc-errors") out_rpc_errors.text = kwargs.pop('out_rpc_errors') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_out_rpc_errors", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L414-L424
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_statistics_out_notifications
def netconf_state_statistics_out_notifications(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") out_notifications = ET.SubElement(statistics, "out-notifications") out_notifications.text = kwargs.pop('out_notifications') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_statistics_out_notifications(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") statistics = ET.SubElement(netconf_state, "statistics") out_notifications = ET.SubElement(statistics, "out-notifications") out_notifications.text = kwargs.pop('out_notifications') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_statistics_out_notifications", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmln...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L426-L436
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_files_file_name
def netconf_state_files_file_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name = ET.SubElement(file, "name") name.text = kwargs.pop('name') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_files_file_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name = ET.SubElement(file, "name") name.text = kwargs.pop('name') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_files_file_name", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", "=", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L438-L449
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_files_file_creator
def netconf_state_files_file_creator(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name_key = ET.SubElement(file, "name") name_key.text = kwargs.pop('name') creator = ET.SubElement(file, "creator") creator.text = kwargs.pop('creator') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_files_file_creator(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name_key = ET.SubElement(file, "name") name_key.text = kwargs.pop('name') creator = ET.SubElement(file, "creator") creator.text = kwargs.pop('creator') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_files_file_creator", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L451-L464
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_files_file_created
def netconf_state_files_file_created(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name_key = ET.SubElement(file, "name") name_key.text = kwargs.pop('name') created = ET.SubElement(file, "created") created.text = kwargs.pop('created') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_files_file_created(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name_key = ET.SubElement(file, "name") name_key.text = kwargs.pop('name') created = ET.SubElement(file, "created") created.text = kwargs.pop('created') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_files_file_created", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L466-L479
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.netconf_state_files_file_context
def netconf_state_files_file_context(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name_key = ET.SubElement(file, "name") name_key.text = kwargs.pop('name') context = ET.SubElement(file, "context") context.text = kwargs.pop('context') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def netconf_state_files_file_context(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring") files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring") file = ET.SubElement(files, "file") name_key = ET.SubElement(file, "name") name_key.text = kwargs.pop('name') context = ET.SubElement(file, "context") context.text = kwargs.pop('context') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "netconf_state_files_file_context", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "netconf_state", "=", "ET", ".", "SubElement", "(", "config", ",", "\"netconf-state\"", ",", "xmlns", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L481-L494
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.get_schema_input_identifier
def get_schema_input_identifier(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_schema = ET.Element("get_schema") config = get_schema input = ET.SubElement(get_schema, "input") identifier = ET.SubElement(input, "identifier") identifier.text = kwargs.pop('identifier') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_schema_input_identifier(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_schema = ET.Element("get_schema") config = get_schema input = ET.SubElement(get_schema, "input") identifier = ET.SubElement(input, "identifier") identifier.text = kwargs.pop('identifier') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_schema_input_identifier", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_schema", "=", "ET", ".", "Element", "(", "\"get_schema\"", ")", "config", "=", "get_schema", "input", "=...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L496-L507
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.get_schema_input_version
def get_schema_input_version(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_schema = ET.Element("get_schema") config = get_schema input = ET.SubElement(get_schema, "input") version = ET.SubElement(input, "version") version.text = kwargs.pop('version') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_schema_input_version(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_schema = ET.Element("get_schema") config = get_schema input = ET.SubElement(get_schema, "input") version = ET.SubElement(input, "version") version.text = kwargs.pop('version') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_schema_input_version", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_schema", "=", "ET", ".", "Element", "(", "\"get_schema\"", ")", "config", "=", "get_schema", "input", "=", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L509-L520
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py
ietf_netconf_monitoring.get_schema_input_format
def get_schema_input_format(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_schema = ET.Element("get_schema") config = get_schema input = ET.SubElement(get_schema, "input") format = ET.SubElement(input, "format") format.text = kwargs.pop('format') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def get_schema_input_format(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_schema = ET.Element("get_schema") config = get_schema input = ET.SubElement(get_schema, "input") format = ET.SubElement(input, "format") format.text = kwargs.pop('format') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "get_schema_input_format", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "get_schema", "=", "ET", ".", "Element", "(", "\"get_schema\"", ")", "config", "=", "get_schema", "input", "=", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/ietf_netconf_monitoring.py#L522-L533
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_fan_threshold_marginal_threshold
def system_monitor_fan_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") threshold = ET.SubElement(fan, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_fan_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") threshold = ET.SubElement(fan, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_fan_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L12-L23
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_fan_threshold_down_threshold
def system_monitor_fan_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") threshold = ET.SubElement(fan, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_fan_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") threshold = ET.SubElement(fan, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_fan_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "x...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L25-L36
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_fan_alert_state
def system_monitor_fan_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") alert = ET.SubElement(fan, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_fan_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") alert = ET.SubElement(fan, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_fan_alert_state", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L38-L49
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_fan_alert_action
def system_monitor_fan_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") alert = ET.SubElement(fan, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_fan_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fan = ET.SubElement(system_monitor, "fan") alert = ET.SubElement(fan, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_fan_alert_action", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", "="...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L51-L62
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_power_threshold_marginal_threshold
def system_monitor_power_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") threshold = ET.SubElement(power, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_power_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") threshold = ET.SubElement(power, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_power_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ","...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L64-L75
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_power_threshold_down_threshold
def system_monitor_power_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") threshold = ET.SubElement(power, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_power_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") threshold = ET.SubElement(power, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_power_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L77-L88
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_power_alert_state
def system_monitor_power_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") alert = ET.SubElement(power, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_power_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") alert = ET.SubElement(power, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_power_alert_state", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", "=...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L90-L101
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_power_alert_action
def system_monitor_power_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") alert = ET.SubElement(power, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_power_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") power = ET.SubElement(system_monitor, "power") alert = ET.SubElement(power, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_power_alert_action", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L103-L114
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_temp_threshold_marginal_threshold
def system_monitor_temp_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") temp = ET.SubElement(system_monitor, "temp") threshold = ET.SubElement(temp, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_temp_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") temp = ET.SubElement(system_monitor, "temp") threshold = ET.SubElement(temp, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_temp_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L116-L127
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_temp_threshold_down_threshold
def system_monitor_temp_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") temp = ET.SubElement(system_monitor, "temp") threshold = ET.SubElement(temp, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_temp_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") temp = ET.SubElement(system_monitor, "temp") threshold = ET.SubElement(temp, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_temp_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L129-L140
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_cid_card_threshold_marginal_threshold
def system_monitor_cid_card_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") threshold = ET.SubElement(cid_card, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_cid_card_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") threshold = ET.SubElement(cid_card, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_cid_card_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L142-L153
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_cid_card_threshold_down_threshold
def system_monitor_cid_card_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") threshold = ET.SubElement(cid_card, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_cid_card_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") threshold = ET.SubElement(cid_card, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_cid_card_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L155-L166
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_cid_card_alert_state
def system_monitor_cid_card_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") alert = ET.SubElement(cid_card, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_cid_card_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") alert = ET.SubElement(cid_card, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_cid_card_alert_state", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L168-L179
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_cid_card_alert_action
def system_monitor_cid_card_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") alert = ET.SubElement(cid_card, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_cid_card_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") cid_card = ET.SubElement(system_monitor, "cid-card") alert = ET.SubElement(cid_card, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_cid_card_alert_action", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L181-L192
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_sfp_alert_state
def system_monitor_sfp_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") sfp = ET.SubElement(system_monitor, "sfp") alert = ET.SubElement(sfp, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_sfp_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") sfp = ET.SubElement(system_monitor, "sfp") alert = ET.SubElement(sfp, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_sfp_alert_state", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", "=",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L194-L205
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_sfp_alert_action
def system_monitor_sfp_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") sfp = ET.SubElement(system_monitor, "sfp") alert = ET.SubElement(sfp, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_sfp_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") sfp = ET.SubElement(system_monitor, "sfp") alert = ET.SubElement(sfp, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_sfp_alert_action", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", "="...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L207-L218
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_compact_flash_threshold_marginal_threshold
def system_monitor_compact_flash_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") compact_flash = ET.SubElement(system_monitor, "compact-flash") threshold = ET.SubElement(compact_flash, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_compact_flash_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") compact_flash = ET.SubElement(system_monitor, "compact-flash") threshold = ET.SubElement(compact_flash, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_compact_flash_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L220-L231
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_compact_flash_threshold_down_threshold
def system_monitor_compact_flash_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") compact_flash = ET.SubElement(system_monitor, "compact-flash") threshold = ET.SubElement(compact_flash, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_compact_flash_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") compact_flash = ET.SubElement(system_monitor, "compact-flash") threshold = ET.SubElement(compact_flash, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_compact_flash_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L233-L244
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_MM_threshold_marginal_threshold
def system_monitor_MM_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") MM = ET.SubElement(system_monitor, "MM") threshold = ET.SubElement(MM, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_MM_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") MM = ET.SubElement(system_monitor, "MM") threshold = ET.SubElement(MM, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_MM_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L246-L257
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_MM_threshold_down_threshold
def system_monitor_MM_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") MM = ET.SubElement(system_monitor, "MM") threshold = ET.SubElement(MM, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_MM_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") MM = ET.SubElement(system_monitor, "MM") threshold = ET.SubElement(MM, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_MM_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xm...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L259-L270
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_LineCard_threshold_marginal_threshold
def system_monitor_LineCard_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") threshold = ET.SubElement(LineCard, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_LineCard_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") threshold = ET.SubElement(LineCard, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_LineCard_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L272-L283
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_LineCard_threshold_down_threshold
def system_monitor_LineCard_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") threshold = ET.SubElement(LineCard, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_LineCard_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") threshold = ET.SubElement(LineCard, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_LineCard_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L285-L296
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_LineCard_alert_state
def system_monitor_LineCard_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") alert = ET.SubElement(LineCard, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_LineCard_alert_state(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") alert = ET.SubElement(LineCard, "alert") state = ET.SubElement(alert, "state") state.text = kwargs.pop('state') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_LineCard_alert_state", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L298-L309
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_LineCard_alert_action
def system_monitor_LineCard_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") alert = ET.SubElement(LineCard, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_LineCard_alert_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") LineCard = ET.SubElement(system_monitor, "LineCard") alert = ET.SubElement(LineCard, "alert") action = ET.SubElement(alert, "action") action.text = kwargs.pop('action') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_LineCard_alert_action", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "xmlns", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L311-L322
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_SFM_threshold_marginal_threshold
def system_monitor_SFM_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") SFM = ET.SubElement(system_monitor, "SFM") threshold = ET.SubElement(SFM, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_SFM_threshold_marginal_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") SFM = ET.SubElement(system_monitor, "SFM") threshold = ET.SubElement(SFM, "threshold") marginal_threshold = ET.SubElement(threshold, "marginal-threshold") marginal_threshold.text = kwargs.pop('marginal_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_SFM_threshold_marginal_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", ...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L324-L335
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_SFM_threshold_down_threshold
def system_monitor_SFM_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") SFM = ET.SubElement(system_monitor, "SFM") threshold = ET.SubElement(SFM, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_SFM_threshold_down_threshold(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") SFM = ET.SubElement(system_monitor, "SFM") threshold = ET.SubElement(SFM, "threshold") down_threshold = ET.SubElement(threshold, "down-threshold") down_threshold.text = kwargs.pop('down_threshold') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_SFM_threshold_down_threshold", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor\"", ",", "x...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L337-L348
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_mail_fru_enable
def system_monitor_mail_fru_enable(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fru = ET.SubElement(system_monitor_mail, "fru") enable = ET.SubElement(fru, "enable") callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_mail_fru_enable(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fru = ET.SubElement(system_monitor_mail, "fru") enable = ET.SubElement(fru, "enable") callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_mail_fru_enable", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor_mail", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor-mail\"", ",", "xmln...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L350-L359
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_mail_fru_email_list_email
def system_monitor_mail_fru_email_list_email(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fru = ET.SubElement(system_monitor_mail, "fru") email_list = ET.SubElement(fru, "email-list") email = ET.SubElement(email_list, "email") email.text = kwargs.pop('email') callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_mail_fru_email_list_email(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") fru = ET.SubElement(system_monitor_mail, "fru") email_list = ET.SubElement(fru, "email-list") email = ET.SubElement(email_list, "email") email.text = kwargs.pop('email') callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_mail_fru_email_list_email", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor_mail", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor-mail\"", ",...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L361-L372
brocade/pynos
pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py
brocade_system_monitor.system_monitor_mail_sfp_enable
def system_monitor_mail_sfp_enable(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") sfp = ET.SubElement(system_monitor_mail, "sfp") enable = ET.SubElement(sfp, "enable") callback = kwargs.pop('callback', self._callback) return callback(config)
python
def system_monitor_mail_sfp_enable(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor") sfp = ET.SubElement(system_monitor_mail, "sfp") enable = ET.SubElement(sfp, "enable") callback = kwargs.pop('callback', self._callback) return callback(config)
[ "def", "system_monitor_mail_sfp_enable", "(", "self", ",", "*", "*", "kwargs", ")", ":", "config", "=", "ET", ".", "Element", "(", "\"config\"", ")", "system_monitor_mail", "=", "ET", ".", "SubElement", "(", "config", ",", "\"system-monitor-mail\"", ",", "xmln...
Auto Generated Code
[ "Auto", "Generated", "Code" ]
train
https://github.com/brocade/pynos/blob/bd8a34e98f322de3fc06750827d8bbc3a0c00380/pynos/versions/ver_6/ver_6_0_1/yang/brocade_system_monitor.py#L374-L383