Subject: | Extreme XOS support |
I developed this grammar for Extreme Networks switches. "It works for me."
in_privileged_mode() didn't work and I don't even know if it's supported by Extreme.
It's used in PacketFence an open source perl software.
http://mtn.inverse.ca/revision/file/bc1beb0c5d3c658a33d8d68e3eee2b549184d2ac/pf/lib/pf/
SNMP/Extreme/nas-pb.yml
This bug is open to suggest upstream integration.
Subject: | nas-pb.yml |
0000default : {}
ExtremeXOS :
prompt : '/[\/a-zA-Z0-9._-]+ ?(?:\(config[^)]*\))? ?[#>] ?$/'
basic_prompt : '/> ?$/'
privileged_prompt : '/# ?$/'
configure_prompt : '/\(config[^)]*\)# ?$/'
user_prompt : '/(?:[Ll]ogin|[Uu]sername)/'
userpass_prompt : '/(?:[Ll]ogin|[Uu]sername|[Pp]assword): ?$/'
pass_prompt : '/[Pp]assword: ?$/'
begin_privileged_cmd : 'enable'
begin_privileged_with_user_cmd : 'login'
end_privileged_cmd : 'disable'
disconnect : 'exit'
completion : '?'
err_string : '/% ?(?:Error|Type "[^?]+\?"|(?:Incomplete|Unknown) command|Invalid input)/'