Module: PacketFu::HSRPHeaderMixin
- Included in:
- HSRPPacket
- Defined in:
- lib/packetfu/protos/hsrp/mixin.rb
Overview
This Mixin simplifies access to the HSRPHeaders. Mix this in with your packet interface, and it will add methods that essentially delegate to the ‘hsrp_header’ method (assuming that it is a HSRPHeader object)
Instance Method Summary collapse
- #hsrp_addr ⇒ Object
- #hsrp_addr=(v) ⇒ Object
- #hsrp_group ⇒ Object
- #hsrp_group=(v) ⇒ Object
- #hsrp_hellotime ⇒ Object
- #hsrp_hellotime=(v) ⇒ Object
- #hsrp_holdtime ⇒ Object
- #hsrp_holdtime=(v) ⇒ Object
- #hsrp_opcode ⇒ Object
- #hsrp_opcode=(v) ⇒ Object
- #hsrp_password ⇒ Object
- #hsrp_password=(v) ⇒ Object
- #hsrp_password_readable ⇒ Object
- #hsrp_priority ⇒ Object
- #hsrp_priority=(v) ⇒ Object
- #hsrp_reserved ⇒ Object
- #hsrp_reserved=(v) ⇒ Object
- #hsrp_state ⇒ Object
- #hsrp_state=(v) ⇒ Object
- #hsrp_version ⇒ Object
- #hsrp_version=(v) ⇒ Object
- #hsrp_vip ⇒ Object
- #hsrp_vip=(v) ⇒ Object
- #hsrp_vip_readable ⇒ Object
Instance Method Details
#hsrp_addr ⇒ Object
24 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 24 def hsrp_addr; self.hsrp_header.hsrp_addr; end |
#hsrp_addr=(v) ⇒ Object
23 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 23 def hsrp_addr=(v); self.hsrp_header.hsrp_addr= v; end |
#hsrp_group ⇒ Object
20 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 20 def hsrp_group; self.hsrp_header.hsrp_group; end |
#hsrp_group=(v) ⇒ Object
19 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 19 def hsrp_group=(v); self.hsrp_header.hsrp_group= v; end |
#hsrp_hellotime ⇒ Object
14 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 14 def hsrp_hellotime; self.hsrp_header.hsrp_hellotime; end |
#hsrp_hellotime=(v) ⇒ Object
13 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 13 def hsrp_hellotime=(v); self.hsrp_header.hsrp_hellotime= v; end |
#hsrp_holdtime ⇒ Object
16 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 16 def hsrp_holdtime; self.hsrp_header.hsrp_holdtime; end |
#hsrp_holdtime=(v) ⇒ Object
15 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 15 def hsrp_holdtime=(v); self.hsrp_header.hsrp_holdtime= v; end |
#hsrp_opcode ⇒ Object
10 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 10 def hsrp_opcode; self.hsrp_header.hsrp_opcode; end |
#hsrp_opcode=(v) ⇒ Object
9 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 9 def hsrp_opcode=(v); self.hsrp_header.hsrp_opcode= v; end |
#hsrp_password ⇒ Object
27 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 27 def hsrp_password; self.hsrp_header.hsrp_password; end |
#hsrp_password=(v) ⇒ Object
28 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 28 def hsrp_password=(v); self.hsrp_header.hsrp_password= v; end |
#hsrp_password_readable ⇒ Object
26 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 26 def hsrp_password_readable; self.hsrp_header.hsrp_password_readable; end |
#hsrp_priority ⇒ Object
18 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 18 def hsrp_priority; self.hsrp_header.hsrp_priority; end |
#hsrp_priority=(v) ⇒ Object
17 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 17 def hsrp_priority=(v); self.hsrp_header.hsrp_priority= v; end |
#hsrp_reserved ⇒ Object
22 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 22 def hsrp_reserved; self.hsrp_header.hsrp_reserved; end |
#hsrp_reserved=(v) ⇒ Object
21 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 21 def hsrp_reserved=(v); self.hsrp_header.hsrp_reserved= v; end |
#hsrp_state ⇒ Object
12 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 12 def hsrp_state; self.hsrp_header.hsrp_state; end |
#hsrp_state=(v) ⇒ Object
11 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 11 def hsrp_state=(v); self.hsrp_header.hsrp_state= v; end |
#hsrp_version ⇒ Object
8 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 8 def hsrp_version; self.hsrp_header.hsrp_version; end |
#hsrp_version=(v) ⇒ Object
7 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 7 def hsrp_version=(v); self.hsrp_header.hsrp_version= v; end |
#hsrp_vip ⇒ Object
29 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 29 def hsrp_vip; self.hsrp_header.hsrp_vip; end |
#hsrp_vip=(v) ⇒ Object
30 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 30 def hsrp_vip=(v); self.hsrp_header.hsrp_vip= v; end |
#hsrp_vip_readable ⇒ Object
25 |
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 25 def hsrp_vip_readable; self.hsrp_header.hsrp_vip_readable; end |