Skip to content

Commit

Permalink
Merge pull request #248 from batfish/unstable
Browse files Browse the repository at this point in the history
prepare for 0.29.1
  • Loading branch information
arifogel committed Jul 21, 2017
2 parents cb32dc0 + f3af164 commit 7d71f2f
Show file tree
Hide file tree
Showing 35 changed files with 283 additions and 49 deletions.
2 changes: 1 addition & 1 deletion projects/allinone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>
</parent>

<artifactId>allinone</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion projects/batfish-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>
</parent>

<artifactId>batfish-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion projects/batfish-common-protocol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>
</parent>

<artifactId>batfish-common-protocol</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class CiscoFamily implements Serializable {

private SortedMap<String, User> _users;

private String _enableSecret;

public CiscoFamily() {
_banners = new TreeMap<>();
_features = new TreeMap<>();
Expand Down Expand Up @@ -160,4 +162,12 @@ public SortedMap<String, User> getUsers() {
return _users;
}

public void setEnableSecret(String enableSecret) {
_enableSecret = enableSecret;
}

public String getEnableSecret() {
return _enableSecret;
}

}
2 changes: 1 addition & 1 deletion projects/batfish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>
</parent>

<artifactId>batfish</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6791,6 +6791,11 @@ REACTION
'reaction'
;

READ_ONLY_PASSWORD
:
'read-only-password'
;

REAL
:
'real'
Expand Down Expand Up @@ -8218,6 +8223,11 @@ SUNRPC
'sunrpc'
;

SUPER_USER_PASSWORD
:
'super-user-password'
;

SUPPLEMENTARY_SERVICES
:
'supplementary-services'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,20 @@ eh_null
) ~NEWLINE* NEWLINE
;

enable_null
:
(
READ_ONLY_PASSWORD
| SUPER_USER_PASSWORD
| TELNET
) ~NEWLINE* NEWLINE
;

enable_secret
:
SECRET DEC pass = variable_secret NEWLINE
;

event_null
:
NO?
Expand Down Expand Up @@ -1358,6 +1372,15 @@ s_dynamic_access_policy_record
)*
;

s_enable
:
ENABLE
(
enable_null
| enable_secret
)
;

s_event
:
NO? EVENT ~NEWLINE* NEWLINE
Expand Down Expand Up @@ -2185,6 +2208,7 @@ stanza
| s_dot11
| s_dspfarm
| s_dynamic_access_policy_record
| s_enable
| s_ethernet_services
| s_event
| s_event_handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ null_block
| DOT1X_ENABLE
| DUAL_MODE_DEFAULT_VLAN
| DYNAMIC_ACCESS_POLICY_RECORD
| ENABLE
| ENABLE_ACL_COUNTER
| ENABLE_QOS_STATISTICS
| END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener

private User _currentUser;

@Override
public void exitEnable_secret(Enable_secretContext ctx) {
String passwordRehash = CommonUtil.sha256Digest(ctx.pass.getText() + JuniperUtils.SALT);
_configuration.getCf().setEnableSecret(passwordRehash);
}

@Override
public void enterS_username(S_usernameContext ctx) {
String username = ctx.user.getText();
Expand Down
2 changes: 1 addition & 1 deletion projects/coordinator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>
</parent>

<artifactId>coordinator</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion projects/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>

<packaging>pom</packaging>

Expand Down
2 changes: 1 addition & 1 deletion projects/question/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.batfish</groupId>
<artifactId>batfish-parent</artifactId>
<version>0.29.0</version>
<version>0.29.1</version>
</parent>

<artifactId>question</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/dc-as-reuse.ref
Original file line number Diff line number Diff line change
Expand Up @@ -4680,7 +4680,7 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
Expand Down Expand Up @@ -4836,7 +4836,7 @@
}
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/disable-as-suppression.ref
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/example-juniper.ref
Original file line number Diff line number Diff line change
Expand Up @@ -10365,7 +10365,7 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
Expand Down Expand Up @@ -10494,7 +10494,7 @@
}
}
},
"version" : "0.29.0",
"version" : "0.29.1",
"warnings" : {
"as1border1" : {
"Red flags" : {
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/example.ref
Original file line number Diff line number Diff line change
Expand Up @@ -10699,7 +10699,7 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
Expand Down Expand Up @@ -10842,7 +10842,7 @@
}
}
},
"version" : "0.29.0",
"version" : "0.29.1",
"warnings" : {
"as1border1" : {
"Red flags" : {
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/indirection.ref
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,11 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/isis.ref
Original file line number Diff line number Diff line change
Expand Up @@ -2445,11 +2445,11 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/policy-routing.ref
Original file line number Diff line number Diff line change
Expand Up @@ -1904,11 +1904,11 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/snat.ref
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down
4 changes: 2 additions & 2 deletions test_rigs/parsing-tests/srx-testbed.ref
Original file line number Diff line number Diff line change
Expand Up @@ -5912,7 +5912,7 @@
]
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.ConvertConfigurationAnswerElement",
Expand All @@ -5930,7 +5930,7 @@
}
}
},
"version" : "0.29.0"
"version" : "0.29.1"
},
{
"class" : "org.batfish.datamodel.answers.InitInfoAnswerElement",
Expand Down

0 comments on commit 7d71f2f

Please sign in to comment.