Add predefined profiles for easier interface configuration
They are for Fastlink and Eksos.
This commit is contained in:
parent
a15e53b810
commit
95814c27c6
|
@ -1154,6 +1154,41 @@ DEFUN(cfg_no_echo_sup, cfg_no_echo_sup_cmd,
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(cfg_v51_profile, cfg_v51_profile_cmd,
|
||||
"profile (fastlink)",
|
||||
"Set predefined profiles\n" "Set profile for Siemens Fastlink")
|
||||
{
|
||||
struct v5x_interface *v5if = vty->index;
|
||||
|
||||
if (argv[0][0] == 'f') {
|
||||
v5if->mgmt->do_est = true;
|
||||
v5if->mgmt->pstn_enable_early = false;
|
||||
v5if->mgmt->do_align = true;
|
||||
}
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(cfg_v52_profile, cfg_v52_profile_cmd,
|
||||
"profile (fastlink|eksos)",
|
||||
"Set predefined profiles\n" "Set profile for Siemens Fastlink\n" "Set profile for Nokia Eksos")
|
||||
{
|
||||
struct v5x_interface *v5if = vty->index;
|
||||
|
||||
if (argv[0][0] == 'f') {
|
||||
v5if->mgmt->do_est = true;
|
||||
v5if->mgmt->pstn_enable_early = false;
|
||||
v5if->mgmt->do_align = true;
|
||||
v5if->mgmt->acc_align = true;
|
||||
}
|
||||
if (argv[0][0] == 'e') {
|
||||
v5if->mgmt->do_est = false;
|
||||
v5if->mgmt->pstn_enable_early = true;
|
||||
v5if->mgmt->do_align = false;
|
||||
v5if->mgmt->acc_align = false;
|
||||
}
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* write
|
||||
*/
|
||||
|
@ -1327,6 +1362,8 @@ int v5le_vty_init(void)
|
|||
install_element(CONFIG_PORT_NODE, &cfg_no_echo_can_cmd);
|
||||
install_element(CONFIG_PORT_NODE, &cfg_echo_sup_cmd);
|
||||
install_element(CONFIG_PORT_NODE, &cfg_no_echo_sup_cmd);
|
||||
install_element(CONFIG_INTERFACE_NODE_V51, &cfg_v51_profile_cmd);
|
||||
install_element(CONFIG_INTERFACE_NODE_V52, &cfg_v52_profile_cmd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue