diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/proto/vyconf_pb2.py | 136 | ||||
| -rw-r--r-- | python/vyos/proto/vyconf_proto.py | 26 |
2 files changed, 80 insertions, 82 deletions
diff --git a/python/vyos/proto/vyconf_pb2.py b/python/vyos/proto/vyconf_pb2.py index 5699bbc7f..901843e9e 100644 --- a/python/vyos/proto/vyconf_pb2.py +++ b/python/vyos/proto/vyconf_pb2.py @@ -13,17 +13,17 @@ _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cvyconf.proto\"\xdb\x1e\n\x07Request\x12!\n\x06prompt\x18\x01 \x01(\x0b\x32\x0f.Request.PromptH\x00\x12.\n\rsetup_session\x18\x02 \x01(\x0b\x32\x15.Request.SetupSessionH\x00\x12\x1b\n\x03set\x18\x03 \x01(\x0b\x32\x0c.Request.SetH\x00\x12!\n\x06\x64\x65lete\x18\x04 \x01(\x0b\x32\x0f.Request.DeleteH\x00\x12!\n\x06rename\x18\x05 \x01(\x0b\x32\x0f.Request.RenameH\x00\x12\x1d\n\x04\x63opy\x18\x06 \x01(\x0b\x32\r.Request.CopyH\x00\x12#\n\x07\x63omment\x18\x07 \x01(\x0b\x32\x10.Request.CommentH\x00\x12!\n\x06\x63ommit\x18\x08 \x01(\x0b\x32\x0f.Request.CommitH\x00\x12%\n\x08rollback\x18\t \x01(\x0b\x32\x11.Request.RollbackH\x00\x12\x1f\n\x05merge\x18\n \x01(\x0b\x32\x0e.Request.MergeH\x00\x12\x1d\n\x04save\x18\x0b \x01(\x0b\x32\r.Request.SaveH\x00\x12*\n\x0bshow_config\x18\x0c \x01(\x0b\x32\x13.Request.ShowConfigH\x00\x12!\n\x06\x65xists\x18\r \x01(\x0b\x32\x0f.Request.ExistsH\x00\x12&\n\tget_value\x18\x0e \x01(\x0b\x32\x11.Request.GetValueH\x00\x12(\n\nget_values\x18\x0f \x01(\x0b\x32\x12.Request.GetValuesH\x00\x12.\n\rlist_children\x18\x10 \x01(\x0b\x32\x15.Request.ListChildrenH\x00\x12)\n\x0brun_op_mode\x18\x11 \x01(\x0b\x32\x12.Request.RunOpModeH\x00\x12#\n\x07\x63onfirm\x18\x12 \x01(\x0b\x32\x10.Request.ConfirmH\x00\x12\x43\n\x18\x65nter_configuration_mode\x18\x13 \x01(\x0b\x32\x1f.Request.EnterConfigurationModeH\x00\x12\x41\n\x17\x65xit_configuration_mode\x18\x14 \x01(\x0b\x32\x1e.Request.ExitConfigurationModeH\x00\x12%\n\x08validate\x18\x15 \x01(\x0b\x32\x11.Request.ValidateH\x00\x12%\n\x08teardown\x18\x16 \x01(\x0b\x32\x11.Request.TeardownH\x00\x12\x30\n\x0ereload_reftree\x18\x17 \x01(\x0b\x32\x16.Request.ReloadReftreeH\x00\x12\x1d\n\x04load\x18\x18 \x01(\x0b\x32\r.Request.LoadH\x00\x12#\n\x07\x64iscard\x18\x19 \x01(\x0b\x32\x10.Request.DiscardH\x00\x12\x32\n\x0fsession_changed\x18\x1a \x01(\x0b\x32\x17.Request.SessionChangedH\x00\x12/\n\x0esession_of_pid\x18\x1b \x01(\x0b\x32\x15.Request.SessionOfPidH\x00\x12\x30\n\x0esession_exists\x18\x1c \x01(\x0b\x32\x16.Request.SessionExistsH\x00\x12(\n\nget_config\x18\x1d \x01(\x0b\x32\x12.Request.GetConfigH\x00\x12\"\n\x07\x61ux_set\x18\x1e \x01(\x0b\x32\x0f.Request.AuxSetH\x00\x12(\n\naux_delete\x18\x1f \x01(\x0b\x32\x12.Request.AuxDeleteH\x00\x12.\n\rshow_sessions\x18 \x01(\x0b\x32\x15.Request.ShowSessionsH\x00\x12/\n\x0eset_edit_level\x18! \x01(\x0b\x32\x15.Request.SetEditLevelH\x00\x12\x34\n\x11set_edit_level_up\x18\" \x01(\x0b\x32\x17.Request.SetEditLevelUpH\x00\x12\x33\n\x10reset_edit_level\x18# \x01(\x0b\x32\x17.Request.ResetEditLevelH\x00\x12/\n\x0eget_edit_level\x18$ \x01(\x0b\x32\x15.Request.GetEditLevelH\x00\x12\x31\n\x0f\x65\x64it_level_root\x18% \x01(\x0b\x32\x16.Request.EditLevelRootH\x00\x12\x30\n\x0e\x63onfig_unsaved\x18& \x01(\x0b\x32\x16.Request.ConfigUnsavedH\x00\x12=\n\x15reference_path_exists\x18\' \x01(\x0b\x32\x1c.Request.ReferencePathExistsH\x00\x12-\n\rget_path_type\x18( \x01(\x0b\x32\x14.Request.GetPathTypeH\x00\x12\x37\n\x12get_completion_env\x18) \x01(\x0b\x32\x19.Request.GetCompletionEnvH\x00\x1a\x08\n\x06Prompt\x1a\x83\x01\n\x0cSetupSession\x12\x12\n\nclient_pid\x18\x01 \x02(\x05\x12\x1a\n\x12\x63lient_application\x18\x02 \x01(\t\x12\x14\n\x0con_behalf_of\x18\x03 \x01(\x05\x12\x13\n\x0b\x63lient_user\x18\x04 \x01(\t\x12\x18\n\x10\x63lient_sudo_user\x18\x05 \x01(\t\x1a\"\n\x0cSessionOfPid\x12\x12\n\nclient_pid\x18\x01 \x02(\x05\x1a\x1e\n\rSessionExists\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1a\n\tGetConfig\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a \n\x08Teardown\x12\x14\n\x0con_behalf_of\x18\x01 \x01(\x05\x1a\x46\n\x08Validate\x12\x0c\n\x04Path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1a\x13\n\x03Set\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x16\n\x06\x44\x65lete\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a>\n\x06\x41uxSet\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0bscript_name\x18\x02 \x02(\t\x12\x11\n\ttag_value\x18\x03 \x01(\t\x1a\x41\n\tAuxDelete\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0bscript_name\x18\x02 \x02(\t\x12\x11\n\ttag_value\x18\x03 \x01(\t\x1a\x18\n\x07\x44iscard\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1f\n\x0eSessionChanged\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x41\n\x06Rename\x12\x12\n\nedit_level\x18\x01 \x03(\t\x12\x0e\n\x06source\x18\x02 \x02(\t\x12\x13\n\x0b\x64\x65stination\x18\x03 \x02(\t\x1a?\n\x04\x43opy\x12\x12\n\nedit_level\x18\x01 \x03(\t\x12\x0e\n\x06source\x18\x02 \x02(\t\x12\x13\n\x0b\x64\x65stination\x18\x03 \x02(\t\x1a(\n\x07\x43omment\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x0f\n\x07\x63omment\x18\x02 \x02(\t\x1aT\n\x06\x43ommit\x12\x0f\n\x07\x63onfirm\x18\x01 \x01(\x08\x12\x17\n\x0f\x63onfirm_timeout\x18\x02 \x01(\x05\x12\x0f\n\x07\x63omment\x18\x03 \x01(\t\x12\x0f\n\x07\x64ry_run\x18\x04 \x01(\x08\x1a\x1c\n\x08Rollback\x12\x10\n\x08revision\x18\x01 \x02(\x05\x1aO\n\x04Load\x12\x10\n\x08location\x18\x01 \x02(\t\x12\x0e\n\x06\x63\x61\x63hed\x18\x02 \x02(\x08\x12%\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x15.Request.ConfigFormat\x1aU\n\x05Merge\x12\x10\n\x08location\x18\x01 \x02(\t\x12\x13\n\x0b\x64\x65structive\x18\x02 \x02(\x08\x12%\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x15.Request.ConfigFormat\x1a?\n\x04Save\x12\x10\n\x08location\x18\x01 \x02(\t\x12%\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x15.Request.ConfigFormat\x1a\x41\n\nShowConfig\x12\x0c\n\x04path\x18\x01 \x03(\t\x12%\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x15.Request.ConfigFormat\x1a\x16\n\x06\x45xists\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x46\n\x08GetValue\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1aG\n\tGetValues\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1aJ\n\x0cListChildren\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1aG\n\tRunOpMode\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1a\t\n\x07\x43onfirm\x1aG\n\x16\x45nterConfigurationMode\x12\x11\n\texclusive\x18\x01 \x02(\x08\x12\x1a\n\x12override_exclusive\x18\x02 \x02(\x08\x1a\x17\n\x15\x45xitConfigurationMode\x1a%\n\rReloadReftree\x12\x14\n\x0con_behalf_of\x18\x01 \x01(\x05\x1a;\n\x0cShowSessions\x12\x14\n\x0c\x65xclude_self\x18\x01 \x02(\x08\x12\x15\n\rexclude_other\x18\x02 \x02(\x08\x1a\x1c\n\x0cSetEditLevel\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x1f\n\x0eSetEditLevelUp\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1f\n\x0eResetEditLevel\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1d\n\x0cGetEditLevel\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1e\n\rEditLevelRoot\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1d\n\rConfigUnsaved\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x1a#\n\x13ReferencePathExists\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x32\n\x0bGetPathType\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x15\n\rlegacy_format\x18\x02 \x02(\x08\x1a\x37\n\x10GetCompletionEnv\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x15\n\rlegacy_format\x18\x02 \x02(\x08\"#\n\x0c\x43onfigFormat\x12\t\n\x05\x43URLY\x10\x00\x12\x08\n\x04JSON\x10\x01\")\n\x0cOutputFormat\x12\x0c\n\x08OutPlain\x10\x00\x12\x0b\n\x07OutJSON\x10\x01\x42\x05\n\x03msg\";\n\x0fRequestEnvelope\x12\r\n\x05token\x18\x01 \x01(\t\x12\x19\n\x07request\x18\x02 \x02(\x0b\x32\x08.Request\"S\n\x08Response\x12\x17\n\x06status\x18\x01 \x02(\x0e\x32\x07.Errnum\x12\x0e\n\x06output\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x0f\n\x07warning\x18\x04 \x01(\t*\xd2\x01\n\x06\x45rrnum\x12\x0b\n\x07SUCCESS\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\x10\n\x0cINVALID_PATH\x10\x02\x12\x11\n\rINVALID_VALUE\x10\x03\x12\x16\n\x12\x43OMMIT_IN_PROGRESS\x10\x04\x12\x18\n\x14\x43ONFIGURATION_LOCKED\x10\x05\x12\x12\n\x0eINTERNAL_ERROR\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x17\n\x13PATH_ALREADY_EXISTS\x10\x08\x12\x16\n\x12UNCOMMITED_CHANGES\x10\t') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cvyconf.proto\"\xb3\x1e\n\x07Request\x12!\n\x06prompt\x18\x01 \x01(\x0b\x32\x0f.Request.PromptH\x00\x12.\n\rsetup_session\x18\x02 \x01(\x0b\x32\x15.Request.SetupSessionH\x00\x12\x1b\n\x03set\x18\x03 \x01(\x0b\x32\x0c.Request.SetH\x00\x12!\n\x06\x64\x65lete\x18\x04 \x01(\x0b\x32\x0f.Request.DeleteH\x00\x12!\n\x06rename\x18\x05 \x01(\x0b\x32\x0f.Request.RenameH\x00\x12\x1d\n\x04\x63opy\x18\x06 \x01(\x0b\x32\r.Request.CopyH\x00\x12#\n\x07\x63omment\x18\x07 \x01(\x0b\x32\x10.Request.CommentH\x00\x12!\n\x06\x63ommit\x18\x08 \x01(\x0b\x32\x0f.Request.CommitH\x00\x12%\n\x08rollback\x18\t \x01(\x0b\x32\x11.Request.RollbackH\x00\x12\x1f\n\x05merge\x18\n \x01(\x0b\x32\x0e.Request.MergeH\x00\x12\x1d\n\x04save\x18\x0b \x01(\x0b\x32\r.Request.SaveH\x00\x12*\n\x0bshow_config\x18\x0c \x01(\x0b\x32\x13.Request.ShowConfigH\x00\x12!\n\x06\x65xists\x18\r \x01(\x0b\x32\x0f.Request.ExistsH\x00\x12&\n\tget_value\x18\x0e \x01(\x0b\x32\x11.Request.GetValueH\x00\x12(\n\nget_values\x18\x0f \x01(\x0b\x32\x12.Request.GetValuesH\x00\x12.\n\rlist_children\x18\x10 \x01(\x0b\x32\x15.Request.ListChildrenH\x00\x12)\n\x0brun_op_mode\x18\x11 \x01(\x0b\x32\x12.Request.RunOpModeH\x00\x12#\n\x07\x63onfirm\x18\x12 \x01(\x0b\x32\x10.Request.ConfirmH\x00\x12\x43\n\x18\x65nter_configuration_mode\x18\x13 \x01(\x0b\x32\x1f.Request.EnterConfigurationModeH\x00\x12\x41\n\x17\x65xit_configuration_mode\x18\x14 \x01(\x0b\x32\x1e.Request.ExitConfigurationModeH\x00\x12%\n\x08validate\x18\x15 \x01(\x0b\x32\x11.Request.ValidateH\x00\x12%\n\x08teardown\x18\x16 \x01(\x0b\x32\x11.Request.TeardownH\x00\x12\x30\n\x0ereload_reftree\x18\x17 \x01(\x0b\x32\x16.Request.ReloadReftreeH\x00\x12\x1d\n\x04load\x18\x18 \x01(\x0b\x32\r.Request.LoadH\x00\x12#\n\x07\x64iscard\x18\x19 \x01(\x0b\x32\x10.Request.DiscardH\x00\x12\x32\n\x0fsession_changed\x18\x1a \x01(\x0b\x32\x17.Request.SessionChangedH\x00\x12/\n\x0esession_of_pid\x18\x1b \x01(\x0b\x32\x15.Request.SessionOfPidH\x00\x12\x30\n\x0esession_exists\x18\x1c \x01(\x0b\x32\x16.Request.SessionExistsH\x00\x12(\n\nget_config\x18\x1d \x01(\x0b\x32\x12.Request.GetConfigH\x00\x12\"\n\x07\x61ux_set\x18\x1e \x01(\x0b\x32\x0f.Request.AuxSetH\x00\x12(\n\naux_delete\x18\x1f \x01(\x0b\x32\x12.Request.AuxDeleteH\x00\x12.\n\rshow_sessions\x18 \x01(\x0b\x32\x15.Request.ShowSessionsH\x00\x12/\n\x0eset_edit_level\x18! \x01(\x0b\x32\x15.Request.SetEditLevelH\x00\x12\x34\n\x11set_edit_level_up\x18\" \x01(\x0b\x32\x17.Request.SetEditLevelUpH\x00\x12\x33\n\x10reset_edit_level\x18# \x01(\x0b\x32\x17.Request.ResetEditLevelH\x00\x12/\n\x0eget_edit_level\x18$ \x01(\x0b\x32\x15.Request.GetEditLevelH\x00\x12\x31\n\x0f\x65\x64it_level_root\x18% \x01(\x0b\x32\x16.Request.EditLevelRootH\x00\x12\x30\n\x0e\x63onfig_unsaved\x18& \x01(\x0b\x32\x16.Request.ConfigUnsavedH\x00\x12=\n\x15reference_path_exists\x18\' \x01(\x0b\x32\x1c.Request.ReferencePathExistsH\x00\x12-\n\rget_path_type\x18( \x01(\x0b\x32\x14.Request.GetPathTypeH\x00\x12\x37\n\x12get_completion_env\x18) \x01(\x0b\x32\x19.Request.GetCompletionEnvH\x00\x1a\x08\n\x06Prompt\x1a\x83\x01\n\x0cSetupSession\x12\x12\n\nclient_pid\x18\x01 \x02(\x05\x12\x1a\n\x12\x63lient_application\x18\x02 \x01(\t\x12\x14\n\x0con_behalf_of\x18\x03 \x01(\x05\x12\x13\n\x0b\x63lient_user\x18\x04 \x01(\t\x12\x18\n\x10\x63lient_sudo_user\x18\x05 \x01(\t\x1a\"\n\x0cSessionOfPid\x12\x12\n\nclient_pid\x18\x01 \x02(\x05\x1a\x1e\n\rSessionExists\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1a\n\tGetConfig\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a \n\x08Teardown\x12\x14\n\x0con_behalf_of\x18\x01 \x01(\x05\x1a\x46\n\x08Validate\x12\x0c\n\x04Path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1a\x13\n\x03Set\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x16\n\x06\x44\x65lete\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a>\n\x06\x41uxSet\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0bscript_name\x18\x02 \x02(\t\x12\x11\n\ttag_value\x18\x03 \x01(\t\x1a\x41\n\tAuxDelete\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0bscript_name\x18\x02 \x02(\t\x12\x11\n\ttag_value\x18\x03 \x01(\t\x1a\x18\n\x07\x44iscard\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1f\n\x0eSessionChanged\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a+\n\x04\x43opy\x12\x0e\n\x06source\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65stination\x18\x02 \x03(\t\x1a-\n\x06Rename\x12\x0e\n\x06source\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65stination\x18\x02 \x03(\t\x1a(\n\x07\x43omment\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x0f\n\x07\x63omment\x18\x02 \x02(\t\x1aT\n\x06\x43ommit\x12\x0f\n\x07\x63onfirm\x18\x01 \x01(\x08\x12\x17\n\x0f\x63onfirm_timeout\x18\x02 \x01(\x05\x12\x0f\n\x07\x63omment\x18\x03 \x01(\t\x12\x0f\n\x07\x64ry_run\x18\x04 \x01(\x08\x1a\x1c\n\x08Rollback\x12\x10\n\x08revision\x18\x01 \x02(\x05\x1aO\n\x04Load\x12\x10\n\x08location\x18\x01 \x02(\t\x12\x0e\n\x06\x63\x61\x63hed\x18\x02 \x02(\x08\x12%\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x15.Request.ConfigFormat\x1aU\n\x05Merge\x12\x10\n\x08location\x18\x01 \x02(\t\x12\x13\n\x0b\x64\x65structive\x18\x02 \x02(\x08\x12%\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x15.Request.ConfigFormat\x1a?\n\x04Save\x12\x10\n\x08location\x18\x01 \x02(\t\x12%\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x15.Request.ConfigFormat\x1a\x41\n\nShowConfig\x12\x0c\n\x04path\x18\x01 \x03(\t\x12%\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x15.Request.ConfigFormat\x1a\x16\n\x06\x45xists\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x46\n\x08GetValue\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1aG\n\tGetValues\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1aJ\n\x0cListChildren\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1aG\n\tRunOpMode\x12\x0c\n\x04path\x18\x01 \x03(\t\x12,\n\routput_format\x18\x02 \x01(\x0e\x32\x15.Request.OutputFormat\x1a\t\n\x07\x43onfirm\x1aG\n\x16\x45nterConfigurationMode\x12\x11\n\texclusive\x18\x01 \x02(\x08\x12\x1a\n\x12override_exclusive\x18\x02 \x02(\x08\x1a\x17\n\x15\x45xitConfigurationMode\x1a%\n\rReloadReftree\x12\x14\n\x0con_behalf_of\x18\x01 \x01(\x05\x1a;\n\x0cShowSessions\x12\x14\n\x0c\x65xclude_self\x18\x01 \x02(\x08\x12\x15\n\rexclude_other\x18\x02 \x02(\x08\x1a\x1c\n\x0cSetEditLevel\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x1f\n\x0eSetEditLevelUp\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1f\n\x0eResetEditLevel\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1d\n\x0cGetEditLevel\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1e\n\rEditLevelRoot\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\x1a\x1d\n\rConfigUnsaved\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x1a#\n\x13ReferencePathExists\x12\x0c\n\x04path\x18\x01 \x03(\t\x1a\x32\n\x0bGetPathType\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x15\n\rlegacy_format\x18\x02 \x02(\x08\x1a\x37\n\x10GetCompletionEnv\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x15\n\rlegacy_format\x18\x02 \x02(\x08\"#\n\x0c\x43onfigFormat\x12\t\n\x05\x43URLY\x10\x00\x12\x08\n\x04JSON\x10\x01\")\n\x0cOutputFormat\x12\x0c\n\x08OutPlain\x10\x00\x12\x0b\n\x07OutJSON\x10\x01\x42\x05\n\x03msg\";\n\x0fRequestEnvelope\x12\r\n\x05token\x18\x01 \x01(\t\x12\x19\n\x07request\x18\x02 \x02(\x0b\x32\x08.Request\"S\n\x08Response\x12\x17\n\x06status\x18\x01 \x02(\x0e\x32\x07.Errnum\x12\x0e\n\x06output\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x0f\n\x07warning\x18\x04 \x01(\t*\xd2\x01\n\x06\x45rrnum\x12\x0b\n\x07SUCCESS\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\x10\n\x0cINVALID_PATH\x10\x02\x12\x11\n\rINVALID_VALUE\x10\x03\x12\x16\n\x12\x43OMMIT_IN_PROGRESS\x10\x04\x12\x18\n\x14\x43ONFIGURATION_LOCKED\x10\x05\x12\x12\n\x0eINTERNAL_ERROR\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x17\n\x13PATH_ALREADY_EXISTS\x10\x08\x12\x16\n\x12UNCOMMITED_CHANGES\x10\t') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vyconf_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None - _ERRNUM._serialized_start=4097 - _ERRNUM._serialized_end=4307 + _ERRNUM._serialized_start=4057 + _ERRNUM._serialized_end=4267 _REQUEST._serialized_start=17 - _REQUEST._serialized_end=3948 + _REQUEST._serialized_end=3908 _REQUEST_PROMPT._serialized_start=1829 _REQUEST_PROMPT._serialized_end=1837 _REQUEST_SETUPSESSION._serialized_start=1840 @@ -50,68 +50,68 @@ if _descriptor._USE_C_DESCRIPTORS == False: _REQUEST_DISCARD._serialized_end=2375 _REQUEST_SESSIONCHANGED._serialized_start=2377 _REQUEST_SESSIONCHANGED._serialized_end=2408 - _REQUEST_RENAME._serialized_start=2410 - _REQUEST_RENAME._serialized_end=2475 - _REQUEST_COPY._serialized_start=2477 - _REQUEST_COPY._serialized_end=2540 - _REQUEST_COMMENT._serialized_start=2542 - _REQUEST_COMMENT._serialized_end=2582 - _REQUEST_COMMIT._serialized_start=2584 - _REQUEST_COMMIT._serialized_end=2668 - _REQUEST_ROLLBACK._serialized_start=2670 - _REQUEST_ROLLBACK._serialized_end=2698 - _REQUEST_LOAD._serialized_start=2700 - _REQUEST_LOAD._serialized_end=2779 - _REQUEST_MERGE._serialized_start=2781 - _REQUEST_MERGE._serialized_end=2866 - _REQUEST_SAVE._serialized_start=2868 - _REQUEST_SAVE._serialized_end=2931 - _REQUEST_SHOWCONFIG._serialized_start=2933 - _REQUEST_SHOWCONFIG._serialized_end=2998 - _REQUEST_EXISTS._serialized_start=3000 - _REQUEST_EXISTS._serialized_end=3022 - _REQUEST_GETVALUE._serialized_start=3024 - _REQUEST_GETVALUE._serialized_end=3094 - _REQUEST_GETVALUES._serialized_start=3096 - _REQUEST_GETVALUES._serialized_end=3167 - _REQUEST_LISTCHILDREN._serialized_start=3169 - _REQUEST_LISTCHILDREN._serialized_end=3243 - _REQUEST_RUNOPMODE._serialized_start=3245 - _REQUEST_RUNOPMODE._serialized_end=3316 - _REQUEST_CONFIRM._serialized_start=3318 - _REQUEST_CONFIRM._serialized_end=3327 - _REQUEST_ENTERCONFIGURATIONMODE._serialized_start=3329 - _REQUEST_ENTERCONFIGURATIONMODE._serialized_end=3400 - _REQUEST_EXITCONFIGURATIONMODE._serialized_start=3402 - _REQUEST_EXITCONFIGURATIONMODE._serialized_end=3425 - _REQUEST_RELOADREFTREE._serialized_start=3427 - _REQUEST_RELOADREFTREE._serialized_end=3464 - _REQUEST_SHOWSESSIONS._serialized_start=3466 - _REQUEST_SHOWSESSIONS._serialized_end=3525 - _REQUEST_SETEDITLEVEL._serialized_start=3527 - _REQUEST_SETEDITLEVEL._serialized_end=3555 - _REQUEST_SETEDITLEVELUP._serialized_start=3557 - _REQUEST_SETEDITLEVELUP._serialized_end=3588 - _REQUEST_RESETEDITLEVEL._serialized_start=3590 - _REQUEST_RESETEDITLEVEL._serialized_end=3621 - _REQUEST_GETEDITLEVEL._serialized_start=3623 - _REQUEST_GETEDITLEVEL._serialized_end=3652 - _REQUEST_EDITLEVELROOT._serialized_start=3654 - _REQUEST_EDITLEVELROOT._serialized_end=3684 - _REQUEST_CONFIGUNSAVED._serialized_start=3686 - _REQUEST_CONFIGUNSAVED._serialized_end=3715 - _REQUEST_REFERENCEPATHEXISTS._serialized_start=3717 - _REQUEST_REFERENCEPATHEXISTS._serialized_end=3752 - _REQUEST_GETPATHTYPE._serialized_start=3754 - _REQUEST_GETPATHTYPE._serialized_end=3804 - _REQUEST_GETCOMPLETIONENV._serialized_start=3806 - _REQUEST_GETCOMPLETIONENV._serialized_end=3861 - _REQUEST_CONFIGFORMAT._serialized_start=3863 - _REQUEST_CONFIGFORMAT._serialized_end=3898 - _REQUEST_OUTPUTFORMAT._serialized_start=3900 - _REQUEST_OUTPUTFORMAT._serialized_end=3941 - _REQUESTENVELOPE._serialized_start=3950 - _REQUESTENVELOPE._serialized_end=4009 - _RESPONSE._serialized_start=4011 - _RESPONSE._serialized_end=4094 + _REQUEST_COPY._serialized_start=2410 + _REQUEST_COPY._serialized_end=2453 + _REQUEST_RENAME._serialized_start=2455 + _REQUEST_RENAME._serialized_end=2500 + _REQUEST_COMMENT._serialized_start=2502 + _REQUEST_COMMENT._serialized_end=2542 + _REQUEST_COMMIT._serialized_start=2544 + _REQUEST_COMMIT._serialized_end=2628 + _REQUEST_ROLLBACK._serialized_start=2630 + _REQUEST_ROLLBACK._serialized_end=2658 + _REQUEST_LOAD._serialized_start=2660 + _REQUEST_LOAD._serialized_end=2739 + _REQUEST_MERGE._serialized_start=2741 + _REQUEST_MERGE._serialized_end=2826 + _REQUEST_SAVE._serialized_start=2828 + _REQUEST_SAVE._serialized_end=2891 + _REQUEST_SHOWCONFIG._serialized_start=2893 + _REQUEST_SHOWCONFIG._serialized_end=2958 + _REQUEST_EXISTS._serialized_start=2960 + _REQUEST_EXISTS._serialized_end=2982 + _REQUEST_GETVALUE._serialized_start=2984 + _REQUEST_GETVALUE._serialized_end=3054 + _REQUEST_GETVALUES._serialized_start=3056 + _REQUEST_GETVALUES._serialized_end=3127 + _REQUEST_LISTCHILDREN._serialized_start=3129 + _REQUEST_LISTCHILDREN._serialized_end=3203 + _REQUEST_RUNOPMODE._serialized_start=3205 + _REQUEST_RUNOPMODE._serialized_end=3276 + _REQUEST_CONFIRM._serialized_start=3278 + _REQUEST_CONFIRM._serialized_end=3287 + _REQUEST_ENTERCONFIGURATIONMODE._serialized_start=3289 + _REQUEST_ENTERCONFIGURATIONMODE._serialized_end=3360 + _REQUEST_EXITCONFIGURATIONMODE._serialized_start=3362 + _REQUEST_EXITCONFIGURATIONMODE._serialized_end=3385 + _REQUEST_RELOADREFTREE._serialized_start=3387 + _REQUEST_RELOADREFTREE._serialized_end=3424 + _REQUEST_SHOWSESSIONS._serialized_start=3426 + _REQUEST_SHOWSESSIONS._serialized_end=3485 + _REQUEST_SETEDITLEVEL._serialized_start=3487 + _REQUEST_SETEDITLEVEL._serialized_end=3515 + _REQUEST_SETEDITLEVELUP._serialized_start=3517 + _REQUEST_SETEDITLEVELUP._serialized_end=3548 + _REQUEST_RESETEDITLEVEL._serialized_start=3550 + _REQUEST_RESETEDITLEVEL._serialized_end=3581 + _REQUEST_GETEDITLEVEL._serialized_start=3583 + _REQUEST_GETEDITLEVEL._serialized_end=3612 + _REQUEST_EDITLEVELROOT._serialized_start=3614 + _REQUEST_EDITLEVELROOT._serialized_end=3644 + _REQUEST_CONFIGUNSAVED._serialized_start=3646 + _REQUEST_CONFIGUNSAVED._serialized_end=3675 + _REQUEST_REFERENCEPATHEXISTS._serialized_start=3677 + _REQUEST_REFERENCEPATHEXISTS._serialized_end=3712 + _REQUEST_GETPATHTYPE._serialized_start=3714 + _REQUEST_GETPATHTYPE._serialized_end=3764 + _REQUEST_GETCOMPLETIONENV._serialized_start=3766 + _REQUEST_GETCOMPLETIONENV._serialized_end=3821 + _REQUEST_CONFIGFORMAT._serialized_start=3823 + _REQUEST_CONFIGFORMAT._serialized_end=3858 + _REQUEST_OUTPUTFORMAT._serialized_start=3860 + _REQUEST_OUTPUTFORMAT._serialized_end=3901 + _REQUESTENVELOPE._serialized_start=3910 + _REQUESTENVELOPE._serialized_end=3969 + _RESPONSE._serialized_start=3971 + _RESPONSE._serialized_end=4054 # @@protoc_insertion_point(module_scope) diff --git a/python/vyos/proto/vyconf_proto.py b/python/vyos/proto/vyconf_proto.py index 96eebacf7..b05294e74 100644 --- a/python/vyos/proto/vyconf_proto.py +++ b/python/vyos/proto/vyconf_proto.py @@ -84,16 +84,14 @@ class SessionChanged: dummy: int = None @dataclass -class Rename: - edit_level: list[str] = field(default_factory=list) - source: str = "" - destination: str = "" +class Copy: + source: list[str] = field(default_factory=list) + destination: list[str] = field(default_factory=list) @dataclass -class Copy: - edit_level: list[str] = field(default_factory=list) - source: str = "" - destination: str = "" +class Rename: + source: list[str] = field(default_factory=list) + destination: list[str] = field(default_factory=list) @dataclass class Comment: @@ -351,15 +349,15 @@ def set_request_session_changed(token: str = None, dummy: int = None): req_env = RequestEnvelope(token, req) return req_env -def set_request_rename(token: str = None, edit_level: list[str] = [], source: str = "", destination: str = ""): - reqi = Rename (edit_level, source, destination) - req = Request(rename=reqi) +def set_request_copy(token: str = None, source: list[str] = [], destination: list[str] = []): + reqi = Copy (source, destination) + req = Request(copy=reqi) req_env = RequestEnvelope(token, req) return req_env -def set_request_copy(token: str = None, edit_level: list[str] = [], source: str = "", destination: str = ""): - reqi = Copy (edit_level, source, destination) - req = Request(copy=reqi) +def set_request_rename(token: str = None, source: list[str] = [], destination: list[str] = []): + reqi = Rename (source, destination) + req = Request(rename=reqi) req_env = RequestEnvelope(token, req) return req_env |
