-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NX-OS: extract SNMP community information
- Loading branch information
Showing
4 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
projects/batfish/src/main/java/org/batfish/representation/cisco_nxos/SnmpCommunity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package org.batfish.representation.cisco_nxos; | ||
|
||
import java.io.Serializable; | ||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
/** Configuration for an SNMP community. */ | ||
public final class SnmpCommunity implements Serializable { | ||
public SnmpCommunity(String community) { | ||
_community = community; | ||
} | ||
|
||
public @Nonnull String getCommunity() { | ||
return _community; | ||
} | ||
|
||
public @Nullable String getAclName() { | ||
return _aclName; | ||
} | ||
|
||
public void setAclName(@Nullable String aclName) { | ||
_aclName = aclName; | ||
} | ||
|
||
public @Nullable String getAclNameV4() { | ||
return _aclNameV4; | ||
} | ||
|
||
public void setAclNameV4(@Nullable String aclNameV4) { | ||
_aclNameV4 = aclNameV4; | ||
} | ||
|
||
public @Nullable String getAclNameV6() { | ||
return _aclNameV6; | ||
} | ||
|
||
public void setAclNameV6(@Nullable String aclNameV6) { | ||
_aclNameV6 = aclNameV6; | ||
} | ||
|
||
private final @Nonnull String _community; | ||
private @Nullable String _aclName; | ||
private @Nullable String _aclNameV4; | ||
private @Nullable String _aclNameV6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters