Skip to content

Accounting Policy#

AAA → APAccounting Policies

An AccountingPolicy selects which ServerGroup resources receive accounting records, and in which order those groups are tried on operating systems that support ordered accounting methods.

Accounting mode#

The required mode field is one of:

  • StartStop sends a start record when a command begins and a stop record when it finishes
  • StopOnly sends only the stop record after the command finishes

On SR Linux, mode applies to command accounting events. On SR OS, mode sets the TACACS+ accounting record type.

Dependencies#

ServerGroup#

The serverGroups field lists the ServerGroup resources that receive accounting records.

ServerGroup ordering on SR OS

The order in which ServerGroup resources are listed is not supported on SR OS. SR OS follows the authentication order as defined by the AuthenticationPolicy when determining which server to send accounting logs to.

Referenced resources#

The AccountingPolicy does not reference any other EDA resources.

Examples#

apiVersion: aaa.eda.nokia.com/v1
kind: AccountingPolicy
metadata:
  namespace: eda
  name: my-acct-policy
spec:
  mode: StopOnly
  serverGroups:
    - tacacs-servers
  nodeSelectors:
    - eda.nokia.com/role = leaf
    - eda.nokia.com/role = spine
cat << 'EOF' | kubectl apply -f -
apiVersion: aaa.eda.nokia.com/v1
kind: AccountingPolicy
metadata:
  namespace: eda
  name: my-acct-policy
spec:
  mode: StopOnly
  serverGroups:
    - tacacs-servers
  nodeSelectors:
    - eda.nokia.com/role = leaf
    - eda.nokia.com/role = spine

EOF

Custom Resource Definition#

To browse the Custom Resource Definition go to crd.eda.dev.

AccountingPolicy

aaa.eda.nokia.com / v1

SPEC

An AccountingPolicy defines accounting parameters for nodes, such as the accounting mode and which nodes to send accounting messages to.

  • #
  • #
  • #
  • #

STATUS

AccountingPolicyStatus defines the observed state of AccountingPolicy.

  • #