from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions import dsz if ('netbios' not in cmd_definitions): dszadapter = OpsClass('adapter', {'iframe_recv_err': OpsField('iframe_recv_err', dsz.TYPE_INT), 'iframe_xmit_err': OpsField('iframe_xmit_err', dsz.TYPE_INT), 'max_sess_pkt_size': OpsField('max_sess_pkt_size', dsz.TYPE_INT), 'xmit_success': OpsField('xmit_success', dsz.TYPE_INT), 'ti_timeouts': OpsField('ti_timeouts', dsz.TYPE_INT), 'pending_sess': OpsField('pending_sess', dsz.TYPE_INT), 'max_sess': OpsField('max_sess', dsz.TYPE_INT), 'max_cfg_sess': OpsField('max_cfg_sess', dsz.TYPE_INT), 'max_ncbs': OpsField('max_ncbs', dsz.TYPE_INT), 'name_count': OpsField('name_count', dsz.TYPE_INT), 'max_cfg_ncbs': OpsField('max_cfg_ncbs', dsz.TYPE_INT), 't1_timeouts': OpsField('t1_timeouts', dsz.TYPE_INT), 'xmit_aborts': OpsField('xmit_aborts', dsz.TYPE_INT), 'recv_buff_unavail': OpsField('recv_buff_unavail', dsz.TYPE_INT), 'frmr_recv': OpsField('frmr_recv', dsz.TYPE_INT), 'free_ncbs': OpsField('free_ncbs', dsz.TYPE_INT), 'xmit_buf_unavail': OpsField('xmit_buf_unavail', dsz.TYPE_INT), 'duration': OpsField('duration', dsz.TYPE_INT), 'max_dgram_size': OpsField('max_dgram_size', dsz.TYPE_INT), 'recv_success': OpsField('recv_success', dsz.TYPE_INT), 'frmr_xmit': OpsField('frmr_xmit', dsz.TYPE_INT), 'adapter_type': OpsField('adapter_type', dsz.TYPE_STRING), 'release': OpsField('release', dsz.TYPE_STRING), 'adapter_addr': OpsField('adapter_addr', dsz.TYPE_STRING), 'names': OpsClass('names', {'type': OpsField('type', dsz.TYPE_STRING), 'netname': OpsField('netname', dsz.TYPE_STRING), 'name': OpsField('name', dsz.TYPE_STRING)}, DszObject, single=False)}, DszObject) dszncb = OpsClass('ncb', {'ncb_lsn': OpsField('ncb_lsn', dsz.TYPE_INT), 'ncb_command': OpsField('ncb_command', dsz.TYPE_INT), 'ncb_rto': OpsField('ncb_rto', dsz.TYPE_INT), 'ncb_num': OpsField('ncb_num', dsz.TYPE_INT), 'ncb_cmd_cplt': OpsField('ncb_cmd_cplt', dsz.TYPE_INT), 'ncb_retcode': OpsField('ncb_retcode', dsz.TYPE_INT), 'ncb_sto': OpsField('ncb_sto', dsz.TYPE_INT), 'ncb_lana_num': OpsField('ncb_lana_num', dsz.TYPE_INT), 'ncbname': OpsField('ncbname', dsz.TYPE_STRING), 'callname': OpsField('callname', dsz.TYPE_STRING)}, DszObject) dsznetbios = OpsClass('netbios', {'adapter': dszadapter, 'ncb': dszncb}, DszObject, single=False) netbioscommand = OpsClass('netbios', {'netbios': dsznetbios}, DszCommandObject) cmd_definitions['netbios'] = netbioscommand