public ChannelBuffer formatConfigV1 ( final Config config ) { TreeMap < String , String > map = new TreeMap < String , String > ( config . getMap ( ) ) ; for ( Map . Entry < String , String > entry : map . entrySet ( ) ) { if ( entry . getKey ( ) . toUpperCase ( ) . contains ( "PASS" ) ) { map . put ( entry . getKey ( ) , "********" ) ; } } return serializeJSON ( map ) ; }
Format the running configuration