(CommandList
  children: [
    (FuncDef
      name: provision-network-node
      body: 
        (BraceGroup
          children: [
            (C {(echo)} {(DQ ('Provisioning network on node'))})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:FLANNEL_ETCD_URL)
                  op: Equal
                  rhs: {(DQ ('http://') (${ VSub_Name MASTER_IP) (':4379'))}
                  spids: [63]
                )
              ]
              spids: [63]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(which)} {(flanneld)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(/dev/null)}
                                  spids: [86]
                                )
                                (Redir
                                  op_id: Redir_GreatAnd
                                  fd: 2
                                  arg_word: {(1)}
                                  spids: [89]
                                )
                              ]
                            )
                          ]
                          negated: True
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(dnf)} {(install)} {(-y)} {(flannel)})
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:NETWORK_CONF_PATH)
                          op: Equal
                          rhs: {(/etc/sysconfig/network-scripts/)}
                          spids: [111]
                        )
                      ]
                      spids: [111]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:if_to_edit)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(find)} 
                                            {(${ VSub_Name NETWORK_CONF_PATH) (ifcfg-) 
                                              (Lit_Other '*')
                                            }
                                          )
                                          (C {(xargs)} {(grep)} {(-l)} {(VAGRANT-BEGIN)})
                                        ]
                                        negated: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [116 136]
                              )
                            }
                          spids: [115]
                        )
                      ]
                      spids: [115]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:NETWORK_IF_NAME)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {(${ VSub_Name if_to_edit)})
                                          (C {(awk)} {(-F-)} {(SQ <'{ print $3 }'>)})
                                        ]
                                        negated: False
                                      )
                                    ]
                                  )
                                left_token: <Left_Backtick '`'>
                                spids: [140 156]
                              )
                            }
                          spids: [139]
                        )
                      ]
                      spids: [139]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolUnary
                                      op_id: BoolUnary_z
                                      child: {(DQ ($ VSub_Name '$NETWORK_IF_NAME'))}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:NETWORK_IF_NAME)
                                  op: Equal
                                  rhs: {(${ VSub_Name DEFAULT_NETWORK_IF_NAME)}
                                  spids: [187]
                                )
                              ]
                              spids: [187]
                            )
                          ]
                          spids: [16777215 184]
                        )
                      ]
                      spids: [16777215 193]
                    )
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op_id: Redir_DLess
                          fd: 16777215
                          body: 
                            {
                              (DQ ('FLANNEL_ETCD=') (Right_DoubleQuote '"') 
                                (${ VSub_Name FLANNEL_ETCD_URL) (Right_DoubleQuote '"') ('\n') ('FLANNEL_ETCD_KEY=') (Right_DoubleQuote '"') (/coreos.com/network) 
                                (Right_DoubleQuote '"') ('\n') ('FLANNEL_OPTIONS=') (Right_DoubleQuote '"') ('-iface=') (${ VSub_Name NETWORK_IF_NAME) 
                                (' --ip-masq') (Right_DoubleQuote '"') ('\n')
                              )
                            }
                          do_expansion: True
                          here_end: EOF
                          was_filled: True
                          spids: [198]
                        )
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(/etc/sysconfig/flanneld)}
                          spids: [201]
                        )
                      ]
                    )
                    (C {(systemctl)} {(enable)} {(flanneld)})
                    (C {(systemctl)} {(start)} {(flanneld)})
                  ]
                  spids: [16777215 93]
                )
              ]
              spids: [16777215 246]
            )
            (C {(echo)} {(DQ ('Network configuration verified'))})
          ]
          spids: [51]
        )
      spids: [47 50]
    )
  ]
)