Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Cisco to Juniper - parser help

by jwkrahn (Abbot)
on May 25, 2021 at 06:33 UTC ( [id://11133003]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if ($neighbor eq undef){}
        elsif ($vcid eq undef) {}
        else {
    
  2. or download this
        if ( !defined $neighbor && !defined $vcid ) {
    
  3. or download this
    my $vcid;
    my $tag;
    ...
    my $xcon = '';
    my $cos = '';
    my @splitcos;
    
  4. or download this
        $unit = $splitunit[2];
    
    # change to:
    
        $unit = $splitunit[2] || '';
    
  5. or download this
        $vlanida = $splitvlan[2];
        $vlanidb = $splitvlan[4];
    ...
    
        $vlanida = $splitvlan[2] || '';
        $vlanidb = $splitvlan[4] || '';
    
  6. or download this
            $cos = $splitcos[2];
    
    # change to:
    
            $cos = $splitcos[2];
    
  7. or download this
        $neighbor = $splitxc[1];
        $vcid = $splitxc[2];
    ...
    
        $neighbor = $splitxc[1] || '';
        $vcid = $splitxc[2] || '';
    
  8. or download this
        $pop = $splittag[4];
    
    # change to:
    
        $pop = $splittag[4] || '';
    
  9. or download this
        if ($neighbor eq undef){}
        elsif ($vcid eq undef) {}
    ...
    # change to:
    
        if ( length $neighbor && length $vcid ) {
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found