fvl

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 12 Imported by: 0

README

fvl

Find Vlan ACL by ip from cisco backup files directory

Before using set env CISCONFS to backup ciscos dir, or use '--cfg-dir' flag.

Example use:

user@ubuntu$ fvl -h
Usage: fvl --cfg-dir=STRING <Src-IP> [<Dest-IP>]

Find IP by VLAN

Arguments:
  <Src-IP>       Source IP
  [<Dest-IP>]    Destination IP

Flags:
  -h, --help              Show context-sensitive help.
      --cfg-dir=STRING    Path to backup cisco files ($CISCONFS)
      --debug             Enable more output
user@ubuntu$
user@ubuntu$ fvl 172.24.62.2
Host: comm3 Iface: Vlan2621 Vrf:  IfaceIp: 172.24.62.1/29 AclIn:  AclOut: vlan2621_out
user@ubuntu$
user@ubuntu$ fvl 172.24.64.198
Host: comm3 Iface: Vlan2651 Vrf: SMVL IfaceIp: 172.24.64.193/29 AclIn: vlan2651_in AclOut: 
user@ubuntu$ fvl 172.24.64.198 172.24.6.1
Host: comm3 Iface: Vlan2651 Vrf: SMVL IfaceIp: 172.24.64.193/29 AclIn: vlan2651_in AclOut: 
Destination:
Host: comm1 Iface: Vlan2006 Vrf:  IfaceIp: 172.24.6.1/27 AclIn: vlan2006_in AclOut: vlan2006_out

Example backup file comm1:

...
!
interface Vlan2006
 description new
 ip address 172.24.6.1 255.255.255.224
 ip access-group vlan2006_in in
 ip access-group vlan2006_out out
 no ip redirects
 no ip unreachables
...

Example backup file comm3:

...
!
interface Vlan2621
 ip address 172.24.62.1 255.255.255.248
 ip access-group vlan2621_out out
 no ip redirects
 no ip unreachables
!
interface Vlan2651
 description SMDC
 vrf forwarding SMVL
 ip address 172.24.64.193 255.255.255.248
 ip access-group vlan2651_in in
 no ip redirects
 no ip unreachables
!
...

``

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL